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
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Workspaces/Remote/Core/xlf/RemoteWorkspacesResources.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="../RemoteWorkspacesResources.resx"> <body> <trans-unit id="FeatureName_AssetSynchronization"> <source>Asset synchronization</source> <target state="translated">Synchronisation des ressources</target> <note /> </trans-unit> <trans-unit id="FeatureName_AsynchronousOperationListener"> <source>Asynchronous operation listener</source> <target state="translated">Écouteur d'opérations asynchrones</target> <note /> </trans-unit> <trans-unit id="FeatureName_CodeLensReferences"> <source>CodeLens references</source> <target state="translated">Références CodeLens</target> <note /> </trans-unit> <trans-unit id="FeatureName_CompilationAvailable"> <source>Project semantics availability</source> <target state="translated">Disponibilité de la sémantique du projet</target> <note /> </trans-unit> <trans-unit id="FeatureName_ConvertTupleToStructCodeRefactoring"> <source>Convert tuple to struct refactoring</source> <target state="translated">Refactorisation de la conversion de tuple en struct</target> <note /> </trans-unit> <trans-unit id="FeatureName_DependentTypeFinder"> <source>Dependent type finder</source> <target state="translated">Outil de recherche de type dépendant</target> <note /> </trans-unit> <trans-unit id="FeatureName_DesignerAttributeDiscovery"> <source>DesignerAttribute discovery</source> <target state="translated">Détection de DesignerAttribute</target> <note /> </trans-unit> <trans-unit id="FeatureName_DiagnosticAnalyzer"> <source>Diagnostic analyzer runner</source> <target state="translated">Exécuteur d'analyseur de diagnostic</target> <note /> </trans-unit> <trans-unit id="FeatureName_DocumentHighlights"> <source>Document highlights</source> <target state="translated">Grandes lignes du document</target> <note /> </trans-unit> <trans-unit id="FeatureName_EditAndContinue"> <source>Edit and Continue</source> <target state="translated">Modifier et continuer</target> <note /> </trans-unit> <trans-unit id="FeatureName_EncapsulateField"> <source>Encapsulate field refactoring</source> <target state="translated">Refactorisation de l'encapsulation de champ</target> <note /> </trans-unit> <trans-unit id="FeatureName_ExtensionMethodImportCompletion"> <source>Extension method import completion</source> <target state="translated">Exécution de l'importation de méthode d'extension</target> <note /> </trans-unit> <trans-unit id="FeatureName_FindUsages"> <source>Find usages</source> <target state="translated">Recherche d'usages</target> <note /> </trans-unit> <trans-unit id="FeatureName_GlobalNotificationDelivery"> <source>Global notification delivery</source> <target state="translated">Remise de notification globale</target> <note /> </trans-unit> <trans-unit id="FeatureName_InheritanceMargin"> <source>Inheritance margin</source> <target state="translated">Marge d’héritage</target> <note /> </trans-unit> <trans-unit id="FeatureName_MissingImportDiscovery"> <source>Missing import discovery</source> <target state="translated">Détection d'importation manquante</target> <note /> </trans-unit> <trans-unit id="FeatureName_NavigateToSearch"> <source>Navigate to</source> <target state="translated">Accéder à</target> <note /> </trans-unit> <trans-unit id="FeatureName_NavigationBarItem"> <source>Navigation bar</source> <target state="translated">Barre de navigation</target> <note /> </trans-unit> <trans-unit id="FeatureName_ProcessTelemetry"> <source>Process telemetry</source> <target state="translated">Télémétrie du processus</target> <note /> </trans-unit> <trans-unit id="FeatureName_ProjectTelemetry"> <source>Project telemetry collection</source> <target state="translated">Collecte de la télémétrie du projet</target> <note /> </trans-unit> <trans-unit id="FeatureName_Renamer"> <source>Rename</source> <target state="translated">Renommer</target> <note /> </trans-unit> <trans-unit id="FeatureName_SemanticClassification"> <source>Semantic classification</source> <target state="translated">Classification sémantique</target> <note /> </trans-unit> <trans-unit id="FeatureName_SolutionAssetProvider"> <source>Asset provider</source> <target state="translated">Fournisseur de ressources</target> <note /> </trans-unit> <trans-unit id="FeatureName_StackTraceExplorer"> <source>Stack Trace Explorer</source> <target state="translated">Explorateur de traces de pile</target> <note /> </trans-unit> <trans-unit id="FeatureName_SymbolFinder"> <source>Symbol finder</source> <target state="translated">Outil de recherche de symboles</target> <note /> </trans-unit> <trans-unit id="FeatureName_SymbolSearchUpdate"> <source>Symbol search</source> <target state="translated">Recherche de symboles</target> <note /> </trans-unit> <trans-unit id="FeatureName_TodoCommentsDiscovery"> <source>TODO comments discovery</source> <target state="translated">Détection de commentaires TODO</target> <note /> </trans-unit> <trans-unit id="FeatureName_UnusedReferenceAnalysis"> <source>Unused reference analysis</source> <target state="translated">Analyse de référence inutilisée</target> <note /> </trans-unit> <trans-unit id="FeatureName_ValueTracking"> <source>Value Tracking</source> <target state="translated">Suivi de la valeur</target> <note /> </trans-unit> <trans-unit id="Feature_0_is_currently_unavailable_due_to_an_intermittent_error"> <source>Feature '{0}' is currently unavailable due to an intermittent error, please try again later: '{1}'</source> <target state="translated">La fonctionnalité '{0}' est non disponible en raison d'une erreur intermittente. Réessayez plus tard : '{1}'</target> <note /> </trans-unit> <trans-unit id="Feature_0_is_currently_unavailable_due_to_an_internal_error"> <source>Feature '{0}' is currently unavailable due to an internal error.</source> <target state="translated">La fonctionnalité '{0}' est non disponible en raison d'une erreur interne.</target> <note /> </trans-unit> <trans-unit id="Feature_0_is_currently_unavailable_host_shutting_down"> <source>Feature '{0}' is currently unavailable since {1} is shutting down.</source> <target state="translated">La fonctionnalité '{0}' est non disponible, car {1} est en cours d'arrêt.</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="../RemoteWorkspacesResources.resx"> <body> <trans-unit id="FeatureName_AssetSynchronization"> <source>Asset synchronization</source> <target state="translated">Synchronisation des ressources</target> <note /> </trans-unit> <trans-unit id="FeatureName_AsynchronousOperationListener"> <source>Asynchronous operation listener</source> <target state="translated">Écouteur d'opérations asynchrones</target> <note /> </trans-unit> <trans-unit id="FeatureName_CodeLensReferences"> <source>CodeLens references</source> <target state="translated">Références CodeLens</target> <note /> </trans-unit> <trans-unit id="FeatureName_CompilationAvailable"> <source>Project semantics availability</source> <target state="translated">Disponibilité de la sémantique du projet</target> <note /> </trans-unit> <trans-unit id="FeatureName_ConvertTupleToStructCodeRefactoring"> <source>Convert tuple to struct refactoring</source> <target state="translated">Refactorisation de la conversion de tuple en struct</target> <note /> </trans-unit> <trans-unit id="FeatureName_DependentTypeFinder"> <source>Dependent type finder</source> <target state="translated">Outil de recherche de type dépendant</target> <note /> </trans-unit> <trans-unit id="FeatureName_DesignerAttributeDiscovery"> <source>DesignerAttribute discovery</source> <target state="translated">Détection de DesignerAttribute</target> <note /> </trans-unit> <trans-unit id="FeatureName_DiagnosticAnalyzer"> <source>Diagnostic analyzer runner</source> <target state="translated">Exécuteur d'analyseur de diagnostic</target> <note /> </trans-unit> <trans-unit id="FeatureName_DocumentHighlights"> <source>Document highlights</source> <target state="translated">Grandes lignes du document</target> <note /> </trans-unit> <trans-unit id="FeatureName_EditAndContinue"> <source>Edit and Continue</source> <target state="translated">Modifier et continuer</target> <note /> </trans-unit> <trans-unit id="FeatureName_EncapsulateField"> <source>Encapsulate field refactoring</source> <target state="translated">Refactorisation de l'encapsulation de champ</target> <note /> </trans-unit> <trans-unit id="FeatureName_ExtensionMethodImportCompletion"> <source>Extension method import completion</source> <target state="translated">Exécution de l'importation de méthode d'extension</target> <note /> </trans-unit> <trans-unit id="FeatureName_FindUsages"> <source>Find usages</source> <target state="translated">Recherche d'usages</target> <note /> </trans-unit> <trans-unit id="FeatureName_GlobalNotificationDelivery"> <source>Global notification delivery</source> <target state="translated">Remise de notification globale</target> <note /> </trans-unit> <trans-unit id="FeatureName_InheritanceMargin"> <source>Inheritance margin</source> <target state="translated">Marge d’héritage</target> <note /> </trans-unit> <trans-unit id="FeatureName_MissingImportDiscovery"> <source>Missing import discovery</source> <target state="translated">Détection d'importation manquante</target> <note /> </trans-unit> <trans-unit id="FeatureName_NavigateToSearch"> <source>Navigate to</source> <target state="translated">Accéder à</target> <note /> </trans-unit> <trans-unit id="FeatureName_NavigationBarItem"> <source>Navigation bar</source> <target state="translated">Barre de navigation</target> <note /> </trans-unit> <trans-unit id="FeatureName_ProcessTelemetry"> <source>Process telemetry</source> <target state="translated">Télémétrie du processus</target> <note /> </trans-unit> <trans-unit id="FeatureName_ProjectTelemetry"> <source>Project telemetry collection</source> <target state="translated">Collecte de la télémétrie du projet</target> <note /> </trans-unit> <trans-unit id="FeatureName_Renamer"> <source>Rename</source> <target state="translated">Renommer</target> <note /> </trans-unit> <trans-unit id="FeatureName_SemanticClassification"> <source>Semantic classification</source> <target state="translated">Classification sémantique</target> <note /> </trans-unit> <trans-unit id="FeatureName_SolutionAssetProvider"> <source>Asset provider</source> <target state="translated">Fournisseur de ressources</target> <note /> </trans-unit> <trans-unit id="FeatureName_StackTraceExplorer"> <source>Stack Trace Explorer</source> <target state="translated">Explorateur de traces de pile</target> <note /> </trans-unit> <trans-unit id="FeatureName_SymbolFinder"> <source>Symbol finder</source> <target state="translated">Outil de recherche de symboles</target> <note /> </trans-unit> <trans-unit id="FeatureName_SymbolSearchUpdate"> <source>Symbol search</source> <target state="translated">Recherche de symboles</target> <note /> </trans-unit> <trans-unit id="FeatureName_TodoCommentsDiscovery"> <source>TODO comments discovery</source> <target state="translated">Détection de commentaires TODO</target> <note /> </trans-unit> <trans-unit id="FeatureName_UnusedReferenceAnalysis"> <source>Unused reference analysis</source> <target state="translated">Analyse de référence inutilisée</target> <note /> </trans-unit> <trans-unit id="FeatureName_ValueTracking"> <source>Value Tracking</source> <target state="translated">Suivi de la valeur</target> <note /> </trans-unit> <trans-unit id="Feature_0_is_currently_unavailable_due_to_an_intermittent_error"> <source>Feature '{0}' is currently unavailable due to an intermittent error, please try again later: '{1}'</source> <target state="translated">La fonctionnalité '{0}' est non disponible en raison d'une erreur intermittente. Réessayez plus tard : '{1}'</target> <note /> </trans-unit> <trans-unit id="Feature_0_is_currently_unavailable_due_to_an_internal_error"> <source>Feature '{0}' is currently unavailable due to an internal error.</source> <target state="translated">La fonctionnalité '{0}' est non disponible en raison d'une erreur interne.</target> <note /> </trans-unit> <trans-unit id="Feature_0_is_currently_unavailable_host_shutting_down"> <source>Feature '{0}' is currently unavailable since {1} is shutting down.</source> <target state="translated">La fonctionnalité '{0}' est non disponible, car {1} est en cours d'arrêt.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Compilers/CSharp/Portable/FlowAnalysis/UnassignedAddressTakenVariablesWalker.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.CSharp { /// <summary> /// An analysis that computes all cases where the address is taken of a variable that has not yet been assigned /// </summary> internal class UnassignedAddressTakenVariablesWalker : DefiniteAssignmentPass { private UnassignedAddressTakenVariablesWalker(CSharpCompilation compilation, Symbol member, BoundNode node) : base(compilation, member, node, strictAnalysis: true) { } internal static HashSet<PrefixUnaryExpressionSyntax> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node) { var walker = new UnassignedAddressTakenVariablesWalker(compilation, member, node); try { bool badRegion = false; var result = walker.Analyze(ref badRegion); Debug.Assert(!badRegion); return result; } finally { walker.Free(); } } private readonly HashSet<PrefixUnaryExpressionSyntax> _result = new HashSet<PrefixUnaryExpressionSyntax>(); private HashSet<PrefixUnaryExpressionSyntax> Analyze(ref bool badRegion) { // It might seem necessary to clear this.result after each Scan performed by base.Analyze, however, // finding new execution paths (via new backwards branches) can only make variables "less" definitely // assigned, not more. That is, if there was formerly a path on which the variable was not definitely // assigned, then adding another path will not make the variable definitely assigned. Therefore, // subsequent scans can only re-add elements to this.result, and the HashSet will naturally de-dup. base.Analyze(ref badRegion, null); return _result; } protected override void ReportUnassigned(Symbol symbol, SyntaxNode node, int slot, bool skipIfUseBeforeDeclaration) { if (node.Parent.Kind() == SyntaxKind.AddressOfExpression) { _result.Add((PrefixUnaryExpressionSyntax)node.Parent); } } public override BoundNode VisitAddressOfOperator(BoundAddressOfOperator node) { // Pretend address-of is a pure read (i.e. no write) - would we see an // unassigned diagnostic? VisitRvalue(node.Operand); 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. #nullable disable using System.Collections.Generic; using System.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.CSharp { /// <summary> /// An analysis that computes all cases where the address is taken of a variable that has not yet been assigned /// </summary> internal class UnassignedAddressTakenVariablesWalker : DefiniteAssignmentPass { private UnassignedAddressTakenVariablesWalker(CSharpCompilation compilation, Symbol member, BoundNode node) : base(compilation, member, node, strictAnalysis: true) { } internal static HashSet<PrefixUnaryExpressionSyntax> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node) { var walker = new UnassignedAddressTakenVariablesWalker(compilation, member, node); try { bool badRegion = false; var result = walker.Analyze(ref badRegion); Debug.Assert(!badRegion); return result; } finally { walker.Free(); } } private readonly HashSet<PrefixUnaryExpressionSyntax> _result = new HashSet<PrefixUnaryExpressionSyntax>(); private HashSet<PrefixUnaryExpressionSyntax> Analyze(ref bool badRegion) { // It might seem necessary to clear this.result after each Scan performed by base.Analyze, however, // finding new execution paths (via new backwards branches) can only make variables "less" definitely // assigned, not more. That is, if there was formerly a path on which the variable was not definitely // assigned, then adding another path will not make the variable definitely assigned. Therefore, // subsequent scans can only re-add elements to this.result, and the HashSet will naturally de-dup. base.Analyze(ref badRegion, null); return _result; } protected override void ReportUnassigned(Symbol symbol, SyntaxNode node, int slot, bool skipIfUseBeforeDeclaration) { if (node.Parent.Kind() == SyntaxKind.AddressOfExpression) { _result.Add((PrefixUnaryExpressionSyntax)node.Parent); } } public override BoundNode VisitAddressOfOperator(BoundAddressOfOperator node) { // Pretend address-of is a pure read (i.e. no write) - would we see an // unassigned diagnostic? VisitRvalue(node.Operand); return null; } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Features/CSharp/Portable/Highlighting/KeywordHighlighters/CheckedStatementHighlighter.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Composition; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Highlighting; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.CSharp.KeywordHighlighting.KeywordHighlighters { [ExportHighlighter(LanguageNames.CSharp), Shared] internal class CheckedStatementHighlighter : AbstractKeywordHighlighter<CheckedStatementSyntax> { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CheckedStatementHighlighter() { } protected override void AddHighlights(CheckedStatementSyntax checkedStatement, List<TextSpan> highlights, CancellationToken cancellationToken) => highlights.Add(checkedStatement.Keyword.Span); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Composition; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Highlighting; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.CSharp.KeywordHighlighting.KeywordHighlighters { [ExportHighlighter(LanguageNames.CSharp), Shared] internal class CheckedStatementHighlighter : AbstractKeywordHighlighter<CheckedStatementSyntax> { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CheckedStatementHighlighter() { } protected override void AddHighlights(CheckedStatementSyntax checkedStatement, List<TextSpan> highlights, CancellationToken cancellationToken) => highlights.Add(checkedStatement.Keyword.Span); } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Features/VisualBasic/Portable/Highlighting/KeywordHighlighters/TryBlockHighlighter.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Composition Imports System.Threading Imports Microsoft.CodeAnalysis.Highlighting Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.KeywordHighlighting <ExportHighlighter(LanguageNames.VisualBasic), [Shared]> Friend Class TryBlockHighlighter Inherits AbstractKeywordHighlighter(Of SyntaxNode) <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New() End Sub Protected Overloads Overrides Sub AddHighlights(node As SyntaxNode, highlights As List(Of TextSpan), cancellationToken As CancellationToken) If TypeOf node Is ExitStatementSyntax AndAlso node.Kind <> SyntaxKind.ExitTryStatement Then Return End If Dim tryBlock = node.GetAncestor(Of TryBlockSyntax)() If tryBlock Is Nothing Then Return End If With tryBlock highlights.Add(.TryStatement.TryKeyword.Span) HighlightRelatedStatements(tryBlock, highlights) For Each catchBlock In .CatchBlocks With catchBlock.CatchStatement highlights.Add(.CatchKeyword.Span) If .WhenClause IsNot Nothing Then highlights.Add(.WhenClause.WhenKeyword.Span) End If End With HighlightRelatedStatements(catchBlock, highlights) Next If .FinallyBlock IsNot Nothing Then highlights.Add(.FinallyBlock.FinallyStatement.FinallyKeyword.Span) End If highlights.Add(.EndTryStatement.Span) End With End Sub Private Sub HighlightRelatedStatements(node As SyntaxNode, highlights As List(Of TextSpan)) If node.Kind = SyntaxKind.ExitTryStatement Then highlights.Add(node.Span) Else For Each childNodeOrToken In node.ChildNodesAndTokens() If childNodeOrToken.IsToken Then Continue For End If Dim child = childNodeOrToken.AsNode() If Not TypeOf child Is TryBlockSyntax AndAlso Not TypeOf child Is LambdaExpressionSyntax Then HighlightRelatedStatements(child, highlights) End If Next End If 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.Composition Imports System.Threading Imports Microsoft.CodeAnalysis.Highlighting Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.KeywordHighlighting <ExportHighlighter(LanguageNames.VisualBasic), [Shared]> Friend Class TryBlockHighlighter Inherits AbstractKeywordHighlighter(Of SyntaxNode) <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New() End Sub Protected Overloads Overrides Sub AddHighlights(node As SyntaxNode, highlights As List(Of TextSpan), cancellationToken As CancellationToken) If TypeOf node Is ExitStatementSyntax AndAlso node.Kind <> SyntaxKind.ExitTryStatement Then Return End If Dim tryBlock = node.GetAncestor(Of TryBlockSyntax)() If tryBlock Is Nothing Then Return End If With tryBlock highlights.Add(.TryStatement.TryKeyword.Span) HighlightRelatedStatements(tryBlock, highlights) For Each catchBlock In .CatchBlocks With catchBlock.CatchStatement highlights.Add(.CatchKeyword.Span) If .WhenClause IsNot Nothing Then highlights.Add(.WhenClause.WhenKeyword.Span) End If End With HighlightRelatedStatements(catchBlock, highlights) Next If .FinallyBlock IsNot Nothing Then highlights.Add(.FinallyBlock.FinallyStatement.FinallyKeyword.Span) End If highlights.Add(.EndTryStatement.Span) End With End Sub Private Sub HighlightRelatedStatements(node As SyntaxNode, highlights As List(Of TextSpan)) If node.Kind = SyntaxKind.ExitTryStatement Then highlights.Add(node.Span) Else For Each childNodeOrToken In node.ChildNodesAndTokens() If childNodeOrToken.IsToken Then Continue For End If Dim child = childNodeOrToken.AsNode() If Not TypeOf child Is TryBlockSyntax AndAlso Not TypeOf child Is LambdaExpressionSyntax Then HighlightRelatedStatements(child, highlights) End If Next End If End Sub End Class End Namespace
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Workspaces/Core/Portable/Workspace/Workspace_Editor.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.ErrorReporting; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.CodeAnalysis.Shared.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis { // The parts of a workspace that deal with open documents public abstract partial class Workspace { // open documents private readonly Dictionary<ProjectId, HashSet<DocumentId>> _projectToOpenDocumentsMap = new(); // text buffer maps /// <summary> /// Tracks the document ID in the current context for a source text container for an opened text buffer. /// </summary> /// <remarks>For each entry in this map, there must be a corresponding entry in <see cref="_bufferToAssociatedDocumentsMap"/> where the document ID in current context is one of associated document IDs.</remarks> private readonly Dictionary<SourceTextContainer, DocumentId> _bufferToDocumentInCurrentContextMap = new(); /// <summary> /// Tracks all the associated document IDs for a source text container for an opened text buffer. /// </summary> private readonly Dictionary<SourceTextContainer, OneOrMany<DocumentId>> _bufferToAssociatedDocumentsMap = new(); private readonly Dictionary<DocumentId, TextTracker> _textTrackers = new(); private readonly Dictionary<DocumentId, SourceTextContainer> _documentToAssociatedBufferMap = new(); private readonly Dictionary<DocumentId, SourceGeneratedDocumentIdentity> _openSourceGeneratedDocumentIdentities = new(); /// <summary> /// True if this workspace supports manually opening and closing documents. /// </summary> public virtual bool CanOpenDocuments => false; /// <summary> /// True if this workspace supports manually changing the active context document of a text buffer by calling <see cref="SetDocumentContext(DocumentId)" />. /// </summary> internal virtual bool CanChangeActiveContextDocument => false; private protected void ClearOpenDocuments() { List<DocumentId> docIds; using (_stateLock.DisposableWait()) { docIds = _projectToOpenDocumentsMap.Values.SelectMany(x => x).ToList(); } foreach (var docId in docIds) { this.ClearOpenDocument(docId); } } private void ClearOpenDocuments(ProjectId projectId) { HashSet<DocumentId>? openDocs; using (_stateLock.DisposableWait()) { _projectToOpenDocumentsMap.TryGetValue(projectId, out openDocs); } if (openDocs != null) { // ClearOpenDocument will remove the document from the original set. var copyOfOpenDocs = openDocs.ToList(); foreach (var docId in copyOfOpenDocs) { this.ClearOpenDocument(docId); } } } protected void ClearOpenDocument(DocumentId documentId) { using (_stateLock.DisposableWait()) { _projectToOpenDocumentsMap.MultiRemove(documentId.ProjectId, documentId); // Stop tracking the buffer or update the documentId associated with the buffer. if (_documentToAssociatedBufferMap.TryGetValue(documentId, out var textContainer)) { _documentToAssociatedBufferMap.Remove(documentId); if (_textTrackers.TryGetValue(documentId, out var tracker)) { tracker.Disconnect(); _textTrackers.Remove(documentId); } var currentContextDocumentId = RemoveDocumentFromCurrentContextMapping_NoLock(textContainer, documentId); if (currentContextDocumentId == null) { // No documentIds are attached to this buffer, so stop tracking it. this.UnregisterText(textContainer); } } } } [Obsolete("The isSolutionClosing parameter is now obsolete. Please call the overload without that parameter.")] protected void ClearOpenDocument(DocumentId documentId, bool isSolutionClosing) => ClearOpenDocument(documentId); /// <summary> /// Open the specified document in the host environment. /// </summary> public virtual void OpenDocument(DocumentId documentId, bool activate = true) => this.CheckCanOpenDocuments(); /// <summary> /// Close the specified document in the host environment. /// </summary> public virtual void CloseDocument(DocumentId documentId) => this.CheckCanOpenDocuments(); /// <summary> /// Open the specified additional document in the host environment. /// </summary> public virtual void OpenAdditionalDocument(DocumentId documentId, bool activate = true) => this.CheckCanOpenDocuments(); /// <summary> /// Close the specified additional document in the host environment. /// </summary> public virtual void CloseAdditionalDocument(DocumentId documentId) => this.CheckCanOpenDocuments(); /// <summary> /// Open the specified analyzer config document in the host environment. /// </summary> public virtual void OpenAnalyzerConfigDocument(DocumentId documentId, bool activate = true) => this.CheckCanOpenDocuments(); /// <summary> /// Close the specified analyzer config document in the host environment. /// </summary> public virtual void CloseAnalyzerConfigDocument(DocumentId documentId) => this.CheckCanOpenDocuments(); protected void CheckCanOpenDocuments() { if (!this.CanOpenDocuments) { throw new NotSupportedException(WorkspacesResources.This_workspace_does_not_support_opening_and_closing_documents); } } protected void CheckProjectDoesNotContainOpenDocuments(ProjectId projectId) { if (ProjectHasOpenDocuments(projectId)) { throw new ArgumentException(string.Format(WorkspacesResources._0_still_contains_open_documents, this.GetProjectName(projectId))); } } private bool ProjectHasOpenDocuments(ProjectId projectId) { using (_stateLock.DisposableWait()) { return _projectToOpenDocumentsMap.ContainsKey(projectId); } } /// <summary> /// Determines if the document is currently open in the host environment. /// </summary> public virtual bool IsDocumentOpen(DocumentId documentId) { using (_stateLock.DisposableWait()) { return _projectToOpenDocumentsMap.TryGetValue(documentId.ProjectId, out var openDocuments) && openDocuments.Contains(documentId); } } /// <summary> /// Gets a list of the currently opened documents. /// </summary> public virtual IEnumerable<DocumentId> GetOpenDocumentIds(ProjectId? projectId = null) { using (_stateLock.DisposableWait()) { if (_projectToOpenDocumentsMap.Count == 0) { return SpecializedCollections.EmptyEnumerable<DocumentId>(); } if (projectId != null) { if (_projectToOpenDocumentsMap.TryGetValue(projectId, out var documentIds)) { return documentIds; } return SpecializedCollections.EmptyEnumerable<DocumentId>(); } return _projectToOpenDocumentsMap.SelectMany(kvp => kvp.Value).ToImmutableArray(); } } /// <summary> /// Gets the ids for documents in the <see cref="CurrentSolution"/> snapshot associated with the given <paramref name="container"/>. /// Documents are normally associated with a text container when the documents are opened. /// </summary> public virtual IEnumerable<DocumentId> GetRelatedDocumentIds(SourceTextContainer container) { if (container == null) { throw new ArgumentNullException(nameof(container)); } var documentId = GetDocumentIdInCurrentContext(container); if (documentId == null) { return ImmutableArray<DocumentId>.Empty; } return CurrentSolution.GetRelatedDocumentIds(documentId); } /// <summary> /// Gets the id for the document associated with the given text container in its current context. /// Documents are normally associated with a text container when the documents are opened. /// </summary> public virtual DocumentId? GetDocumentIdInCurrentContext(SourceTextContainer container) { if (container == null) { throw new ArgumentNullException(nameof(container)); } using (_stateLock.DisposableWait()) { return GetDocumentIdInCurrentContext_NoLock(container); } } private DocumentId? GetDocumentIdInCurrentContext_NoLock(SourceTextContainer container) => _bufferToDocumentInCurrentContextMap.TryGetValue(container, out var documentId) ? documentId : null; /// <summary> /// Finds the <see cref="DocumentId"/> related to the given <see cref="DocumentId"/> that /// is in the current context. If the <see cref="DocumentId"/> is currently closed, then /// it is returned directly. If it is open, then this returns the same result that /// <see cref="GetDocumentIdInCurrentContext(SourceTextContainer)"/> would return for the /// <see cref="SourceTextContainer"/>. /// </summary> internal DocumentId GetDocumentIdInCurrentContext(DocumentId documentId) { if (documentId == null) { throw new ArgumentNullException(nameof(documentId)); } using (_stateLock.DisposableWait()) { var container = GetOpenDocumentSourceTextContainer_NoLock(documentId); if (container != null) { var currentContextId = GetDocumentIdInCurrentContext_NoLock(container); Contract.ThrowIfNull(currentContextId, "The document is open, so we should have had some context ID."); return currentContextId; } return documentId; } } private SourceTextContainer? GetOpenDocumentSourceTextContainer_NoLock(DocumentId documentId) { // TODO: remove linear search return _bufferToAssociatedDocumentsMap.Where(kvp => kvp.Value.Contains(documentId)).Select(kvp => kvp.Key).FirstOrDefault(); } internal bool TryGetOpenSourceGeneratedDocumentIdentity(DocumentId id, out SourceGeneratedDocumentIdentity documentIdentity) { using (_serializationLock.DisposableWait()) { return _openSourceGeneratedDocumentIdentities.TryGetValue(id, out documentIdentity); } } /// <summary> /// Call this method to tell the host environment to change the current active context to this document. Only supported if /// <see cref="CanChangeActiveContextDocument"/> returns true. /// </summary> internal virtual void SetDocumentContext(DocumentId documentId) => throw new NotSupportedException(); /// <summary> /// Call this method when a document has been made the active context in the host environment. /// </summary> protected internal void OnDocumentContextUpdated(DocumentId documentId) { using (_serializationLock.DisposableWait()) { DocumentId oldActiveContextDocumentId; SourceTextContainer? container; using (_stateLock.DisposableWait()) { container = GetOpenDocumentSourceTextContainer_NoLock(documentId); if (container == null) { return; } oldActiveContextDocumentId = _bufferToDocumentInCurrentContextMap[container]; if (documentId == oldActiveContextDocumentId) { return; } UpdateCurrentContextMapping_NoLock(container, documentId, isCurrentContext: true); } // fire and forget this.RaiseDocumentActiveContextChangedEventAsync(container, oldActiveContextDocumentId: oldActiveContextDocumentId, newActiveContextDocumentId: documentId); } } protected void CheckDocumentIsClosed(DocumentId documentId) { if (this.IsDocumentOpen(documentId)) { throw new ArgumentException( string.Format(WorkspacesResources._0_is_still_open, this.GetDocumentName(documentId))); } } protected void CheckDocumentIsOpen(DocumentId documentId) { if (!this.IsDocumentOpen(documentId)) { throw new ArgumentException(string.Format( WorkspacesResources._0_is_not_open, this.GetDocumentName(documentId))); } } protected internal void OnDocumentOpened( DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext = true) { using (_serializationLock.DisposableWait()) { CheckDocumentIsInCurrentSolution(documentId); CheckDocumentIsClosed(documentId); var oldSolution = this.CurrentSolution; var oldDocument = oldSolution.GetRequiredDocument(documentId); var oldDocumentState = oldDocument.State; AddToOpenDocumentMap(documentId); var newText = textContainer.CurrentText; Solution currentSolution; if (oldDocument.TryGetText(out var oldText) && oldDocument.TryGetTextVersion(out var version)) { // Optimize the case where we've already got the previous text and version. var newTextAndVersion = GetProperTextAndVersion(oldText, newText, version, oldDocumentState.FilePath); // keep open document text alive by using PreserveIdentity currentSolution = oldSolution.WithDocumentText(documentId, newTextAndVersion, PreservationMode.PreserveIdentity); } else { // We don't have the old text or version. And we don't want to retrieve them // just yet (as that would cause blocking in this synchronous method). So just // make a simple loader to do that for us later when requested. // // keep open document text alive by using PreserveIdentity // // Note: we pass along the newText here so that clients can easily get the text // of an opened document just by calling TryGetText without any blocking. currentSolution = oldSolution.UpdateDocumentTextLoader(documentId, new ReuseVersionLoader((DocumentState)oldDocument.State, newText), newText, PreservationMode.PreserveIdentity); } var newSolution = this.SetCurrentSolution(currentSolution); SignupForTextChanges(documentId, textContainer, isCurrentContext, (w, id, text, mode) => w.OnDocumentTextChanged(id, text, mode)); var newDoc = newSolution.GetRequiredDocument(documentId); this.OnDocumentTextChanged(newDoc); // Fire and forget that the workspace is changing. RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId: documentId); // We fire 2 events on source document opened. this.RaiseDocumentOpenedEventAsync(newDoc); this.RaiseTextDocumentOpenedEventAsync(newDoc); } this.RegisterText(textContainer); } /// <summary> /// Registers a SourceTextContainer to a source generated document. Unlike <see cref="OnDocumentOpened" />, /// this doesn't result in the workspace being updated any time the contents of the container is changed; instead /// this ensures that features going from the text container to the buffer back to a document get a usable document. /// </summary> // TODO: switch this protected once we have confidence in API shape internal void OnSourceGeneratedDocumentOpened( SourceTextContainer textContainer, SourceGeneratedDocument document) { using (_serializationLock.DisposableWait()) { var documentId = document.Identity.DocumentId; CheckDocumentIsClosed(documentId); AddToOpenDocumentMap(documentId); _documentToAssociatedBufferMap.Add(documentId, textContainer); _openSourceGeneratedDocumentIdentities.Add(documentId, document.Identity); UpdateCurrentContextMapping_NoLock(textContainer, documentId, isCurrentContext: true); // Fire and forget that the workspace is changing. // We raise 2 events for source document opened. var token = _taskQueue.Listener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened)); _ = RaiseDocumentOpenedEventAsync(document).CompletesAsyncOperation(token); token = _taskQueue.Listener.BeginAsyncOperation(TextDocumentOpenedEventName); _ = RaiseTextDocumentOpenedEventAsync(document).CompletesAsyncOperation(token); } this.RegisterText(textContainer); } internal void OnSourceGeneratedDocumentClosed(SourceGeneratedDocument document) { using (_serializationLock.DisposableWait()) { CheckDocumentIsOpen(document.Id); Contract.ThrowIfFalse(_openSourceGeneratedDocumentIdentities.Remove(document.Id)); ClearOpenDocument(document.Id); // Fire and forget that the workspace is changing. // We raise 2 events for source document closed. var token = _taskQueue.Listener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed)); _ = RaiseDocumentClosedEventAsync(document).CompletesAsyncOperation(token); token = _taskQueue.Listener.BeginAsyncOperation(TextDocumentClosedEventName); _ = RaiseTextDocumentClosedEventAsync(document).CompletesAsyncOperation(token); } } private class ReuseVersionLoader : TextLoader { // Capture DocumentState instead of Document so that we don't hold onto the old solution. private readonly DocumentState _oldDocumentState; private readonly SourceText _newText; public ReuseVersionLoader(DocumentState oldDocumentState, SourceText newText) { _oldDocumentState = oldDocumentState; _newText = newText; } public override async Task<TextAndVersion> LoadTextAndVersionAsync( Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) { var oldText = await _oldDocumentState.GetTextAsync(cancellationToken).ConfigureAwait(false); var version = await _oldDocumentState.GetTextVersionAsync(cancellationToken).ConfigureAwait(false); return GetProperTextAndVersion(oldText, _newText, version, _oldDocumentState.FilePath); } internal override TextAndVersion LoadTextAndVersionSynchronously(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) { var oldText = _oldDocumentState.GetTextSynchronously(cancellationToken); var version = _oldDocumentState.GetTextVersionSynchronously(cancellationToken); return GetProperTextAndVersion(oldText, _newText, version, _oldDocumentState.FilePath); } } private static TextAndVersion GetProperTextAndVersion(SourceText oldText, SourceText newText, VersionStamp version, string? filePath) { // if the supplied text is the same as the previous text, then also use same version // otherwise use new version return oldText.ContentEquals(newText) ? TextAndVersion.Create(newText, version, filePath) : TextAndVersion.Create(newText, version.GetNewerVersion(), filePath); } private void SignupForTextChanges(DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext, Action<Workspace, DocumentId, SourceText, PreservationMode> onChangedHandler) { var tracker = new TextTracker(this, documentId, textContainer, onChangedHandler); _textTrackers.Add(documentId, tracker); _documentToAssociatedBufferMap.Add(documentId, textContainer); this.UpdateCurrentContextMapping_NoLock(textContainer, documentId, isCurrentContext); tracker.Connect(); } private void AddToOpenDocumentMap(DocumentId documentId) { using (_stateLock.DisposableWait()) { _projectToOpenDocumentsMap.MultiAdd(documentId.ProjectId, documentId); } } protected internal void OnAdditionalDocumentOpened(DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext = true) { OnAdditionalOrAnalyzerConfigDocumentOpened( documentId, textContainer, isCurrentContext, WorkspaceChangeKind.AdditionalDocumentChanged, CheckAdditionalDocumentIsInCurrentSolution, withDocumentText: (oldSolution, documentId, newText, mode) => oldSolution.WithAdditionalDocumentText(documentId, newText, mode), withDocumentTextAndVersion: (oldSolution, documentId, newTextAndVersion, mode) => oldSolution.WithAdditionalDocumentText(documentId, newTextAndVersion, mode), onDocumentTextChanged: (w, id, text, mode) => w.OnAdditionalDocumentTextChanged(id, text, mode)); } protected internal void OnAnalyzerConfigDocumentOpened(DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext = true) { OnAdditionalOrAnalyzerConfigDocumentOpened( documentId, textContainer, isCurrentContext, WorkspaceChangeKind.AnalyzerConfigDocumentChanged, CheckAnalyzerConfigDocumentIsInCurrentSolution, withDocumentText: (oldSolution, documentId, newText, mode) => oldSolution.WithAnalyzerConfigDocumentText(documentId, newText, mode), withDocumentTextAndVersion: (oldSolution, documentId, newTextAndVersion, mode) => oldSolution.WithAnalyzerConfigDocumentText(documentId, newTextAndVersion, mode), onDocumentTextChanged: (w, id, text, mode) => w.OnAnalyzerConfigDocumentTextChanged(id, text, mode)); } // NOTE: We are only sharing this code between additional documents and analyzer config documents, // which are essentially plain text documents. Regular source documents need special handling // and hence have a different implementation. private void OnAdditionalOrAnalyzerConfigDocumentOpened( DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext, WorkspaceChangeKind workspaceChangeKind, Action<DocumentId> checkTextDocumentIsInCurrentSolution, Func<Solution, DocumentId, SourceText, PreservationMode, Solution> withDocumentText, Func<Solution, DocumentId, TextAndVersion, PreservationMode, Solution> withDocumentTextAndVersion, Action<Workspace, DocumentId, SourceText, PreservationMode> onDocumentTextChanged) { using (_serializationLock.DisposableWait()) { checkTextDocumentIsInCurrentSolution(documentId); CheckDocumentIsClosed(documentId); var oldSolution = this.CurrentSolution; var oldDocument = oldSolution.GetRequiredTextDocument(documentId); Debug.Assert(oldDocument.Kind is TextDocumentKind.AdditionalDocument or TextDocumentKind.AnalyzerConfigDocument); var oldText = oldDocument.GetTextSynchronously(CancellationToken.None); AddToOpenDocumentMap(documentId); // keep open document text alive by using PreserveIdentity var newText = textContainer.CurrentText; Solution currentSolution; if (oldText == newText || oldText.ContentEquals(newText)) { // if the supplied text is the same as the previous text, then also use same version var version = oldDocument.GetTextVersionSynchronously(CancellationToken.None); var newTextAndVersion = TextAndVersion.Create(newText, version, oldDocument.FilePath); currentSolution = withDocumentTextAndVersion(oldSolution, documentId, newTextAndVersion, PreservationMode.PreserveIdentity); } else { currentSolution = withDocumentText(oldSolution, documentId, newText, PreservationMode.PreserveIdentity); } var newSolution = this.SetCurrentSolution(currentSolution); SignupForTextChanges(documentId, textContainer, isCurrentContext, onDocumentTextChanged); // Fire and forget. this.RaiseWorkspaceChangedEventAsync(workspaceChangeKind, oldSolution, newSolution, documentId: documentId); // Fire and forget. var newDoc = newSolution.GetRequiredTextDocument(documentId); this.RaiseTextDocumentOpenedEventAsync(newDoc); } this.RegisterText(textContainer); } #pragma warning disable IDE0060 // Remove unused parameter 'updateActiveContext' - shipped public API. protected internal void OnDocumentClosed(DocumentId documentId, TextLoader reloader, bool updateActiveContext = false) #pragma warning restore IDE0060 // Remove unused parameter { // The try/catch here is to find additional telemetry for https://devdiv.visualstudio.com/DevDiv/_queries/query/71ee8553-7220-4b2a-98cf-20edab701fd1/, // where we have one theory that OnDocumentClosed is running but failing somewhere in the middle and thus failing to get to the RaiseDocumentClosedEventAsync() line. // We are choosing ReportWithoutCrashAndPropagate because this is a public API that has callers outside VS and also non-VisualStudioWorkspace callers inside VS, and // we don't want to be crashing underneath them if they were already handling exceptions or (worse) was using those exceptions for expected code flow. try { using (_serializationLock.DisposableWait()) { this.CheckDocumentIsInCurrentSolution(documentId); this.CheckDocumentIsOpen(documentId); // forget any open document info ClearOpenDocument(documentId); var oldSolution = this.CurrentSolution; var oldDocument = oldSolution.GetDocument(documentId); this.OnDocumentClosing(documentId); var newSolution = oldSolution.WithDocumentTextLoader(documentId, reloader, PreservationMode.PreserveValue); newSolution = this.SetCurrentSolution(newSolution); var newDoc = newSolution.GetRequiredDocument(documentId); this.OnDocumentTextChanged(newDoc); this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId: documentId); // don't wait for this // We fire and forget 2 events on source document closed. this.RaiseDocumentClosedEventAsync(newDoc); this.RaiseTextDocumentClosedEventAsync(newDoc); } } catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.General)) { throw ExceptionUtilities.Unreachable; } } protected internal void OnAdditionalDocumentClosed(DocumentId documentId, TextLoader reloader) { OnAdditionalOrAnalyzerConfigDocumentClosed( documentId, reloader, WorkspaceChangeKind.AdditionalDocumentChanged, CheckAdditionalDocumentIsInCurrentSolution, withTextDocumentTextLoader: (oldSolution, documentId, textLoader, mode) => oldSolution.WithAdditionalDocumentTextLoader(documentId, textLoader, mode)); } protected internal void OnAnalyzerConfigDocumentClosed(DocumentId documentId, TextLoader reloader) { OnAdditionalOrAnalyzerConfigDocumentClosed( documentId, reloader, WorkspaceChangeKind.AnalyzerConfigDocumentChanged, CheckAnalyzerConfigDocumentIsInCurrentSolution, withTextDocumentTextLoader: (oldSolution, documentId, textLoader, mode) => oldSolution.WithAnalyzerConfigDocumentTextLoader(documentId, textLoader, mode)); } // NOTE: We are only sharing this code between additional documents and analyzer config documents, // which are essentially plain text documents. Regular source documents need special handling // and hence have a different implementation. private void OnAdditionalOrAnalyzerConfigDocumentClosed( DocumentId documentId, TextLoader reloader, WorkspaceChangeKind workspaceChangeKind, Action<DocumentId> checkTextDocumentIsInCurrentSolution, Func<Solution, DocumentId, TextLoader, PreservationMode, Solution> withTextDocumentTextLoader) { using (_serializationLock.DisposableWait()) { checkTextDocumentIsInCurrentSolution(documentId); this.CheckDocumentIsOpen(documentId); // forget any open document info ClearOpenDocument(documentId); var oldSolution = this.CurrentSolution; var oldDocument = oldSolution.GetRequiredTextDocument(documentId); Debug.Assert(oldDocument.Kind is TextDocumentKind.AdditionalDocument or TextDocumentKind.AnalyzerConfigDocument); var newSolution = withTextDocumentTextLoader(oldSolution, documentId, reloader, PreservationMode.PreserveValue); newSolution = this.SetCurrentSolution(newSolution); this.RaiseWorkspaceChangedEventAsync(workspaceChangeKind, oldSolution, newSolution, documentId: documentId); // don't wait for this var newDoc = newSolution.GetRequiredTextDocument(documentId); this.RaiseTextDocumentClosedEventAsync(newDoc); // don't wait for this } } private void UpdateCurrentContextMapping_NoLock(SourceTextContainer textContainer, DocumentId id, bool isCurrentContext) { if (_bufferToAssociatedDocumentsMap.TryGetValue(textContainer, out var docIds)) { Contract.ThrowIfFalse(_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)); if (!docIds.Contains(id)) { docIds = docIds.Add(id); } } else { Contract.ThrowIfFalse(!_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)); docIds = new OneOrMany<DocumentId>(id); } if (isCurrentContext || !_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)) { _bufferToDocumentInCurrentContextMap[textContainer] = id; } _bufferToAssociatedDocumentsMap[textContainer] = docIds; } /// <returns>The DocumentId of the current context document attached to the textContainer, if any.</returns> private DocumentId? RemoveDocumentFromCurrentContextMapping_NoLock(SourceTextContainer textContainer, DocumentId closedDocumentId) { // Check if we are tracking this textContainer. if (!_bufferToAssociatedDocumentsMap.TryGetValue(textContainer, out var docIds)) { Contract.ThrowIfFalse(!_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)); return null; } Contract.ThrowIfFalse(_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)); // Remove closedDocumentId docIds = docIds.RemoveAll(closedDocumentId); // Remove the entry if there are no more documents attached to given textContainer. if (docIds.Equals(default(OneOrMany<DocumentId>))) { _bufferToAssociatedDocumentsMap.Remove(textContainer); _bufferToDocumentInCurrentContextMap.Remove(textContainer); return null; } // Update the new list of documents attached to the given textContainer and the current context document, and return the latter. _bufferToAssociatedDocumentsMap[textContainer] = docIds; _bufferToDocumentInCurrentContextMap[textContainer] = docIds[0]; return docIds[0]; } private SourceText GetOpenDocumentText(Solution solution, DocumentId documentId) { CheckDocumentIsOpen(documentId); var doc = solution.GetRequiredTextDocument(documentId); // text should always be preserved, so TryGetText will succeed. Contract.ThrowIfFalse(doc.TryGetText(out var text)); return text; } /// <summary> /// This method is called during OnSolutionReload. Override this method if you want to manipulate /// the reloaded solution. /// </summary> protected virtual Solution AdjustReloadedSolution(Solution oldSolution, Solution reloadedSolution) { var newSolution = reloadedSolution; // keep open documents using same text foreach (var docId in this.GetOpenDocumentIds()) { var document = newSolution.GetTextDocument(docId); if (document != null) { newSolution = document.WithText(this.GetOpenDocumentText(oldSolution, docId)).Project.Solution; } } return newSolution; } protected virtual Project AdjustReloadedProject(Project oldProject, Project reloadedProject) { var oldSolution = oldProject.Solution; var newSolution = reloadedProject.Solution; // keep open documents open using same text foreach (var docId in this.GetOpenDocumentIds(oldProject.Id)) { var document = newSolution.GetTextDocument(docId); if (document != null) { newSolution = document.WithText(this.GetOpenDocumentText(oldSolution, docId)).Project.Solution; } } return newSolution.GetRequiredProject(oldProject.Id); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.ErrorReporting; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.CodeAnalysis.Shared.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis { // The parts of a workspace that deal with open documents public abstract partial class Workspace { // open documents private readonly Dictionary<ProjectId, HashSet<DocumentId>> _projectToOpenDocumentsMap = new(); // text buffer maps /// <summary> /// Tracks the document ID in the current context for a source text container for an opened text buffer. /// </summary> /// <remarks>For each entry in this map, there must be a corresponding entry in <see cref="_bufferToAssociatedDocumentsMap"/> where the document ID in current context is one of associated document IDs.</remarks> private readonly Dictionary<SourceTextContainer, DocumentId> _bufferToDocumentInCurrentContextMap = new(); /// <summary> /// Tracks all the associated document IDs for a source text container for an opened text buffer. /// </summary> private readonly Dictionary<SourceTextContainer, OneOrMany<DocumentId>> _bufferToAssociatedDocumentsMap = new(); private readonly Dictionary<DocumentId, TextTracker> _textTrackers = new(); private readonly Dictionary<DocumentId, SourceTextContainer> _documentToAssociatedBufferMap = new(); private readonly Dictionary<DocumentId, SourceGeneratedDocumentIdentity> _openSourceGeneratedDocumentIdentities = new(); /// <summary> /// True if this workspace supports manually opening and closing documents. /// </summary> public virtual bool CanOpenDocuments => false; /// <summary> /// True if this workspace supports manually changing the active context document of a text buffer by calling <see cref="SetDocumentContext(DocumentId)" />. /// </summary> internal virtual bool CanChangeActiveContextDocument => false; private protected void ClearOpenDocuments() { List<DocumentId> docIds; using (_stateLock.DisposableWait()) { docIds = _projectToOpenDocumentsMap.Values.SelectMany(x => x).ToList(); } foreach (var docId in docIds) { this.ClearOpenDocument(docId); } } private void ClearOpenDocuments(ProjectId projectId) { HashSet<DocumentId>? openDocs; using (_stateLock.DisposableWait()) { _projectToOpenDocumentsMap.TryGetValue(projectId, out openDocs); } if (openDocs != null) { // ClearOpenDocument will remove the document from the original set. var copyOfOpenDocs = openDocs.ToList(); foreach (var docId in copyOfOpenDocs) { this.ClearOpenDocument(docId); } } } protected void ClearOpenDocument(DocumentId documentId) { using (_stateLock.DisposableWait()) { _projectToOpenDocumentsMap.MultiRemove(documentId.ProjectId, documentId); // Stop tracking the buffer or update the documentId associated with the buffer. if (_documentToAssociatedBufferMap.TryGetValue(documentId, out var textContainer)) { _documentToAssociatedBufferMap.Remove(documentId); if (_textTrackers.TryGetValue(documentId, out var tracker)) { tracker.Disconnect(); _textTrackers.Remove(documentId); } var currentContextDocumentId = RemoveDocumentFromCurrentContextMapping_NoLock(textContainer, documentId); if (currentContextDocumentId == null) { // No documentIds are attached to this buffer, so stop tracking it. this.UnregisterText(textContainer); } } } } [Obsolete("The isSolutionClosing parameter is now obsolete. Please call the overload without that parameter.")] protected void ClearOpenDocument(DocumentId documentId, bool isSolutionClosing) => ClearOpenDocument(documentId); /// <summary> /// Open the specified document in the host environment. /// </summary> public virtual void OpenDocument(DocumentId documentId, bool activate = true) => this.CheckCanOpenDocuments(); /// <summary> /// Close the specified document in the host environment. /// </summary> public virtual void CloseDocument(DocumentId documentId) => this.CheckCanOpenDocuments(); /// <summary> /// Open the specified additional document in the host environment. /// </summary> public virtual void OpenAdditionalDocument(DocumentId documentId, bool activate = true) => this.CheckCanOpenDocuments(); /// <summary> /// Close the specified additional document in the host environment. /// </summary> public virtual void CloseAdditionalDocument(DocumentId documentId) => this.CheckCanOpenDocuments(); /// <summary> /// Open the specified analyzer config document in the host environment. /// </summary> public virtual void OpenAnalyzerConfigDocument(DocumentId documentId, bool activate = true) => this.CheckCanOpenDocuments(); /// <summary> /// Close the specified analyzer config document in the host environment. /// </summary> public virtual void CloseAnalyzerConfigDocument(DocumentId documentId) => this.CheckCanOpenDocuments(); protected void CheckCanOpenDocuments() { if (!this.CanOpenDocuments) { throw new NotSupportedException(WorkspacesResources.This_workspace_does_not_support_opening_and_closing_documents); } } protected void CheckProjectDoesNotContainOpenDocuments(ProjectId projectId) { if (ProjectHasOpenDocuments(projectId)) { throw new ArgumentException(string.Format(WorkspacesResources._0_still_contains_open_documents, this.GetProjectName(projectId))); } } private bool ProjectHasOpenDocuments(ProjectId projectId) { using (_stateLock.DisposableWait()) { return _projectToOpenDocumentsMap.ContainsKey(projectId); } } /// <summary> /// Determines if the document is currently open in the host environment. /// </summary> public virtual bool IsDocumentOpen(DocumentId documentId) { using (_stateLock.DisposableWait()) { return _projectToOpenDocumentsMap.TryGetValue(documentId.ProjectId, out var openDocuments) && openDocuments.Contains(documentId); } } /// <summary> /// Gets a list of the currently opened documents. /// </summary> public virtual IEnumerable<DocumentId> GetOpenDocumentIds(ProjectId? projectId = null) { using (_stateLock.DisposableWait()) { if (_projectToOpenDocumentsMap.Count == 0) { return SpecializedCollections.EmptyEnumerable<DocumentId>(); } if (projectId != null) { if (_projectToOpenDocumentsMap.TryGetValue(projectId, out var documentIds)) { return documentIds; } return SpecializedCollections.EmptyEnumerable<DocumentId>(); } return _projectToOpenDocumentsMap.SelectMany(kvp => kvp.Value).ToImmutableArray(); } } /// <summary> /// Gets the ids for documents in the <see cref="CurrentSolution"/> snapshot associated with the given <paramref name="container"/>. /// Documents are normally associated with a text container when the documents are opened. /// </summary> public virtual IEnumerable<DocumentId> GetRelatedDocumentIds(SourceTextContainer container) { if (container == null) { throw new ArgumentNullException(nameof(container)); } var documentId = GetDocumentIdInCurrentContext(container); if (documentId == null) { return ImmutableArray<DocumentId>.Empty; } return CurrentSolution.GetRelatedDocumentIds(documentId); } /// <summary> /// Gets the id for the document associated with the given text container in its current context. /// Documents are normally associated with a text container when the documents are opened. /// </summary> public virtual DocumentId? GetDocumentIdInCurrentContext(SourceTextContainer container) { if (container == null) { throw new ArgumentNullException(nameof(container)); } using (_stateLock.DisposableWait()) { return GetDocumentIdInCurrentContext_NoLock(container); } } private DocumentId? GetDocumentIdInCurrentContext_NoLock(SourceTextContainer container) => _bufferToDocumentInCurrentContextMap.TryGetValue(container, out var documentId) ? documentId : null; /// <summary> /// Finds the <see cref="DocumentId"/> related to the given <see cref="DocumentId"/> that /// is in the current context. If the <see cref="DocumentId"/> is currently closed, then /// it is returned directly. If it is open, then this returns the same result that /// <see cref="GetDocumentIdInCurrentContext(SourceTextContainer)"/> would return for the /// <see cref="SourceTextContainer"/>. /// </summary> internal DocumentId GetDocumentIdInCurrentContext(DocumentId documentId) { if (documentId == null) { throw new ArgumentNullException(nameof(documentId)); } using (_stateLock.DisposableWait()) { var container = GetOpenDocumentSourceTextContainer_NoLock(documentId); if (container != null) { var currentContextId = GetDocumentIdInCurrentContext_NoLock(container); Contract.ThrowIfNull(currentContextId, "The document is open, so we should have had some context ID."); return currentContextId; } return documentId; } } private SourceTextContainer? GetOpenDocumentSourceTextContainer_NoLock(DocumentId documentId) { // TODO: remove linear search return _bufferToAssociatedDocumentsMap.Where(kvp => kvp.Value.Contains(documentId)).Select(kvp => kvp.Key).FirstOrDefault(); } internal bool TryGetOpenSourceGeneratedDocumentIdentity(DocumentId id, out SourceGeneratedDocumentIdentity documentIdentity) { using (_serializationLock.DisposableWait()) { return _openSourceGeneratedDocumentIdentities.TryGetValue(id, out documentIdentity); } } /// <summary> /// Call this method to tell the host environment to change the current active context to this document. Only supported if /// <see cref="CanChangeActiveContextDocument"/> returns true. /// </summary> internal virtual void SetDocumentContext(DocumentId documentId) => throw new NotSupportedException(); /// <summary> /// Call this method when a document has been made the active context in the host environment. /// </summary> protected internal void OnDocumentContextUpdated(DocumentId documentId) { using (_serializationLock.DisposableWait()) { DocumentId oldActiveContextDocumentId; SourceTextContainer? container; using (_stateLock.DisposableWait()) { container = GetOpenDocumentSourceTextContainer_NoLock(documentId); if (container == null) { return; } oldActiveContextDocumentId = _bufferToDocumentInCurrentContextMap[container]; if (documentId == oldActiveContextDocumentId) { return; } UpdateCurrentContextMapping_NoLock(container, documentId, isCurrentContext: true); } // fire and forget this.RaiseDocumentActiveContextChangedEventAsync(container, oldActiveContextDocumentId: oldActiveContextDocumentId, newActiveContextDocumentId: documentId); } } protected void CheckDocumentIsClosed(DocumentId documentId) { if (this.IsDocumentOpen(documentId)) { throw new ArgumentException( string.Format(WorkspacesResources._0_is_still_open, this.GetDocumentName(documentId))); } } protected void CheckDocumentIsOpen(DocumentId documentId) { if (!this.IsDocumentOpen(documentId)) { throw new ArgumentException(string.Format( WorkspacesResources._0_is_not_open, this.GetDocumentName(documentId))); } } protected internal void OnDocumentOpened( DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext = true) { using (_serializationLock.DisposableWait()) { CheckDocumentIsInCurrentSolution(documentId); CheckDocumentIsClosed(documentId); var oldSolution = this.CurrentSolution; var oldDocument = oldSolution.GetRequiredDocument(documentId); var oldDocumentState = oldDocument.State; AddToOpenDocumentMap(documentId); var newText = textContainer.CurrentText; Solution currentSolution; if (oldDocument.TryGetText(out var oldText) && oldDocument.TryGetTextVersion(out var version)) { // Optimize the case where we've already got the previous text and version. var newTextAndVersion = GetProperTextAndVersion(oldText, newText, version, oldDocumentState.FilePath); // keep open document text alive by using PreserveIdentity currentSolution = oldSolution.WithDocumentText(documentId, newTextAndVersion, PreservationMode.PreserveIdentity); } else { // We don't have the old text or version. And we don't want to retrieve them // just yet (as that would cause blocking in this synchronous method). So just // make a simple loader to do that for us later when requested. // // keep open document text alive by using PreserveIdentity // // Note: we pass along the newText here so that clients can easily get the text // of an opened document just by calling TryGetText without any blocking. currentSolution = oldSolution.UpdateDocumentTextLoader(documentId, new ReuseVersionLoader((DocumentState)oldDocument.State, newText), newText, PreservationMode.PreserveIdentity); } var newSolution = this.SetCurrentSolution(currentSolution); SignupForTextChanges(documentId, textContainer, isCurrentContext, (w, id, text, mode) => w.OnDocumentTextChanged(id, text, mode)); var newDoc = newSolution.GetRequiredDocument(documentId); this.OnDocumentTextChanged(newDoc); // Fire and forget that the workspace is changing. RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId: documentId); // We fire 2 events on source document opened. this.RaiseDocumentOpenedEventAsync(newDoc); this.RaiseTextDocumentOpenedEventAsync(newDoc); } this.RegisterText(textContainer); } /// <summary> /// Registers a SourceTextContainer to a source generated document. Unlike <see cref="OnDocumentOpened" />, /// this doesn't result in the workspace being updated any time the contents of the container is changed; instead /// this ensures that features going from the text container to the buffer back to a document get a usable document. /// </summary> // TODO: switch this protected once we have confidence in API shape internal void OnSourceGeneratedDocumentOpened( SourceTextContainer textContainer, SourceGeneratedDocument document) { using (_serializationLock.DisposableWait()) { var documentId = document.Identity.DocumentId; CheckDocumentIsClosed(documentId); AddToOpenDocumentMap(documentId); _documentToAssociatedBufferMap.Add(documentId, textContainer); _openSourceGeneratedDocumentIdentities.Add(documentId, document.Identity); UpdateCurrentContextMapping_NoLock(textContainer, documentId, isCurrentContext: true); // Fire and forget that the workspace is changing. // We raise 2 events for source document opened. var token = _taskQueue.Listener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened)); _ = RaiseDocumentOpenedEventAsync(document).CompletesAsyncOperation(token); token = _taskQueue.Listener.BeginAsyncOperation(TextDocumentOpenedEventName); _ = RaiseTextDocumentOpenedEventAsync(document).CompletesAsyncOperation(token); } this.RegisterText(textContainer); } internal void OnSourceGeneratedDocumentClosed(SourceGeneratedDocument document) { using (_serializationLock.DisposableWait()) { CheckDocumentIsOpen(document.Id); Contract.ThrowIfFalse(_openSourceGeneratedDocumentIdentities.Remove(document.Id)); ClearOpenDocument(document.Id); // Fire and forget that the workspace is changing. // We raise 2 events for source document closed. var token = _taskQueue.Listener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed)); _ = RaiseDocumentClosedEventAsync(document).CompletesAsyncOperation(token); token = _taskQueue.Listener.BeginAsyncOperation(TextDocumentClosedEventName); _ = RaiseTextDocumentClosedEventAsync(document).CompletesAsyncOperation(token); } } private class ReuseVersionLoader : TextLoader { // Capture DocumentState instead of Document so that we don't hold onto the old solution. private readonly DocumentState _oldDocumentState; private readonly SourceText _newText; public ReuseVersionLoader(DocumentState oldDocumentState, SourceText newText) { _oldDocumentState = oldDocumentState; _newText = newText; } public override async Task<TextAndVersion> LoadTextAndVersionAsync( Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) { var oldText = await _oldDocumentState.GetTextAsync(cancellationToken).ConfigureAwait(false); var version = await _oldDocumentState.GetTextVersionAsync(cancellationToken).ConfigureAwait(false); return GetProperTextAndVersion(oldText, _newText, version, _oldDocumentState.FilePath); } internal override TextAndVersion LoadTextAndVersionSynchronously(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) { var oldText = _oldDocumentState.GetTextSynchronously(cancellationToken); var version = _oldDocumentState.GetTextVersionSynchronously(cancellationToken); return GetProperTextAndVersion(oldText, _newText, version, _oldDocumentState.FilePath); } } private static TextAndVersion GetProperTextAndVersion(SourceText oldText, SourceText newText, VersionStamp version, string? filePath) { // if the supplied text is the same as the previous text, then also use same version // otherwise use new version return oldText.ContentEquals(newText) ? TextAndVersion.Create(newText, version, filePath) : TextAndVersion.Create(newText, version.GetNewerVersion(), filePath); } private void SignupForTextChanges(DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext, Action<Workspace, DocumentId, SourceText, PreservationMode> onChangedHandler) { var tracker = new TextTracker(this, documentId, textContainer, onChangedHandler); _textTrackers.Add(documentId, tracker); _documentToAssociatedBufferMap.Add(documentId, textContainer); this.UpdateCurrentContextMapping_NoLock(textContainer, documentId, isCurrentContext); tracker.Connect(); } private void AddToOpenDocumentMap(DocumentId documentId) { using (_stateLock.DisposableWait()) { _projectToOpenDocumentsMap.MultiAdd(documentId.ProjectId, documentId); } } protected internal void OnAdditionalDocumentOpened(DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext = true) { OnAdditionalOrAnalyzerConfigDocumentOpened( documentId, textContainer, isCurrentContext, WorkspaceChangeKind.AdditionalDocumentChanged, CheckAdditionalDocumentIsInCurrentSolution, withDocumentText: (oldSolution, documentId, newText, mode) => oldSolution.WithAdditionalDocumentText(documentId, newText, mode), withDocumentTextAndVersion: (oldSolution, documentId, newTextAndVersion, mode) => oldSolution.WithAdditionalDocumentText(documentId, newTextAndVersion, mode), onDocumentTextChanged: (w, id, text, mode) => w.OnAdditionalDocumentTextChanged(id, text, mode)); } protected internal void OnAnalyzerConfigDocumentOpened(DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext = true) { OnAdditionalOrAnalyzerConfigDocumentOpened( documentId, textContainer, isCurrentContext, WorkspaceChangeKind.AnalyzerConfigDocumentChanged, CheckAnalyzerConfigDocumentIsInCurrentSolution, withDocumentText: (oldSolution, documentId, newText, mode) => oldSolution.WithAnalyzerConfigDocumentText(documentId, newText, mode), withDocumentTextAndVersion: (oldSolution, documentId, newTextAndVersion, mode) => oldSolution.WithAnalyzerConfigDocumentText(documentId, newTextAndVersion, mode), onDocumentTextChanged: (w, id, text, mode) => w.OnAnalyzerConfigDocumentTextChanged(id, text, mode)); } // NOTE: We are only sharing this code between additional documents and analyzer config documents, // which are essentially plain text documents. Regular source documents need special handling // and hence have a different implementation. private void OnAdditionalOrAnalyzerConfigDocumentOpened( DocumentId documentId, SourceTextContainer textContainer, bool isCurrentContext, WorkspaceChangeKind workspaceChangeKind, Action<DocumentId> checkTextDocumentIsInCurrentSolution, Func<Solution, DocumentId, SourceText, PreservationMode, Solution> withDocumentText, Func<Solution, DocumentId, TextAndVersion, PreservationMode, Solution> withDocumentTextAndVersion, Action<Workspace, DocumentId, SourceText, PreservationMode> onDocumentTextChanged) { using (_serializationLock.DisposableWait()) { checkTextDocumentIsInCurrentSolution(documentId); CheckDocumentIsClosed(documentId); var oldSolution = this.CurrentSolution; var oldDocument = oldSolution.GetRequiredTextDocument(documentId); Debug.Assert(oldDocument.Kind is TextDocumentKind.AdditionalDocument or TextDocumentKind.AnalyzerConfigDocument); var oldText = oldDocument.GetTextSynchronously(CancellationToken.None); AddToOpenDocumentMap(documentId); // keep open document text alive by using PreserveIdentity var newText = textContainer.CurrentText; Solution currentSolution; if (oldText == newText || oldText.ContentEquals(newText)) { // if the supplied text is the same as the previous text, then also use same version var version = oldDocument.GetTextVersionSynchronously(CancellationToken.None); var newTextAndVersion = TextAndVersion.Create(newText, version, oldDocument.FilePath); currentSolution = withDocumentTextAndVersion(oldSolution, documentId, newTextAndVersion, PreservationMode.PreserveIdentity); } else { currentSolution = withDocumentText(oldSolution, documentId, newText, PreservationMode.PreserveIdentity); } var newSolution = this.SetCurrentSolution(currentSolution); SignupForTextChanges(documentId, textContainer, isCurrentContext, onDocumentTextChanged); // Fire and forget. this.RaiseWorkspaceChangedEventAsync(workspaceChangeKind, oldSolution, newSolution, documentId: documentId); // Fire and forget. var newDoc = newSolution.GetRequiredTextDocument(documentId); this.RaiseTextDocumentOpenedEventAsync(newDoc); } this.RegisterText(textContainer); } #pragma warning disable IDE0060 // Remove unused parameter 'updateActiveContext' - shipped public API. protected internal void OnDocumentClosed(DocumentId documentId, TextLoader reloader, bool updateActiveContext = false) #pragma warning restore IDE0060 // Remove unused parameter { // The try/catch here is to find additional telemetry for https://devdiv.visualstudio.com/DevDiv/_queries/query/71ee8553-7220-4b2a-98cf-20edab701fd1/, // where we have one theory that OnDocumentClosed is running but failing somewhere in the middle and thus failing to get to the RaiseDocumentClosedEventAsync() line. // We are choosing ReportWithoutCrashAndPropagate because this is a public API that has callers outside VS and also non-VisualStudioWorkspace callers inside VS, and // we don't want to be crashing underneath them if they were already handling exceptions or (worse) was using those exceptions for expected code flow. try { using (_serializationLock.DisposableWait()) { this.CheckDocumentIsInCurrentSolution(documentId); this.CheckDocumentIsOpen(documentId); // forget any open document info ClearOpenDocument(documentId); var oldSolution = this.CurrentSolution; var oldDocument = oldSolution.GetDocument(documentId); this.OnDocumentClosing(documentId); var newSolution = oldSolution.WithDocumentTextLoader(documentId, reloader, PreservationMode.PreserveValue); newSolution = this.SetCurrentSolution(newSolution); var newDoc = newSolution.GetRequiredDocument(documentId); this.OnDocumentTextChanged(newDoc); this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId: documentId); // don't wait for this // We fire and forget 2 events on source document closed. this.RaiseDocumentClosedEventAsync(newDoc); this.RaiseTextDocumentClosedEventAsync(newDoc); } } catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.General)) { throw ExceptionUtilities.Unreachable; } } protected internal void OnAdditionalDocumentClosed(DocumentId documentId, TextLoader reloader) { OnAdditionalOrAnalyzerConfigDocumentClosed( documentId, reloader, WorkspaceChangeKind.AdditionalDocumentChanged, CheckAdditionalDocumentIsInCurrentSolution, withTextDocumentTextLoader: (oldSolution, documentId, textLoader, mode) => oldSolution.WithAdditionalDocumentTextLoader(documentId, textLoader, mode)); } protected internal void OnAnalyzerConfigDocumentClosed(DocumentId documentId, TextLoader reloader) { OnAdditionalOrAnalyzerConfigDocumentClosed( documentId, reloader, WorkspaceChangeKind.AnalyzerConfigDocumentChanged, CheckAnalyzerConfigDocumentIsInCurrentSolution, withTextDocumentTextLoader: (oldSolution, documentId, textLoader, mode) => oldSolution.WithAnalyzerConfigDocumentTextLoader(documentId, textLoader, mode)); } // NOTE: We are only sharing this code between additional documents and analyzer config documents, // which are essentially plain text documents. Regular source documents need special handling // and hence have a different implementation. private void OnAdditionalOrAnalyzerConfigDocumentClosed( DocumentId documentId, TextLoader reloader, WorkspaceChangeKind workspaceChangeKind, Action<DocumentId> checkTextDocumentIsInCurrentSolution, Func<Solution, DocumentId, TextLoader, PreservationMode, Solution> withTextDocumentTextLoader) { using (_serializationLock.DisposableWait()) { checkTextDocumentIsInCurrentSolution(documentId); this.CheckDocumentIsOpen(documentId); // forget any open document info ClearOpenDocument(documentId); var oldSolution = this.CurrentSolution; var oldDocument = oldSolution.GetRequiredTextDocument(documentId); Debug.Assert(oldDocument.Kind is TextDocumentKind.AdditionalDocument or TextDocumentKind.AnalyzerConfigDocument); var newSolution = withTextDocumentTextLoader(oldSolution, documentId, reloader, PreservationMode.PreserveValue); newSolution = this.SetCurrentSolution(newSolution); this.RaiseWorkspaceChangedEventAsync(workspaceChangeKind, oldSolution, newSolution, documentId: documentId); // don't wait for this var newDoc = newSolution.GetRequiredTextDocument(documentId); this.RaiseTextDocumentClosedEventAsync(newDoc); // don't wait for this } } private void UpdateCurrentContextMapping_NoLock(SourceTextContainer textContainer, DocumentId id, bool isCurrentContext) { if (_bufferToAssociatedDocumentsMap.TryGetValue(textContainer, out var docIds)) { Contract.ThrowIfFalse(_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)); if (!docIds.Contains(id)) { docIds = docIds.Add(id); } } else { Contract.ThrowIfFalse(!_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)); docIds = new OneOrMany<DocumentId>(id); } if (isCurrentContext || !_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)) { _bufferToDocumentInCurrentContextMap[textContainer] = id; } _bufferToAssociatedDocumentsMap[textContainer] = docIds; } /// <returns>The DocumentId of the current context document attached to the textContainer, if any.</returns> private DocumentId? RemoveDocumentFromCurrentContextMapping_NoLock(SourceTextContainer textContainer, DocumentId closedDocumentId) { // Check if we are tracking this textContainer. if (!_bufferToAssociatedDocumentsMap.TryGetValue(textContainer, out var docIds)) { Contract.ThrowIfFalse(!_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)); return null; } Contract.ThrowIfFalse(_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer)); // Remove closedDocumentId docIds = docIds.RemoveAll(closedDocumentId); // Remove the entry if there are no more documents attached to given textContainer. if (docIds.Equals(default(OneOrMany<DocumentId>))) { _bufferToAssociatedDocumentsMap.Remove(textContainer); _bufferToDocumentInCurrentContextMap.Remove(textContainer); return null; } // Update the new list of documents attached to the given textContainer and the current context document, and return the latter. _bufferToAssociatedDocumentsMap[textContainer] = docIds; _bufferToDocumentInCurrentContextMap[textContainer] = docIds[0]; return docIds[0]; } private SourceText GetOpenDocumentText(Solution solution, DocumentId documentId) { CheckDocumentIsOpen(documentId); var doc = solution.GetRequiredTextDocument(documentId); // text should always be preserved, so TryGetText will succeed. Contract.ThrowIfFalse(doc.TryGetText(out var text)); return text; } /// <summary> /// This method is called during OnSolutionReload. Override this method if you want to manipulate /// the reloaded solution. /// </summary> protected virtual Solution AdjustReloadedSolution(Solution oldSolution, Solution reloadedSolution) { var newSolution = reloadedSolution; // keep open documents using same text foreach (var docId in this.GetOpenDocumentIds()) { var document = newSolution.GetTextDocument(docId); if (document != null) { newSolution = document.WithText(this.GetOpenDocumentText(oldSolution, docId)).Project.Solution; } } return newSolution; } protected virtual Project AdjustReloadedProject(Project oldProject, Project reloadedProject) { var oldSolution = oldProject.Solution; var newSolution = reloadedProject.Solution; // keep open documents open using same text foreach (var docId in this.GetOpenDocumentIds(oldProject.Id)) { var document = newSolution.GetTextDocument(docId); if (document != null) { newSolution = document.WithText(this.GetOpenDocumentText(oldSolution, docId)).Project.Solution; } } return newSolution.GetRequiredProject(oldProject.Id); } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/EditorFeatures/VisualBasic/xlf/VBEditorResources.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="../VBEditorResources.resx"> <body> <trans-unit id="Add_Missing_Imports_on_Paste"> <source>Add Missing Imports on Paste</source> <target state="translated">Adicionar as Importações Ausentes ao Colar</target> <note>"imports" is a language specific term and should not be localized</note> </trans-unit> <trans-unit id="Adding_missing_imports"> <source>Adding missing imports...</source> <target state="translated">Adicionando as importações ausentes...</target> <note>Thread awaited dialog text. "imports" is a language specific term and should not be localized</note> </trans-unit> <trans-unit id="Case_Correction"> <source>Case Correction</source> <target state="translated">Correção de Caso</target> <note /> </trans-unit> <trans-unit id="Correcting_word_casing"> <source>Correcting word casing...</source> <target state="translated">Corrigindo maiúsculas e minúsculas de palavras...</target> <note /> </trans-unit> <trans-unit id="This_call_is_required_by_the_designer"> <source>This call is required by the designer.</source> <target state="translated">Esta chamada é requerida pelo designer.</target> <note /> </trans-unit> <trans-unit id="Add_any_initialization_after_the_InitializeComponent_call"> <source>Add any initialization after the InitializeComponent() call.</source> <target state="translated">Adicione qualquer inicialização após a chamada InitializeComponent().</target> <note /> </trans-unit> <trans-unit id="End_Construct"> <source>End Construct</source> <target state="translated">Finalizar Construção</target> <note /> </trans-unit> <trans-unit id="Smart_Indenting"> <source>Smart Indenting</source> <target state="translated">Recuo Inteligente</target> <note /> </trans-unit> <trans-unit id="Formatting_Document"> <source>Formatting Document...</source> <target state="translated">Formatando documento...</target> <note /> </trans-unit> <trans-unit id="Insert_new_line"> <source>Insert new line</source> <target state="translated">Inserir Nova Linha</target> <note /> </trans-unit> <trans-unit id="Format_Paste"> <source>Format Paste</source> <target state="translated">Colar Formato</target> <note /> </trans-unit> <trans-unit id="Formatting_pasted_text"> <source>Formatting pasted text...</source> <target state="translated">Formatando texto colado...</target> <note /> </trans-unit> <trans-unit id="Paste"> <source>Paste</source> <target state="translated">Colar</target> <note /> </trans-unit> <trans-unit id="Format_on_Save"> <source>Format on Save</source> <target state="translated">Formatar em Salvar</target> <note /> </trans-unit> <trans-unit id="Committing_line"> <source>Committing line</source> <target state="translated">Confirmando linha</target> <note /> </trans-unit> <trans-unit id="Visual_Basic_Pretty_List"> <source>Visual Basic Pretty List</source> <target state="translated">Reformatação Automática do Visual Basic</target> <note /> </trans-unit> <trans-unit id="not_supported"> <source>not supported</source> <target state="translated">não suportado</target> <note /> </trans-unit> <trans-unit id="Generate_Member"> <source>Generate Member</source> <target state="translated">Gerar Membro</target> <note /> </trans-unit> <trans-unit id="Line_commit"> <source>Line commit</source> <target state="translated">Confirmação de linha</target> <note /> </trans-unit> <trans-unit id="Implement_Abstract_Class_Or_Interface"> <source>Implement Abstract Class Or Interface</source> <target state="translated">Implementar Classe Abstrata ou Interface</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="../VBEditorResources.resx"> <body> <trans-unit id="Add_Missing_Imports_on_Paste"> <source>Add Missing Imports on Paste</source> <target state="translated">Adicionar as Importações Ausentes ao Colar</target> <note>"imports" is a language specific term and should not be localized</note> </trans-unit> <trans-unit id="Adding_missing_imports"> <source>Adding missing imports...</source> <target state="translated">Adicionando as importações ausentes...</target> <note>Thread awaited dialog text. "imports" is a language specific term and should not be localized</note> </trans-unit> <trans-unit id="Case_Correction"> <source>Case Correction</source> <target state="translated">Correção de Caso</target> <note /> </trans-unit> <trans-unit id="Correcting_word_casing"> <source>Correcting word casing...</source> <target state="translated">Corrigindo maiúsculas e minúsculas de palavras...</target> <note /> </trans-unit> <trans-unit id="This_call_is_required_by_the_designer"> <source>This call is required by the designer.</source> <target state="translated">Esta chamada é requerida pelo designer.</target> <note /> </trans-unit> <trans-unit id="Add_any_initialization_after_the_InitializeComponent_call"> <source>Add any initialization after the InitializeComponent() call.</source> <target state="translated">Adicione qualquer inicialização após a chamada InitializeComponent().</target> <note /> </trans-unit> <trans-unit id="End_Construct"> <source>End Construct</source> <target state="translated">Finalizar Construção</target> <note /> </trans-unit> <trans-unit id="Smart_Indenting"> <source>Smart Indenting</source> <target state="translated">Recuo Inteligente</target> <note /> </trans-unit> <trans-unit id="Formatting_Document"> <source>Formatting Document...</source> <target state="translated">Formatando documento...</target> <note /> </trans-unit> <trans-unit id="Insert_new_line"> <source>Insert new line</source> <target state="translated">Inserir Nova Linha</target> <note /> </trans-unit> <trans-unit id="Format_Paste"> <source>Format Paste</source> <target state="translated">Colar Formato</target> <note /> </trans-unit> <trans-unit id="Formatting_pasted_text"> <source>Formatting pasted text...</source> <target state="translated">Formatando texto colado...</target> <note /> </trans-unit> <trans-unit id="Paste"> <source>Paste</source> <target state="translated">Colar</target> <note /> </trans-unit> <trans-unit id="Format_on_Save"> <source>Format on Save</source> <target state="translated">Formatar em Salvar</target> <note /> </trans-unit> <trans-unit id="Committing_line"> <source>Committing line</source> <target state="translated">Confirmando linha</target> <note /> </trans-unit> <trans-unit id="Visual_Basic_Pretty_List"> <source>Visual Basic Pretty List</source> <target state="translated">Reformatação Automática do Visual Basic</target> <note /> </trans-unit> <trans-unit id="not_supported"> <source>not supported</source> <target state="translated">não suportado</target> <note /> </trans-unit> <trans-unit id="Generate_Member"> <source>Generate Member</source> <target state="translated">Gerar Membro</target> <note /> </trans-unit> <trans-unit id="Line_commit"> <source>Line commit</source> <target state="translated">Confirmação de linha</target> <note /> </trans-unit> <trans-unit id="Implement_Abstract_Class_Or_Interface"> <source>Implement Abstract Class Or Interface</source> <target state="translated">Implementar Classe Abstrata ou Interface</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter_ForStatement.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { internal sealed partial class LocalRewriter { public override BoundNode VisitForStatement(BoundForStatement node) { Debug.Assert(node != null); var rewrittenInitializer = VisitStatement(node.Initializer); var rewrittenCondition = VisitExpression(node.Condition); var rewrittenIncrement = VisitStatement(node.Increment); var rewrittenBody = VisitStatement(node.Body); Debug.Assert(rewrittenBody is { }); // EnC: We need to insert a hidden sequence point to handle function remapping in case // the containing method is edited while methods invoked in the condition are being executed. if (rewrittenCondition != null && this.Instrument) { rewrittenCondition = _instrumenter.InstrumentForStatementCondition(node, rewrittenCondition, _factory); } return RewriteForStatement( node, rewrittenInitializer, rewrittenCondition, rewrittenIncrement, rewrittenBody); } private BoundStatement RewriteForStatementWithoutInnerLocals( BoundLoopStatement original, ImmutableArray<LocalSymbol> outerLocals, BoundStatement? rewrittenInitializer, BoundExpression? rewrittenCondition, BoundStatement? rewrittenIncrement, BoundStatement rewrittenBody, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors) { Debug.Assert(original.Kind == BoundKind.ForStatement || original.Kind == BoundKind.ForEachStatement); Debug.Assert(rewrittenBody != null); // The sequence point behavior exhibited here is different from that of the native compiler. In the native // compiler, if you have something like // // for([|int i = 0, j = 0|]; ; [|i++, j++|]) // // then all the initializers are treated as a single sequence point, as are // all the loop incrementors. // // We now make each one individually a sequence point: // // for([|int i = 0|], [|j = 0|]; ; [|i++|], [|j++|]) // // If we decide that we want to preserve the native compiler stepping behavior // then we'll need to be a bit fancy here. The initializer and increment statements // can contain lambdas whose bodies need to have sequence points inserted, so we // need to make sure we visit the children. But we'll also need to make sure that // we do not generate one sequence point for each statement in the initializers // and the incrementors. SyntaxNode syntax = original.Syntax; var statementBuilder = ArrayBuilder<BoundStatement>.GetInstance(); if (rewrittenInitializer != null) { statementBuilder.Add(rewrittenInitializer); } var startLabel = new GeneratedLabelSymbol("start"); // for (initializer; condition; increment) // body; // // becomes the following (with block added for locals) // // { // initializer; // goto end; // start: // body; // continue: // increment; // end: // GotoIfTrue condition start; // break: // } var endLabel = new GeneratedLabelSymbol("end"); // initializer; // goto end; BoundStatement gotoEnd = new BoundGotoStatement(syntax, endLabel); if (this.Instrument) { // Mark the initial jump as hidden. // We do it to tell that this is not a part of previous statement. // This jump may be a target of another jump (for example if loops are nested) and that will make // impression of the previous statement being re-executed gotoEnd = BoundSequencePoint.CreateHidden(gotoEnd); } statementBuilder.Add(gotoEnd); // start: // body; statementBuilder.Add(new BoundLabelStatement(syntax, startLabel)); statementBuilder.Add(rewrittenBody); // continue: // increment; statementBuilder.Add(new BoundLabelStatement(syntax, continueLabel)); if (rewrittenIncrement != null) { statementBuilder.Add(rewrittenIncrement); } // end: // GotoIfTrue condition start; statementBuilder.Add(new BoundLabelStatement(syntax, endLabel)); BoundStatement? branchBack = null; if (rewrittenCondition != null) { branchBack = new BoundConditionalGoto(rewrittenCondition.Syntax, rewrittenCondition, true, startLabel); } else { branchBack = new BoundGotoStatement(syntax, startLabel); } if (this.Instrument) { switch (original.Kind) { case BoundKind.ForEachStatement: branchBack = _instrumenter.InstrumentForEachStatementConditionalGotoStart((BoundForEachStatement)original, branchBack); break; case BoundKind.ForStatement: branchBack = _instrumenter.InstrumentForStatementConditionalGotoStartOrBreak((BoundForStatement)original, branchBack); break; default: throw ExceptionUtilities.UnexpectedValue(original.Kind); } } statementBuilder.Add(branchBack); // break: statementBuilder.Add(new BoundLabelStatement(syntax, breakLabel)); var statements = statementBuilder.ToImmutableAndFree(); return new BoundBlock(syntax, outerLocals, statements, hasErrors); } private BoundStatement RewriteForStatement( BoundForStatement node, BoundStatement? rewrittenInitializer, BoundExpression? rewrittenCondition, BoundStatement? rewrittenIncrement, BoundStatement rewrittenBody) { if (node.InnerLocals.IsEmpty) { return RewriteForStatementWithoutInnerLocals( node, node.OuterLocals, rewrittenInitializer, rewrittenCondition, rewrittenIncrement, rewrittenBody, node.BreakLabel, node.ContinueLabel, node.HasErrors); } // We need to enter inner_scope-block from the top, that is where an instance of a display class will be created // if any local is captured within a lambda. // for (initializer; condition; increment) // body; // // becomes the following (with block added for locals) // // { // initializer; // start: // { // GotoIfFalse condition break; // body; // continue: // increment; // goto start; // } // break: // } Debug.Assert(rewrittenBody != null); SyntaxNode syntax = node.Syntax; var statementBuilder = ArrayBuilder<BoundStatement>.GetInstance(); // initializer; if (rewrittenInitializer != null) { statementBuilder.Add(rewrittenInitializer); } var startLabel = new GeneratedLabelSymbol("start"); // start: BoundStatement startLabelStatement = new BoundLabelStatement(syntax, startLabel); if (Instrument) { startLabelStatement = BoundSequencePoint.CreateHidden(startLabelStatement); } statementBuilder.Add(startLabelStatement); var blockBuilder = ArrayBuilder<BoundStatement>.GetInstance(); // GotoIfFalse condition break; if (rewrittenCondition != null) { BoundStatement ifNotConditionGotoBreak = new BoundConditionalGoto(rewrittenCondition.Syntax, rewrittenCondition, false, node.BreakLabel); if (this.Instrument) { ifNotConditionGotoBreak = _instrumenter.InstrumentForStatementConditionalGotoStartOrBreak(node, ifNotConditionGotoBreak); } blockBuilder.Add(ifNotConditionGotoBreak); } // body; blockBuilder.Add(rewrittenBody); // continue: // increment; blockBuilder.Add(new BoundLabelStatement(syntax, node.ContinueLabel)); if (rewrittenIncrement != null) { blockBuilder.Add(rewrittenIncrement); } // goto start; blockBuilder.Add(new BoundGotoStatement(syntax, startLabel)); statementBuilder.Add(new BoundBlock(syntax, node.InnerLocals, blockBuilder.ToImmutableAndFree())); // break: statementBuilder.Add(new BoundLabelStatement(syntax, node.BreakLabel)); var statements = statementBuilder.ToImmutableAndFree(); return new BoundBlock(syntax, node.OuterLocals, statements, node.HasErrors); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { internal sealed partial class LocalRewriter { public override BoundNode VisitForStatement(BoundForStatement node) { Debug.Assert(node != null); var rewrittenInitializer = VisitStatement(node.Initializer); var rewrittenCondition = VisitExpression(node.Condition); var rewrittenIncrement = VisitStatement(node.Increment); var rewrittenBody = VisitStatement(node.Body); Debug.Assert(rewrittenBody is { }); // EnC: We need to insert a hidden sequence point to handle function remapping in case // the containing method is edited while methods invoked in the condition are being executed. if (rewrittenCondition != null && this.Instrument) { rewrittenCondition = _instrumenter.InstrumentForStatementCondition(node, rewrittenCondition, _factory); } return RewriteForStatement( node, rewrittenInitializer, rewrittenCondition, rewrittenIncrement, rewrittenBody); } private BoundStatement RewriteForStatementWithoutInnerLocals( BoundLoopStatement original, ImmutableArray<LocalSymbol> outerLocals, BoundStatement? rewrittenInitializer, BoundExpression? rewrittenCondition, BoundStatement? rewrittenIncrement, BoundStatement rewrittenBody, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors) { Debug.Assert(original.Kind == BoundKind.ForStatement || original.Kind == BoundKind.ForEachStatement); Debug.Assert(rewrittenBody != null); // The sequence point behavior exhibited here is different from that of the native compiler. In the native // compiler, if you have something like // // for([|int i = 0, j = 0|]; ; [|i++, j++|]) // // then all the initializers are treated as a single sequence point, as are // all the loop incrementors. // // We now make each one individually a sequence point: // // for([|int i = 0|], [|j = 0|]; ; [|i++|], [|j++|]) // // If we decide that we want to preserve the native compiler stepping behavior // then we'll need to be a bit fancy here. The initializer and increment statements // can contain lambdas whose bodies need to have sequence points inserted, so we // need to make sure we visit the children. But we'll also need to make sure that // we do not generate one sequence point for each statement in the initializers // and the incrementors. SyntaxNode syntax = original.Syntax; var statementBuilder = ArrayBuilder<BoundStatement>.GetInstance(); if (rewrittenInitializer != null) { statementBuilder.Add(rewrittenInitializer); } var startLabel = new GeneratedLabelSymbol("start"); // for (initializer; condition; increment) // body; // // becomes the following (with block added for locals) // // { // initializer; // goto end; // start: // body; // continue: // increment; // end: // GotoIfTrue condition start; // break: // } var endLabel = new GeneratedLabelSymbol("end"); // initializer; // goto end; BoundStatement gotoEnd = new BoundGotoStatement(syntax, endLabel); if (this.Instrument) { // Mark the initial jump as hidden. // We do it to tell that this is not a part of previous statement. // This jump may be a target of another jump (for example if loops are nested) and that will make // impression of the previous statement being re-executed gotoEnd = BoundSequencePoint.CreateHidden(gotoEnd); } statementBuilder.Add(gotoEnd); // start: // body; statementBuilder.Add(new BoundLabelStatement(syntax, startLabel)); statementBuilder.Add(rewrittenBody); // continue: // increment; statementBuilder.Add(new BoundLabelStatement(syntax, continueLabel)); if (rewrittenIncrement != null) { statementBuilder.Add(rewrittenIncrement); } // end: // GotoIfTrue condition start; statementBuilder.Add(new BoundLabelStatement(syntax, endLabel)); BoundStatement? branchBack = null; if (rewrittenCondition != null) { branchBack = new BoundConditionalGoto(rewrittenCondition.Syntax, rewrittenCondition, true, startLabel); } else { branchBack = new BoundGotoStatement(syntax, startLabel); } if (this.Instrument) { switch (original.Kind) { case BoundKind.ForEachStatement: branchBack = _instrumenter.InstrumentForEachStatementConditionalGotoStart((BoundForEachStatement)original, branchBack); break; case BoundKind.ForStatement: branchBack = _instrumenter.InstrumentForStatementConditionalGotoStartOrBreak((BoundForStatement)original, branchBack); break; default: throw ExceptionUtilities.UnexpectedValue(original.Kind); } } statementBuilder.Add(branchBack); // break: statementBuilder.Add(new BoundLabelStatement(syntax, breakLabel)); var statements = statementBuilder.ToImmutableAndFree(); return new BoundBlock(syntax, outerLocals, statements, hasErrors); } private BoundStatement RewriteForStatement( BoundForStatement node, BoundStatement? rewrittenInitializer, BoundExpression? rewrittenCondition, BoundStatement? rewrittenIncrement, BoundStatement rewrittenBody) { if (node.InnerLocals.IsEmpty) { return RewriteForStatementWithoutInnerLocals( node, node.OuterLocals, rewrittenInitializer, rewrittenCondition, rewrittenIncrement, rewrittenBody, node.BreakLabel, node.ContinueLabel, node.HasErrors); } // We need to enter inner_scope-block from the top, that is where an instance of a display class will be created // if any local is captured within a lambda. // for (initializer; condition; increment) // body; // // becomes the following (with block added for locals) // // { // initializer; // start: // { // GotoIfFalse condition break; // body; // continue: // increment; // goto start; // } // break: // } Debug.Assert(rewrittenBody != null); SyntaxNode syntax = node.Syntax; var statementBuilder = ArrayBuilder<BoundStatement>.GetInstance(); // initializer; if (rewrittenInitializer != null) { statementBuilder.Add(rewrittenInitializer); } var startLabel = new GeneratedLabelSymbol("start"); // start: BoundStatement startLabelStatement = new BoundLabelStatement(syntax, startLabel); if (Instrument) { startLabelStatement = BoundSequencePoint.CreateHidden(startLabelStatement); } statementBuilder.Add(startLabelStatement); var blockBuilder = ArrayBuilder<BoundStatement>.GetInstance(); // GotoIfFalse condition break; if (rewrittenCondition != null) { BoundStatement ifNotConditionGotoBreak = new BoundConditionalGoto(rewrittenCondition.Syntax, rewrittenCondition, false, node.BreakLabel); if (this.Instrument) { ifNotConditionGotoBreak = _instrumenter.InstrumentForStatementConditionalGotoStartOrBreak(node, ifNotConditionGotoBreak); } blockBuilder.Add(ifNotConditionGotoBreak); } // body; blockBuilder.Add(rewrittenBody); // continue: // increment; blockBuilder.Add(new BoundLabelStatement(syntax, node.ContinueLabel)); if (rewrittenIncrement != null) { blockBuilder.Add(rewrittenIncrement); } // goto start; blockBuilder.Add(new BoundGotoStatement(syntax, startLabel)); statementBuilder.Add(new BoundBlock(syntax, node.InnerLocals, blockBuilder.ToImmutableAndFree())); // break: statementBuilder.Add(new BoundLabelStatement(syntax, node.BreakLabel)); var statements = statementBuilder.ToImmutableAndFree(); return new BoundBlock(syntax, node.OuterLocals, statements, node.HasErrors); } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Compilers/Core/Portable/Desktop/AssemblyVersion.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; namespace Microsoft.CodeAnalysis { internal struct AssemblyVersion : IEquatable<AssemblyVersion>, IComparable<AssemblyVersion> { private readonly ushort _major; private readonly ushort _minor; private readonly ushort _build; private readonly ushort _revision; public AssemblyVersion(ushort major, ushort minor, ushort build, ushort revision) { _major = major; _minor = minor; _build = build; _revision = revision; } public int Major { get { return _major; } } public int Minor { get { return _minor; } } public int Build { get { return _build; } } public int Revision { get { return _revision; } } private ulong ToInteger() { return ((ulong)_major << 48) | ((ulong)_minor << 32) | ((ulong)_build << 16) | _revision; } public int CompareTo(AssemblyVersion other) { var left = ToInteger(); var right = other.ToInteger(); return (left == right) ? 0 : (left < right) ? -1 : +1; } public bool Equals(AssemblyVersion other) { return ToInteger() == other.ToInteger(); } public override bool Equals(object obj) { return obj is AssemblyVersion && Equals((AssemblyVersion)obj); } public override int GetHashCode() { return ((_major & 0x000f) << 28) | ((_minor & 0x00ff) << 20) | ((_build & 0x00ff) << 12) | (_revision & 0x0fff); } public static bool operator ==(AssemblyVersion left, AssemblyVersion right) { return left.Equals(right); } public static bool operator !=(AssemblyVersion left, AssemblyVersion right) { return !left.Equals(right); } public static bool operator <(AssemblyVersion left, AssemblyVersion right) { return left.ToInteger() < right.ToInteger(); } public static bool operator <=(AssemblyVersion left, AssemblyVersion right) { return left.ToInteger() <= right.ToInteger(); } public static bool operator >(AssemblyVersion left, AssemblyVersion right) { return left.ToInteger() > right.ToInteger(); } public static bool operator >=(AssemblyVersion left, AssemblyVersion right) { return left.ToInteger() >= right.ToInteger(); } /// <summary> /// Converts <see cref="Version"/> to <see cref="AssemblyVersion"/>. /// </summary> /// <exception cref="InvalidCastException">Major, minor, build or revision number are less than 0 or greater than 0xFFFF.</exception> public static explicit operator AssemblyVersion(Version version) { return new AssemblyVersion((ushort)version.Major, (ushort)version.Minor, (ushort)version.Build, (ushort)version.Revision); } public static explicit operator Version(AssemblyVersion version) { return new Version(version.Major, version.Minor, version.Build, version.Revision); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; namespace Microsoft.CodeAnalysis { internal struct AssemblyVersion : IEquatable<AssemblyVersion>, IComparable<AssemblyVersion> { private readonly ushort _major; private readonly ushort _minor; private readonly ushort _build; private readonly ushort _revision; public AssemblyVersion(ushort major, ushort minor, ushort build, ushort revision) { _major = major; _minor = minor; _build = build; _revision = revision; } public int Major { get { return _major; } } public int Minor { get { return _minor; } } public int Build { get { return _build; } } public int Revision { get { return _revision; } } private ulong ToInteger() { return ((ulong)_major << 48) | ((ulong)_minor << 32) | ((ulong)_build << 16) | _revision; } public int CompareTo(AssemblyVersion other) { var left = ToInteger(); var right = other.ToInteger(); return (left == right) ? 0 : (left < right) ? -1 : +1; } public bool Equals(AssemblyVersion other) { return ToInteger() == other.ToInteger(); } public override bool Equals(object obj) { return obj is AssemblyVersion && Equals((AssemblyVersion)obj); } public override int GetHashCode() { return ((_major & 0x000f) << 28) | ((_minor & 0x00ff) << 20) | ((_build & 0x00ff) << 12) | (_revision & 0x0fff); } public static bool operator ==(AssemblyVersion left, AssemblyVersion right) { return left.Equals(right); } public static bool operator !=(AssemblyVersion left, AssemblyVersion right) { return !left.Equals(right); } public static bool operator <(AssemblyVersion left, AssemblyVersion right) { return left.ToInteger() < right.ToInteger(); } public static bool operator <=(AssemblyVersion left, AssemblyVersion right) { return left.ToInteger() <= right.ToInteger(); } public static bool operator >(AssemblyVersion left, AssemblyVersion right) { return left.ToInteger() > right.ToInteger(); } public static bool operator >=(AssemblyVersion left, AssemblyVersion right) { return left.ToInteger() >= right.ToInteger(); } /// <summary> /// Converts <see cref="Version"/> to <see cref="AssemblyVersion"/>. /// </summary> /// <exception cref="InvalidCastException">Major, minor, build or revision number are less than 0 or greater than 0xFFFF.</exception> public static explicit operator AssemblyVersion(Version version) { return new AssemblyVersion((ushort)version.Major, (ushort)version.Minor, (ushort)version.Build, (ushort)version.Revision); } public static explicit operator Version(AssemblyVersion version) { return new Version(version.Major, version.Minor, version.Build, version.Revision); } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Compilers/CSharp/Portable/Symbols/MissingAssemblySymbol.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.Collections.ObjectModel; using System.Diagnostics; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols { /// <summary> /// A <see cref="MissingAssemblySymbol"/> is a special kind of <see cref="AssemblySymbol"/> that represents /// an assembly that couldn't be found. /// </summary> internal class MissingAssemblySymbol : AssemblySymbol { protected readonly AssemblyIdentity identity; protected readonly MissingModuleSymbol moduleSymbol; private ImmutableArray<ModuleSymbol> _lazyModules; public MissingAssemblySymbol(AssemblyIdentity identity) { Debug.Assert(identity != null); this.identity = identity; moduleSymbol = new MissingModuleSymbol(this, 0); } internal sealed override bool IsMissing { get { return true; } } internal override bool IsLinked { get { return false; } } internal override Symbol GetDeclaredSpecialTypeMember(SpecialMember member) { return null; } public override AssemblyIdentity Identity { get { return identity; } } public override Version AssemblyVersionPattern => null; internal override ImmutableArray<byte> PublicKey { get { return Identity.PublicKey; } } public override ImmutableArray<ModuleSymbol> Modules { get { if (_lazyModules.IsDefault) { _lazyModules = ImmutableArray.Create<ModuleSymbol>(moduleSymbol); } return _lazyModules; } } public override int GetHashCode() { return identity.GetHashCode(); } public override bool Equals(Symbol obj, TypeCompareKind compareKind) { return Equals(obj as MissingAssemblySymbol); } public bool Equals(MissingAssemblySymbol other) { if ((object)other == null) { return false; } if (ReferenceEquals(this, other)) { return true; } return identity.Equals(other.Identity); } public override ImmutableArray<Location> Locations { get { return ImmutableArray<Location>.Empty; } } internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) { throw ExceptionUtilities.Unreachable; } internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() { return ImmutableArray<AssemblySymbol>.Empty; } internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) { throw ExceptionUtilities.Unreachable; } internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() { return ImmutableArray<AssemblySymbol>.Empty; } public sealed override NamespaceSymbol GlobalNamespace { get { return this.moduleSymbol.GlobalNamespace; } } public override ICollection<string> TypeNames { get { return SpecializedCollections.EmptyCollection<string>(); } } public override ICollection<string> NamespaceNames { get { return SpecializedCollections.EmptyCollection<string>(); } } internal override NamedTypeSymbol LookupTopLevelMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol> visitedAssemblies, bool digThroughForwardedTypes) { var result = this.moduleSymbol.LookupTopLevelMetadataType(ref emittedName); Debug.Assert(result is MissingMetadataTypeSymbol); return result; } internal override NamedTypeSymbol GetDeclaredSpecialType(SpecialType type) { throw ExceptionUtilities.Unreachable; } internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other) { return false; } internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) { return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); } public override bool MightContainExtensionMethods { get { return false; } } public override AssemblyMetadata GetMetadata() => null; internal sealed override IEnumerable<NamedTypeSymbol> GetAllTopLevelForwardedTypes() { return SpecializedCollections.EmptyEnumerable<NamedTypeSymbol>(); } } }
// Licensed to the .NET Foundation under one or more 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.Collections.ObjectModel; using System.Diagnostics; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols { /// <summary> /// A <see cref="MissingAssemblySymbol"/> is a special kind of <see cref="AssemblySymbol"/> that represents /// an assembly that couldn't be found. /// </summary> internal class MissingAssemblySymbol : AssemblySymbol { protected readonly AssemblyIdentity identity; protected readonly MissingModuleSymbol moduleSymbol; private ImmutableArray<ModuleSymbol> _lazyModules; public MissingAssemblySymbol(AssemblyIdentity identity) { Debug.Assert(identity != null); this.identity = identity; moduleSymbol = new MissingModuleSymbol(this, 0); } internal sealed override bool IsMissing { get { return true; } } internal override bool IsLinked { get { return false; } } internal override Symbol GetDeclaredSpecialTypeMember(SpecialMember member) { return null; } public override AssemblyIdentity Identity { get { return identity; } } public override Version AssemblyVersionPattern => null; internal override ImmutableArray<byte> PublicKey { get { return Identity.PublicKey; } } public override ImmutableArray<ModuleSymbol> Modules { get { if (_lazyModules.IsDefault) { _lazyModules = ImmutableArray.Create<ModuleSymbol>(moduleSymbol); } return _lazyModules; } } public override int GetHashCode() { return identity.GetHashCode(); } public override bool Equals(Symbol obj, TypeCompareKind compareKind) { return Equals(obj as MissingAssemblySymbol); } public bool Equals(MissingAssemblySymbol other) { if ((object)other == null) { return false; } if (ReferenceEquals(this, other)) { return true; } return identity.Equals(other.Identity); } public override ImmutableArray<Location> Locations { get { return ImmutableArray<Location>.Empty; } } internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) { throw ExceptionUtilities.Unreachable; } internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() { return ImmutableArray<AssemblySymbol>.Empty; } internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) { throw ExceptionUtilities.Unreachable; } internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() { return ImmutableArray<AssemblySymbol>.Empty; } public sealed override NamespaceSymbol GlobalNamespace { get { return this.moduleSymbol.GlobalNamespace; } } public override ICollection<string> TypeNames { get { return SpecializedCollections.EmptyCollection<string>(); } } public override ICollection<string> NamespaceNames { get { return SpecializedCollections.EmptyCollection<string>(); } } internal override NamedTypeSymbol LookupTopLevelMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol> visitedAssemblies, bool digThroughForwardedTypes) { var result = this.moduleSymbol.LookupTopLevelMetadataType(ref emittedName); Debug.Assert(result is MissingMetadataTypeSymbol); return result; } internal override NamedTypeSymbol GetDeclaredSpecialType(SpecialType type) { throw ExceptionUtilities.Unreachable; } internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other) { return false; } internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) { return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); } public override bool MightContainExtensionMethods { get { return false; } } public override AssemblyMetadata GetMetadata() => null; internal sealed override IEnumerable<NamedTypeSymbol> GetAllTopLevelForwardedTypes() { return SpecializedCollections.EmptyEnumerable<NamedTypeSymbol>(); } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Compilers/Core/CodeAnalysisTest/Collections/TestExtensionsMethods.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. // NOTE: This code is derived from an implementation originally in dotnet/runtime: // https://github.com/dotnet/runtime/blob/v5.0.2/src/libraries/System.Collections.Immutable/tests/TestExtensionsMethods.cs // // See the commentary in https://github.com/dotnet/roslyn/pull/50156 for notes on incorporating changes made to the // reference implementation. using System; using Xunit; namespace Microsoft.CodeAnalysis.UnitTests.Collections { internal static partial class TestExtensionsMethods { internal static void ValidateDefaultThisBehavior(Action a) { Assert.Throws<NullReferenceException>(a); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // NOTE: This code is derived from an implementation originally in dotnet/runtime: // https://github.com/dotnet/runtime/blob/v5.0.2/src/libraries/System.Collections.Immutable/tests/TestExtensionsMethods.cs // // See the commentary in https://github.com/dotnet/roslyn/pull/50156 for notes on incorporating changes made to the // reference implementation. using System; using Xunit; namespace Microsoft.CodeAnalysis.UnitTests.Collections { internal static partial class TestExtensionsMethods { internal static void ValidateDefaultThisBehavior(Action a) { Assert.Throws<NullReferenceException>(a); } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/VisualStudio/Core/Def/TableDataSource/VisualStudioBaseDiagnosticListTable.LiveTableDataSource.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; using System.Windows; using System.Windows.Controls; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Common; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editor; using Microsoft.CodeAnalysis.Editor.Shared; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Navigation; using Microsoft.CodeAnalysis.Options; using Microsoft.VisualStudio.Imaging.Interop; using Microsoft.VisualStudio.LanguageServices.Implementation.TaskList; using Microsoft.VisualStudio.Shell.TableControl; using Microsoft.VisualStudio.Shell.TableManager; using Microsoft.VisualStudio.Text; using Roslyn.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Implementation.TableDataSource { internal abstract partial class VisualStudioBaseDiagnosticListTable { /// <summary> /// Used by the editor to signify that errors added to the error list /// should not be copied to the guest. Instead they will be published via LSP. /// </summary> private const string DoNotPropogateToGuestProperty = "DoNotPropagateToGuests"; /// <summary> /// Error list diagnostic source for "Build + Intellisense" setting. /// See <see cref="VisualStudioDiagnosticListTableWorkspaceEventListener.VisualStudioDiagnosticListTable.BuildTableDataSource"/> /// for error list diagnostic source for "Build only" setting. /// </summary> protected class LiveTableDataSource : AbstractRoslynTableDataSource<DiagnosticTableItem, DiagnosticsUpdatedArgs> { private readonly string _identifier; private readonly IDiagnosticService _diagnosticService; private readonly Workspace _workspace; private readonly OpenDocumentTracker<DiagnosticTableItem> _tracker; /// <summary> /// Flag indicating if a build inside Visual Studio is in progress. /// We get build progress updates from <see cref="ExternalErrorDiagnosticUpdateSource.BuildProgressChanged"/>. /// Build progress events are guaranteed to be invoked in a serial fashion during build. /// </summary> private bool _isBuildRunning; public LiveTableDataSource(Workspace workspace, IThreadingContext threadingContext, IDiagnosticService diagnosticService, string identifier, ExternalErrorDiagnosticUpdateSource? buildUpdateSource = null) : base(workspace, threadingContext) { _workspace = workspace; _identifier = identifier; _tracker = new OpenDocumentTracker<DiagnosticTableItem>(_workspace); _diagnosticService = diagnosticService; ConnectToDiagnosticService(workspace, diagnosticService); ConnectToBuildUpdateSource(buildUpdateSource); } public IGlobalOptionService GlobalOptions => _diagnosticService.GlobalOptions; public override string DisplayName => ServicesVSResources.CSharp_VB_Diagnostics_Table_Data_Source; public override string SourceTypeIdentifier => StandardTableDataSources.ErrorTableDataSource; public override string Identifier => _identifier; public override object GetItemKey(DiagnosticsUpdatedArgs data) => data.Id; private void ConnectToBuildUpdateSource(ExternalErrorDiagnosticUpdateSource? buildUpdateSource) { if (buildUpdateSource == null) { // it can be null in unit test return; } OnBuildProgressChanged(buildUpdateSource.IsInProgress); buildUpdateSource.BuildProgressChanged += (_, progress) => OnBuildProgressChanged(running: progress != ExternalErrorDiagnosticUpdateSource.BuildProgress.Done); } private void OnBuildProgressChanged(bool running) { _isBuildRunning = running; // We mark error list "Build + Intellisense" setting as stable, // i.e. shown as "Error List" without the trailing "...", if both the following are true: // 1. User invoked build is not running inside Visual Studio AND // 2. Solution crawler is not running in background to compute intellisense diagnostics. ChangeStableStateIfRequired(newIsStable: !_isBuildRunning && !IsSolutionCrawlerRunning); } public override AbstractTableEntriesSnapshot<DiagnosticTableItem> CreateSnapshot( AbstractTableEntriesSource<DiagnosticTableItem> source, int version, ImmutableArray<DiagnosticTableItem> items, ImmutableArray<ITrackingPoint> trackingPoints) { var diagnosticSource = (DiagnosticTableEntriesSource)source; var snapshot = new TableEntriesSnapshot(ThreadingContext, diagnosticSource, version, items, trackingPoints); if (diagnosticSource.SupportSpanTracking && !trackingPoints.IsDefaultOrEmpty) { // track the open document so that we can throw away tracking points on document close properly _tracker.TrackOpenDocument(diagnosticSource.TrackingDocumentId, diagnosticSource.Key, snapshot); } return snapshot; } protected override object GetOrUpdateAggregationKey(DiagnosticsUpdatedArgs data) { var key = TryGetAggregateKey(data); if (key == null) { key = CreateAggregationKey(data); AddAggregateKey(data, key); return key; } if (!CheckAggregateKey(key as AggregatedKey, data)) { RemoveStaledData(data); key = CreateAggregationKey(data); AddAggregateKey(data, key); } return key; } private bool CheckAggregateKey(AggregatedKey? key, DiagnosticsUpdatedArgs? args) { if (key == null) { return true; } if (args?.DocumentId == null || args?.Solution == null) { return true; } var documents = GetDocumentsWithSameFilePath(args.Solution, args.DocumentId); return key.DocumentIds == documents; } private object CreateAggregationKey(DiagnosticsUpdatedArgs data) { if (data.DocumentId == null || data.Solution == null) return GetItemKey(data); if (data.Id is not LiveDiagnosticUpdateArgsId liveArgsId) return GetItemKey(data); var documents = GetDocumentsWithSameFilePath(data.Solution, data.DocumentId); return new AggregatedKey(documents, liveArgsId.Analyzer, liveArgsId.Kind); } private void PopulateInitialData(Workspace workspace, IDiagnosticService diagnosticService) { var diagnosticMode = GlobalOptions.GetDiagnosticMode(InternalDiagnosticsOptions.NormalDiagnosticMode); var diagnostics = diagnosticService.GetPushDiagnosticBuckets( workspace, projectId: null, documentId: null, diagnosticMode, cancellationToken: CancellationToken.None); foreach (var bucket in diagnostics) { // We only need to issue an event to VS that these docs have diagnostics associated with them. So // we create a dummy notification for this. It doesn't matter that it is 'DiagnosticsRemoved' as // this doesn't actually change any data. All that will happen now is that VS will call back into // us for these IDs and we'll fetch the diagnostics at that point. OnDataAddedOrChanged(DiagnosticsUpdatedArgs.DiagnosticsRemoved( bucket.Id, bucket.Workspace, solution: null, bucket.ProjectId, bucket.DocumentId)); } } private void OnDiagnosticsUpdated(object sender, DiagnosticsUpdatedArgs e) { using (Logger.LogBlock(FunctionId.LiveTableDataSource_OnDiagnosticsUpdated, static arg => GetDiagnosticUpdatedMessage(arg.globalOptions, arg.e), (globalOptions: GlobalOptions, e), CancellationToken.None)) { if (_workspace != e.Workspace) { return; } var diagnostics = e.GetPushDiagnostics(GlobalOptions, InternalDiagnosticsOptions.NormalDiagnosticMode); if (diagnostics.Length == 0) { OnDataRemoved(e); return; } var count = diagnostics.Where(ShouldInclude).Count(); if (count <= 0) { OnDataRemoved(e); return; } OnDataAddedOrChanged(e); } } public override AbstractTableEntriesSource<DiagnosticTableItem> CreateTableEntriesSource(object data) { var item = (UpdatedEventArgs)data; return new TableEntriesSource(this, item.Workspace, GlobalOptions, item.ProjectId, item.DocumentId, item.Id); } private void ConnectToDiagnosticService(Workspace workspace, IDiagnosticService diagnosticService) { if (diagnosticService == null) { // it can be null in unit test return; } _diagnosticService.DiagnosticsUpdated += OnDiagnosticsUpdated; PopulateInitialData(workspace, diagnosticService); } private static bool ShouldInclude(DiagnosticData diagnostic) { if (diagnostic == null) { // guard us from wrong provider that gives null diagnostic Debug.Assert(false, "Let's see who does this"); return false; } // If this diagnostic is for LSP only, then we won't show it here if (diagnostic.Properties.ContainsKey(nameof(DocumentPropertiesService.DiagnosticsLspClientName))) { return false; } switch (diagnostic.Severity) { case DiagnosticSeverity.Info: case DiagnosticSeverity.Warning: case DiagnosticSeverity.Error: return true; case DiagnosticSeverity.Hidden: default: return false; } } public override IEqualityComparer<DiagnosticTableItem> GroupingComparer => DiagnosticTableItem.GroupingComparer.Instance; public override IEnumerable<DiagnosticTableItem> Order(IEnumerable<DiagnosticTableItem> groupedItems) { // this should make order of result always deterministic. we only need these 6 values since data with // all these same will merged to one. return groupedItems.OrderBy(d => d.Data.DataLocation?.OriginalStartLine ?? 0) .ThenBy(d => d.Data.DataLocation?.OriginalStartColumn ?? 0) .ThenBy(d => d.Data.Id) .ThenBy(d => d.Data.Message) .ThenBy(d => d.Data.DataLocation?.OriginalEndLine ?? 0) .ThenBy(d => d.Data.DataLocation?.OriginalEndColumn ?? 0); } private class TableEntriesSource : DiagnosticTableEntriesSource { private readonly LiveTableDataSource _source; private readonly Workspace _workspace; private readonly IGlobalOptionService _globalOptions; private readonly ProjectId? _projectId; private readonly DocumentId? _documentId; private readonly object _id; private readonly string _buildTool; public TableEntriesSource(LiveTableDataSource source, Workspace workspace, IGlobalOptionService globalOptions, ProjectId? projectId, DocumentId? documentId, object id) { _source = source; _workspace = workspace; _globalOptions = globalOptions; _projectId = projectId; _documentId = documentId; _id = id; _buildTool = (id as BuildToolId)?.BuildTool ?? string.Empty; } public override object Key => _id; public override string BuildTool => _buildTool; public override bool SupportSpanTracking => _documentId != null; public override DocumentId? TrackingDocumentId => _documentId; public override ImmutableArray<DiagnosticTableItem> GetItems() { var diagnosticMode = _globalOptions.GetDiagnosticMode(InternalDiagnosticsOptions.NormalDiagnosticMode); var provider = _source._diagnosticService; var items = provider.GetPushDiagnosticsAsync(_workspace, _projectId, _documentId, _id, includeSuppressedDiagnostics: true, diagnosticMode, cancellationToken: CancellationToken.None) .AsTask() .WaitAndGetResult_CanCallOnBackground(CancellationToken.None) .Where(ShouldInclude) .Select(data => DiagnosticTableItem.Create(_workspace, data)); return items.ToImmutableArray(); } public override ImmutableArray<ITrackingPoint> GetTrackingPoints(ImmutableArray<DiagnosticTableItem> items) => _workspace.CreateTrackingPoints(_documentId, items); } private class TableEntriesSnapshot : AbstractTableEntriesSnapshot<DiagnosticTableItem>, IWpfTableEntriesSnapshot { private readonly DiagnosticTableEntriesSource _source; private FrameworkElement[]? _descriptions; public TableEntriesSnapshot( IThreadingContext threadingContext, DiagnosticTableEntriesSource source, int version, ImmutableArray<DiagnosticTableItem> items, ImmutableArray<ITrackingPoint> trackingPoints) : base(threadingContext, version, items, trackingPoints) { _source = source; } public override bool TryGetValue(int index, string columnName, [NotNullWhen(returnValue: true)] out object? content) { // REVIEW: this method is too-chatty to make async, but otherwise, how one can implement it async? // also, what is cancellation mechanism? var item = GetItem(index); if (item == null) { content = null; return false; } var data = item.Data; switch (columnName) { case StandardTableKeyNames.ErrorRank: content = ValueTypeCache.GetOrCreate(GetErrorRank(data)); return content != null; case StandardTableKeyNames.ErrorSeverity: content = ValueTypeCache.GetOrCreate(GetErrorCategory(data.Severity)); return content != null; case StandardTableKeyNames.ErrorCode: content = data.Id; return content != null; case StandardTableKeyNames.ErrorCodeToolTip: content = (data.GetValidHelpLinkUri() != null) ? string.Format(EditorFeaturesResources.Get_help_for_0, data.Id) : null; return content != null; case StandardTableKeyNames.HelpKeyword: content = data.Id; return content != null; case StandardTableKeyNames.HelpLink: content = data.GetValidHelpLinkUri()?.AbsoluteUri; return content != null; case StandardTableKeyNames.ErrorCategory: content = data.Category; return content != null; case StandardTableKeyNames.ErrorSource: content = ValueTypeCache.GetOrCreate(GetErrorSource(_source.BuildTool)); return content != null; case StandardTableKeyNames.BuildTool: content = GetBuildTool(_source.BuildTool); return content != null; case StandardTableKeyNames.Text: content = data.Message; return content != null; case StandardTableKeyNames.DocumentName: content = data.DataLocation?.GetFilePath(); return content != null; case StandardTableKeyNames.Line: content = data.DataLocation?.MappedStartLine ?? 0; return true; case StandardTableKeyNames.Column: content = data.DataLocation?.MappedStartColumn ?? 0; return true; case StandardTableKeyNames.ProjectName: content = item.ProjectName; return content != null; case ProjectNames: var names = item.ProjectNames; content = names; return names.Length > 0; case StandardTableKeyNames.ProjectGuid: content = ValueTypeCache.GetOrCreate(item.ProjectGuid); return (Guid)content != Guid.Empty; case ProjectGuids: var guids = item.ProjectGuids; content = guids; return guids.Length > 0; case StandardTableKeyNames.SuppressionState: content = data.IsSuppressed ? SuppressionState.Suppressed : SuppressionState.Active; return true; case DoNotPropogateToGuestProperty: content = true; return true; default: content = null; return false; } } private string GetBuildTool(string buildTool) { // for build tool, regardless where error is coming from ("build" or "live"), // we show "compiler" to users. if (buildTool == PredefinedBuildTools.Live) { return PredefinedBuildTools.Build; } return _source.BuildTool; } private static ErrorSource GetErrorSource(string buildTool) { if (buildTool == PredefinedBuildTools.Build) { return ErrorSource.Build; } return ErrorSource.Other; } private static ErrorRank GetErrorRank(DiagnosticData item) { if (!item.Properties.TryGetValue(WellKnownDiagnosticPropertyNames.Origin, out var value)) { return ErrorRank.Other; } switch (value) { case WellKnownDiagnosticTags.Build: // any error from build gets lowest priority // see https://github.com/dotnet/roslyn/issues/28807 // // this is only used when intellisense (live) errors are involved. // with "build only" filter on, we use order of errors came in from build for ordering // and doesn't use ErrorRank for ordering (by giving same rank for all errors) // // when live errors are involved, by default, error list will use the following to sort errors // error rank > project rank > project name > file name > line > column // which will basically make syntax errors show up before declaration error and method body semantic errors // among same type of errors, leaf project's error will show up first and then projects that depends on the leaf projects // // any build errors mixed with live errors will show up at the end. when live errors are on, some of errors // still left as build errors such as errors produced after CompilationStages.Compile or ones listed here // http://source.roslyn.io/#Microsoft.CodeAnalysis.CSharp/Compilation/CSharpCompilerDiagnosticAnalyzer.cs,23 or similar ones for VB // and etc. return ErrorRank.PostBuild; case nameof(ErrorRank.Lexical): return ErrorRank.Lexical; case nameof(ErrorRank.Syntactic): return ErrorRank.Syntactic; case nameof(ErrorRank.Declaration): return ErrorRank.Declaration; case nameof(ErrorRank.Semantic): return ErrorRank.Semantic; case nameof(ErrorRank.Emit): return ErrorRank.Emit; case nameof(ErrorRank.PostBuild): return ErrorRank.PostBuild; default: return ErrorRank.Other; } } public override bool TryNavigateTo(int index, NavigationOptions options, CancellationToken cancellationToken) => TryNavigateToItem(index, options, cancellationToken); #region IWpfTableEntriesSnapshot public bool CanCreateDetailsContent(int index) { var item = GetItem(index)?.Data; if (item == null) { return false; } return !string.IsNullOrWhiteSpace(item.Description); } public bool TryCreateDetailsContent(int index, [NotNullWhen(returnValue: true)] out FrameworkElement? expandedContent) { var item = GetItem(index)?.Data; if (item == null) { expandedContent = null; return false; } expandedContent = GetOrCreateTextBlock(ref _descriptions, this.Count, index, item, i => GetDescriptionTextBlock(i)); return true; } public bool TryCreateDetailsStringContent(int index, [NotNullWhen(returnValue: true)] out string? content) { var item = GetItem(index)?.Data; if (item == null) { content = null; return false; } if (string.IsNullOrWhiteSpace(item.Description)) { content = null; return false; } content = item.Description; return content != null; } private static FrameworkElement GetDescriptionTextBlock(DiagnosticData item) { return new TextBlock() { Background = null, Padding = new Thickness(10, 6, 10, 8), TextWrapping = TextWrapping.Wrap, Text = item.Description }; } private static FrameworkElement GetOrCreateTextBlock( [NotNull] ref FrameworkElement[]? caches, int count, int index, DiagnosticData item, Func<DiagnosticData, FrameworkElement> elementCreator) { caches ??= new FrameworkElement[count]; if (caches[index] == null) { caches[index] = elementCreator(item); } return caches[index]; } // unused ones public bool TryCreateColumnContent(int index, string columnName, bool singleColumnView, [NotNullWhen(returnValue: true)] out FrameworkElement? content) { content = null; return false; } public bool TryCreateImageContent(int index, string columnName, bool singleColumnView, out ImageMoniker content) { content = default; return false; } public bool TryCreateStringContent(int index, string columnName, bool truncatedText, bool singleColumnView, [NotNullWhen(returnValue: true)] out string? content) { content = null; return false; } public bool TryCreateToolTip(int index, string columnName, [NotNullWhen(returnValue: true)] out object? toolTip) { toolTip = null; return false; } #pragma warning disable IDE0060 // Remove unused parameter - TODO: remove this once we moved to new drop public static bool TryCreateStringContent(int index, string columnName, bool singleColumnView, [NotNullWhen(returnValue: true)] out string? content) #pragma warning restore IDE0060 // Remove unused parameter { content = null; return false; } #endregion } private static string GetDiagnosticUpdatedMessage(IGlobalOptionService globalOptions, DiagnosticsUpdatedArgs e) { var id = e.Id.ToString(); if (e.Id is LiveDiagnosticUpdateArgsId live) { id = $"{live.Analyzer}/{live.Kind}"; } else if (e.Id is AnalyzerUpdateArgsId analyzer) { id = analyzer.Analyzer.ToString(); } var diagnostics = e.GetPushDiagnostics(globalOptions, InternalDiagnosticsOptions.NormalDiagnosticMode); return $"Kind:{e.Workspace.Kind}, Analyzer:{id}, Update:{e.Kind}, {(object?)e.DocumentId ?? e.ProjectId}, ({string.Join(Environment.NewLine, diagnostics)})"; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; using System.Windows; using System.Windows.Controls; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Common; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editor; using Microsoft.CodeAnalysis.Editor.Shared; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Navigation; using Microsoft.CodeAnalysis.Options; using Microsoft.VisualStudio.Imaging.Interop; using Microsoft.VisualStudio.LanguageServices.Implementation.TaskList; using Microsoft.VisualStudio.Shell.TableControl; using Microsoft.VisualStudio.Shell.TableManager; using Microsoft.VisualStudio.Text; using Roslyn.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Implementation.TableDataSource { internal abstract partial class VisualStudioBaseDiagnosticListTable { /// <summary> /// Used by the editor to signify that errors added to the error list /// should not be copied to the guest. Instead they will be published via LSP. /// </summary> private const string DoNotPropogateToGuestProperty = "DoNotPropagateToGuests"; /// <summary> /// Error list diagnostic source for "Build + Intellisense" setting. /// See <see cref="VisualStudioDiagnosticListTableWorkspaceEventListener.VisualStudioDiagnosticListTable.BuildTableDataSource"/> /// for error list diagnostic source for "Build only" setting. /// </summary> protected class LiveTableDataSource : AbstractRoslynTableDataSource<DiagnosticTableItem, DiagnosticsUpdatedArgs> { private readonly string _identifier; private readonly IDiagnosticService _diagnosticService; private readonly Workspace _workspace; private readonly OpenDocumentTracker<DiagnosticTableItem> _tracker; /// <summary> /// Flag indicating if a build inside Visual Studio is in progress. /// We get build progress updates from <see cref="ExternalErrorDiagnosticUpdateSource.BuildProgressChanged"/>. /// Build progress events are guaranteed to be invoked in a serial fashion during build. /// </summary> private bool _isBuildRunning; public LiveTableDataSource(Workspace workspace, IThreadingContext threadingContext, IDiagnosticService diagnosticService, string identifier, ExternalErrorDiagnosticUpdateSource? buildUpdateSource = null) : base(workspace, threadingContext) { _workspace = workspace; _identifier = identifier; _tracker = new OpenDocumentTracker<DiagnosticTableItem>(_workspace); _diagnosticService = diagnosticService; ConnectToDiagnosticService(workspace, diagnosticService); ConnectToBuildUpdateSource(buildUpdateSource); } public IGlobalOptionService GlobalOptions => _diagnosticService.GlobalOptions; public override string DisplayName => ServicesVSResources.CSharp_VB_Diagnostics_Table_Data_Source; public override string SourceTypeIdentifier => StandardTableDataSources.ErrorTableDataSource; public override string Identifier => _identifier; public override object GetItemKey(DiagnosticsUpdatedArgs data) => data.Id; private void ConnectToBuildUpdateSource(ExternalErrorDiagnosticUpdateSource? buildUpdateSource) { if (buildUpdateSource == null) { // it can be null in unit test return; } OnBuildProgressChanged(buildUpdateSource.IsInProgress); buildUpdateSource.BuildProgressChanged += (_, progress) => OnBuildProgressChanged(running: progress != ExternalErrorDiagnosticUpdateSource.BuildProgress.Done); } private void OnBuildProgressChanged(bool running) { _isBuildRunning = running; // We mark error list "Build + Intellisense" setting as stable, // i.e. shown as "Error List" without the trailing "...", if both the following are true: // 1. User invoked build is not running inside Visual Studio AND // 2. Solution crawler is not running in background to compute intellisense diagnostics. ChangeStableStateIfRequired(newIsStable: !_isBuildRunning && !IsSolutionCrawlerRunning); } public override AbstractTableEntriesSnapshot<DiagnosticTableItem> CreateSnapshot( AbstractTableEntriesSource<DiagnosticTableItem> source, int version, ImmutableArray<DiagnosticTableItem> items, ImmutableArray<ITrackingPoint> trackingPoints) { var diagnosticSource = (DiagnosticTableEntriesSource)source; var snapshot = new TableEntriesSnapshot(ThreadingContext, diagnosticSource, version, items, trackingPoints); if (diagnosticSource.SupportSpanTracking && !trackingPoints.IsDefaultOrEmpty) { // track the open document so that we can throw away tracking points on document close properly _tracker.TrackOpenDocument(diagnosticSource.TrackingDocumentId, diagnosticSource.Key, snapshot); } return snapshot; } protected override object GetOrUpdateAggregationKey(DiagnosticsUpdatedArgs data) { var key = TryGetAggregateKey(data); if (key == null) { key = CreateAggregationKey(data); AddAggregateKey(data, key); return key; } if (!CheckAggregateKey(key as AggregatedKey, data)) { RemoveStaledData(data); key = CreateAggregationKey(data); AddAggregateKey(data, key); } return key; } private bool CheckAggregateKey(AggregatedKey? key, DiagnosticsUpdatedArgs? args) { if (key == null) { return true; } if (args?.DocumentId == null || args?.Solution == null) { return true; } var documents = GetDocumentsWithSameFilePath(args.Solution, args.DocumentId); return key.DocumentIds == documents; } private object CreateAggregationKey(DiagnosticsUpdatedArgs data) { if (data.DocumentId == null || data.Solution == null) return GetItemKey(data); if (data.Id is not LiveDiagnosticUpdateArgsId liveArgsId) return GetItemKey(data); var documents = GetDocumentsWithSameFilePath(data.Solution, data.DocumentId); return new AggregatedKey(documents, liveArgsId.Analyzer, liveArgsId.Kind); } private void PopulateInitialData(Workspace workspace, IDiagnosticService diagnosticService) { var diagnosticMode = GlobalOptions.GetDiagnosticMode(InternalDiagnosticsOptions.NormalDiagnosticMode); var diagnostics = diagnosticService.GetPushDiagnosticBuckets( workspace, projectId: null, documentId: null, diagnosticMode, cancellationToken: CancellationToken.None); foreach (var bucket in diagnostics) { // We only need to issue an event to VS that these docs have diagnostics associated with them. So // we create a dummy notification for this. It doesn't matter that it is 'DiagnosticsRemoved' as // this doesn't actually change any data. All that will happen now is that VS will call back into // us for these IDs and we'll fetch the diagnostics at that point. OnDataAddedOrChanged(DiagnosticsUpdatedArgs.DiagnosticsRemoved( bucket.Id, bucket.Workspace, solution: null, bucket.ProjectId, bucket.DocumentId)); } } private void OnDiagnosticsUpdated(object sender, DiagnosticsUpdatedArgs e) { using (Logger.LogBlock(FunctionId.LiveTableDataSource_OnDiagnosticsUpdated, static arg => GetDiagnosticUpdatedMessage(arg.globalOptions, arg.e), (globalOptions: GlobalOptions, e), CancellationToken.None)) { if (_workspace != e.Workspace) { return; } var diagnostics = e.GetPushDiagnostics(GlobalOptions, InternalDiagnosticsOptions.NormalDiagnosticMode); if (diagnostics.Length == 0) { OnDataRemoved(e); return; } var count = diagnostics.Where(ShouldInclude).Count(); if (count <= 0) { OnDataRemoved(e); return; } OnDataAddedOrChanged(e); } } public override AbstractTableEntriesSource<DiagnosticTableItem> CreateTableEntriesSource(object data) { var item = (UpdatedEventArgs)data; return new TableEntriesSource(this, item.Workspace, GlobalOptions, item.ProjectId, item.DocumentId, item.Id); } private void ConnectToDiagnosticService(Workspace workspace, IDiagnosticService diagnosticService) { if (diagnosticService == null) { // it can be null in unit test return; } _diagnosticService.DiagnosticsUpdated += OnDiagnosticsUpdated; PopulateInitialData(workspace, diagnosticService); } private static bool ShouldInclude(DiagnosticData diagnostic) { if (diagnostic == null) { // guard us from wrong provider that gives null diagnostic Debug.Assert(false, "Let's see who does this"); return false; } // If this diagnostic is for LSP only, then we won't show it here if (diagnostic.Properties.ContainsKey(nameof(DocumentPropertiesService.DiagnosticsLspClientName))) { return false; } switch (diagnostic.Severity) { case DiagnosticSeverity.Info: case DiagnosticSeverity.Warning: case DiagnosticSeverity.Error: return true; case DiagnosticSeverity.Hidden: default: return false; } } public override IEqualityComparer<DiagnosticTableItem> GroupingComparer => DiagnosticTableItem.GroupingComparer.Instance; public override IEnumerable<DiagnosticTableItem> Order(IEnumerable<DiagnosticTableItem> groupedItems) { // this should make order of result always deterministic. we only need these 6 values since data with // all these same will merged to one. return groupedItems.OrderBy(d => d.Data.DataLocation?.OriginalStartLine ?? 0) .ThenBy(d => d.Data.DataLocation?.OriginalStartColumn ?? 0) .ThenBy(d => d.Data.Id) .ThenBy(d => d.Data.Message) .ThenBy(d => d.Data.DataLocation?.OriginalEndLine ?? 0) .ThenBy(d => d.Data.DataLocation?.OriginalEndColumn ?? 0); } private class TableEntriesSource : DiagnosticTableEntriesSource { private readonly LiveTableDataSource _source; private readonly Workspace _workspace; private readonly IGlobalOptionService _globalOptions; private readonly ProjectId? _projectId; private readonly DocumentId? _documentId; private readonly object _id; private readonly string _buildTool; public TableEntriesSource(LiveTableDataSource source, Workspace workspace, IGlobalOptionService globalOptions, ProjectId? projectId, DocumentId? documentId, object id) { _source = source; _workspace = workspace; _globalOptions = globalOptions; _projectId = projectId; _documentId = documentId; _id = id; _buildTool = (id as BuildToolId)?.BuildTool ?? string.Empty; } public override object Key => _id; public override string BuildTool => _buildTool; public override bool SupportSpanTracking => _documentId != null; public override DocumentId? TrackingDocumentId => _documentId; public override ImmutableArray<DiagnosticTableItem> GetItems() { var diagnosticMode = _globalOptions.GetDiagnosticMode(InternalDiagnosticsOptions.NormalDiagnosticMode); var provider = _source._diagnosticService; var items = provider.GetPushDiagnosticsAsync(_workspace, _projectId, _documentId, _id, includeSuppressedDiagnostics: true, diagnosticMode, cancellationToken: CancellationToken.None) .AsTask() .WaitAndGetResult_CanCallOnBackground(CancellationToken.None) .Where(ShouldInclude) .Select(data => DiagnosticTableItem.Create(_workspace, data)); return items.ToImmutableArray(); } public override ImmutableArray<ITrackingPoint> GetTrackingPoints(ImmutableArray<DiagnosticTableItem> items) => _workspace.CreateTrackingPoints(_documentId, items); } private class TableEntriesSnapshot : AbstractTableEntriesSnapshot<DiagnosticTableItem>, IWpfTableEntriesSnapshot { private readonly DiagnosticTableEntriesSource _source; private FrameworkElement[]? _descriptions; public TableEntriesSnapshot( IThreadingContext threadingContext, DiagnosticTableEntriesSource source, int version, ImmutableArray<DiagnosticTableItem> items, ImmutableArray<ITrackingPoint> trackingPoints) : base(threadingContext, version, items, trackingPoints) { _source = source; } public override bool TryGetValue(int index, string columnName, [NotNullWhen(returnValue: true)] out object? content) { // REVIEW: this method is too-chatty to make async, but otherwise, how one can implement it async? // also, what is cancellation mechanism? var item = GetItem(index); if (item == null) { content = null; return false; } var data = item.Data; switch (columnName) { case StandardTableKeyNames.ErrorRank: content = ValueTypeCache.GetOrCreate(GetErrorRank(data)); return content != null; case StandardTableKeyNames.ErrorSeverity: content = ValueTypeCache.GetOrCreate(GetErrorCategory(data.Severity)); return content != null; case StandardTableKeyNames.ErrorCode: content = data.Id; return content != null; case StandardTableKeyNames.ErrorCodeToolTip: content = (data.GetValidHelpLinkUri() != null) ? string.Format(EditorFeaturesResources.Get_help_for_0, data.Id) : null; return content != null; case StandardTableKeyNames.HelpKeyword: content = data.Id; return content != null; case StandardTableKeyNames.HelpLink: content = data.GetValidHelpLinkUri()?.AbsoluteUri; return content != null; case StandardTableKeyNames.ErrorCategory: content = data.Category; return content != null; case StandardTableKeyNames.ErrorSource: content = ValueTypeCache.GetOrCreate(GetErrorSource(_source.BuildTool)); return content != null; case StandardTableKeyNames.BuildTool: content = GetBuildTool(_source.BuildTool); return content != null; case StandardTableKeyNames.Text: content = data.Message; return content != null; case StandardTableKeyNames.DocumentName: content = data.DataLocation?.GetFilePath(); return content != null; case StandardTableKeyNames.Line: content = data.DataLocation?.MappedStartLine ?? 0; return true; case StandardTableKeyNames.Column: content = data.DataLocation?.MappedStartColumn ?? 0; return true; case StandardTableKeyNames.ProjectName: content = item.ProjectName; return content != null; case ProjectNames: var names = item.ProjectNames; content = names; return names.Length > 0; case StandardTableKeyNames.ProjectGuid: content = ValueTypeCache.GetOrCreate(item.ProjectGuid); return (Guid)content != Guid.Empty; case ProjectGuids: var guids = item.ProjectGuids; content = guids; return guids.Length > 0; case StandardTableKeyNames.SuppressionState: content = data.IsSuppressed ? SuppressionState.Suppressed : SuppressionState.Active; return true; case DoNotPropogateToGuestProperty: content = true; return true; default: content = null; return false; } } private string GetBuildTool(string buildTool) { // for build tool, regardless where error is coming from ("build" or "live"), // we show "compiler" to users. if (buildTool == PredefinedBuildTools.Live) { return PredefinedBuildTools.Build; } return _source.BuildTool; } private static ErrorSource GetErrorSource(string buildTool) { if (buildTool == PredefinedBuildTools.Build) { return ErrorSource.Build; } return ErrorSource.Other; } private static ErrorRank GetErrorRank(DiagnosticData item) { if (!item.Properties.TryGetValue(WellKnownDiagnosticPropertyNames.Origin, out var value)) { return ErrorRank.Other; } switch (value) { case WellKnownDiagnosticTags.Build: // any error from build gets lowest priority // see https://github.com/dotnet/roslyn/issues/28807 // // this is only used when intellisense (live) errors are involved. // with "build only" filter on, we use order of errors came in from build for ordering // and doesn't use ErrorRank for ordering (by giving same rank for all errors) // // when live errors are involved, by default, error list will use the following to sort errors // error rank > project rank > project name > file name > line > column // which will basically make syntax errors show up before declaration error and method body semantic errors // among same type of errors, leaf project's error will show up first and then projects that depends on the leaf projects // // any build errors mixed with live errors will show up at the end. when live errors are on, some of errors // still left as build errors such as errors produced after CompilationStages.Compile or ones listed here // http://source.roslyn.io/#Microsoft.CodeAnalysis.CSharp/Compilation/CSharpCompilerDiagnosticAnalyzer.cs,23 or similar ones for VB // and etc. return ErrorRank.PostBuild; case nameof(ErrorRank.Lexical): return ErrorRank.Lexical; case nameof(ErrorRank.Syntactic): return ErrorRank.Syntactic; case nameof(ErrorRank.Declaration): return ErrorRank.Declaration; case nameof(ErrorRank.Semantic): return ErrorRank.Semantic; case nameof(ErrorRank.Emit): return ErrorRank.Emit; case nameof(ErrorRank.PostBuild): return ErrorRank.PostBuild; default: return ErrorRank.Other; } } public override bool TryNavigateTo(int index, NavigationOptions options, CancellationToken cancellationToken) => TryNavigateToItem(index, options, cancellationToken); #region IWpfTableEntriesSnapshot public bool CanCreateDetailsContent(int index) { var item = GetItem(index)?.Data; if (item == null) { return false; } return !string.IsNullOrWhiteSpace(item.Description); } public bool TryCreateDetailsContent(int index, [NotNullWhen(returnValue: true)] out FrameworkElement? expandedContent) { var item = GetItem(index)?.Data; if (item == null) { expandedContent = null; return false; } expandedContent = GetOrCreateTextBlock(ref _descriptions, this.Count, index, item, i => GetDescriptionTextBlock(i)); return true; } public bool TryCreateDetailsStringContent(int index, [NotNullWhen(returnValue: true)] out string? content) { var item = GetItem(index)?.Data; if (item == null) { content = null; return false; } if (string.IsNullOrWhiteSpace(item.Description)) { content = null; return false; } content = item.Description; return content != null; } private static FrameworkElement GetDescriptionTextBlock(DiagnosticData item) { return new TextBlock() { Background = null, Padding = new Thickness(10, 6, 10, 8), TextWrapping = TextWrapping.Wrap, Text = item.Description }; } private static FrameworkElement GetOrCreateTextBlock( [NotNull] ref FrameworkElement[]? caches, int count, int index, DiagnosticData item, Func<DiagnosticData, FrameworkElement> elementCreator) { caches ??= new FrameworkElement[count]; if (caches[index] == null) { caches[index] = elementCreator(item); } return caches[index]; } // unused ones public bool TryCreateColumnContent(int index, string columnName, bool singleColumnView, [NotNullWhen(returnValue: true)] out FrameworkElement? content) { content = null; return false; } public bool TryCreateImageContent(int index, string columnName, bool singleColumnView, out ImageMoniker content) { content = default; return false; } public bool TryCreateStringContent(int index, string columnName, bool truncatedText, bool singleColumnView, [NotNullWhen(returnValue: true)] out string? content) { content = null; return false; } public bool TryCreateToolTip(int index, string columnName, [NotNullWhen(returnValue: true)] out object? toolTip) { toolTip = null; return false; } #pragma warning disable IDE0060 // Remove unused parameter - TODO: remove this once we moved to new drop public static bool TryCreateStringContent(int index, string columnName, bool singleColumnView, [NotNullWhen(returnValue: true)] out string? content) #pragma warning restore IDE0060 // Remove unused parameter { content = null; return false; } #endregion } private static string GetDiagnosticUpdatedMessage(IGlobalOptionService globalOptions, DiagnosticsUpdatedArgs e) { var id = e.Id.ToString(); if (e.Id is LiveDiagnosticUpdateArgsId live) { id = $"{live.Analyzer}/{live.Kind}"; } else if (e.Id is AnalyzerUpdateArgsId analyzer) { id = analyzer.Analyzer.ToString(); } var diagnostics = e.GetPushDiagnostics(globalOptions, InternalDiagnosticsOptions.NormalDiagnosticMode); return $"Kind:{e.Workspace.Kind}, Analyzer:{id}, Update:{e.Kind}, {(object?)e.DocumentId ?? e.ProjectId}, ({string.Join(Environment.NewLine, diagnostics)})"; } } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/VisualStudio/Xaml/Impl/Implementation/LanguageServer/Handler/Formatting/AbstractFormatDocumentHandlerBase.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.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.LanguageServer; using Microsoft.CodeAnalysis.LanguageServer.Handler; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.LanguageServer.Protocol; using Microsoft.VisualStudio.LanguageServices.Xaml.Features.Formatting; using LSP = Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.VisualStudio.LanguageServices.Xaml.LanguageServer.Handler { internal abstract class AbstractFormatDocumentHandlerBase<RequestType, ResponseType> : IRequestHandler<RequestType, ResponseType> { public bool MutatesSolutionState => false; public bool RequiresLSPSolution => true; public abstract TextDocumentIdentifier? GetTextDocumentIdentifier(RequestType request); public abstract Task<ResponseType> HandleRequestAsync(RequestType request, RequestContext context, CancellationToken cancellationToken); protected async Task<LSP.TextEdit[]> GetTextEditsAsync(LSP.FormattingOptions formattingOptions, RequestContext context, CancellationToken cancellationToken, LSP.Range? range = null) { using var _ = ArrayBuilder<LSP.TextEdit>.GetInstance(out var edits); var document = context.Document; var formattingService = document?.Project.LanguageServices.GetService<IXamlFormattingService>(); if (document != null && formattingService != null) { var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); TextSpan? textSpan = null; if (range != null) { textSpan = ProtocolConversions.RangeToTextSpan(range, text); } var options = new XamlFormattingOptions { InsertSpaces = formattingOptions.InsertSpaces, TabSize = formattingOptions.TabSize, OtherOptions = formattingOptions.OtherOptions }; var textChanges = await formattingService.GetFormattingChangesAsync(document, options, textSpan, cancellationToken).ConfigureAwait(false); edits.AddRange(textChanges.Select(change => ProtocolConversions.TextChangeToTextEdit(change, text))); } return edits.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. using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.LanguageServer; using Microsoft.CodeAnalysis.LanguageServer.Handler; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.LanguageServer.Protocol; using Microsoft.VisualStudio.LanguageServices.Xaml.Features.Formatting; using LSP = Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.VisualStudio.LanguageServices.Xaml.LanguageServer.Handler { internal abstract class AbstractFormatDocumentHandlerBase<RequestType, ResponseType> : IRequestHandler<RequestType, ResponseType> { public bool MutatesSolutionState => false; public bool RequiresLSPSolution => true; public abstract TextDocumentIdentifier? GetTextDocumentIdentifier(RequestType request); public abstract Task<ResponseType> HandleRequestAsync(RequestType request, RequestContext context, CancellationToken cancellationToken); protected async Task<LSP.TextEdit[]> GetTextEditsAsync(LSP.FormattingOptions formattingOptions, RequestContext context, CancellationToken cancellationToken, LSP.Range? range = null) { using var _ = ArrayBuilder<LSP.TextEdit>.GetInstance(out var edits); var document = context.Document; var formattingService = document?.Project.LanguageServices.GetService<IXamlFormattingService>(); if (document != null && formattingService != null) { var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); TextSpan? textSpan = null; if (range != null) { textSpan = ProtocolConversions.RangeToTextSpan(range, text); } var options = new XamlFormattingOptions { InsertSpaces = formattingOptions.InsertSpaces, TabSize = formattingOptions.TabSize, OtherOptions = formattingOptions.OtherOptions }; var textChanges = await formattingService.GetFormattingChangesAsync(document, options, textSpan, cancellationToken).ConfigureAwait(false); edits.AddRange(textChanges.Select(change => ProtocolConversions.TextChangeToTextEdit(change, text))); } return edits.ToArray(); } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Features/CSharp/Portable/Completion/KeywordRecommenders/DecimalKeywordRecommender.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 Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Utilities; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders { internal class DecimalKeywordRecommender : AbstractSpecialTypePreselectingKeywordRecommender { public DecimalKeywordRecommender() : base(SyntaxKind.DecimalKeyword) { } protected override bool IsValidContextWorker(int position, CSharpSyntaxContext context, CancellationToken cancellationToken) { var syntaxTree = context.SyntaxTree; return context.IsAnyExpressionContext || context.IsDefiniteCastTypeContext || context.IsStatementContext || context.IsGlobalStatementContext || context.IsObjectCreationTypeContext || (context.IsGenericTypeArgumentContext && !context.TargetToken.Parent.HasAncestor<XmlCrefAttributeSyntax>()) || context.IsFunctionPointerTypeArgumentContext || context.IsIsOrAsTypeContext || context.IsLocalVariableDeclarationContext || context.IsFixedVariableDeclarationContext || context.IsParameterTypeContext || context.IsPossibleLambdaOrAnonymousMethodParameterTypeContext || context.IsLocalFunctionDeclarationContext || context.IsImplicitOrExplicitOperatorTypeContext || context.IsPrimaryFunctionExpressionContext || context.IsCrefContext || syntaxTree.IsAfterKeyword(position, SyntaxKind.ConstKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.RefKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.ReadOnlyKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) || context.IsDelegateReturnTypeContext || syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || context.IsPossibleTupleContext || context.IsMemberDeclarationContext( validModifiers: SyntaxKindSet.AllMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken); } protected override SpecialType SpecialType => SpecialType.System_Decimal; } }
// Licensed to the .NET Foundation under one or more 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 Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Utilities; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders { internal class DecimalKeywordRecommender : AbstractSpecialTypePreselectingKeywordRecommender { public DecimalKeywordRecommender() : base(SyntaxKind.DecimalKeyword) { } protected override bool IsValidContextWorker(int position, CSharpSyntaxContext context, CancellationToken cancellationToken) { var syntaxTree = context.SyntaxTree; return context.IsAnyExpressionContext || context.IsDefiniteCastTypeContext || context.IsStatementContext || context.IsGlobalStatementContext || context.IsObjectCreationTypeContext || (context.IsGenericTypeArgumentContext && !context.TargetToken.Parent.HasAncestor<XmlCrefAttributeSyntax>()) || context.IsFunctionPointerTypeArgumentContext || context.IsIsOrAsTypeContext || context.IsLocalVariableDeclarationContext || context.IsFixedVariableDeclarationContext || context.IsParameterTypeContext || context.IsPossibleLambdaOrAnonymousMethodParameterTypeContext || context.IsLocalFunctionDeclarationContext || context.IsImplicitOrExplicitOperatorTypeContext || context.IsPrimaryFunctionExpressionContext || context.IsCrefContext || syntaxTree.IsAfterKeyword(position, SyntaxKind.ConstKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.RefKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.ReadOnlyKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) || context.IsDelegateReturnTypeContext || syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || context.IsPossibleTupleContext || context.IsMemberDeclarationContext( validModifiers: SyntaxKindSet.AllMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken); } protected override SpecialType SpecialType => SpecialType.System_Decimal; } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Features/CSharp/Portable/Debugging/BreakpointResolver.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Debugging; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Debugging { internal class BreakpointResolver : AbstractBreakpointResolver { public BreakpointResolver(Solution solution, string text) : base(solution, text, LanguageNames.CSharp, EqualityComparer<string>.Default) { } protected override IEnumerable<ISymbol> GetMembers(INamedTypeSymbol type, string name) { var members = type.GetMembers() .Where(m => m.Name == name || m.ExplicitInterfaceImplementations() .Where(i => i.Name == name) .Any()); return (type.Name == name) ? members.Concat(type.Constructors) : members; } protected override bool HasMethodBody(IMethodSymbol method, CancellationToken cancellationToken) { var location = method.Locations.First(loc => loc.IsInSource); var tree = location.SourceTree; var token = tree.GetRoot(cancellationToken).FindToken(location.SourceSpan.Start); return token.GetAncestor<MemberDeclarationSyntax>().GetBody() != null; } protected override void ParseText( out IList<NameAndArity> nameParts, out int? parameterCount) { var text = Text; Debug.Assert(text != null); var name = SyntaxFactory.ParseName(text, consumeFullText: false); var lengthOfParsedText = name.FullSpan.End; var parameterList = SyntaxFactory.ParseParameterList(text, lengthOfParsedText, consumeFullText: false); var foundIncompleteParameterList = false; parameterCount = null; if (!parameterList.IsMissing) { if (parameterList.OpenParenToken.IsMissing || parameterList.CloseParenToken.IsMissing) { foundIncompleteParameterList = true; } else { lengthOfParsedText += parameterList.FullSpan.End; parameterCount = parameterList.Parameters.Count; } } // If there is remaining text to parse, attempt to eat a trailing semicolon. if (lengthOfParsedText < text.Length) { var token = SyntaxFactory.ParseToken(text, lengthOfParsedText); if (token.IsKind(SyntaxKind.SemicolonToken)) { lengthOfParsedText += token.FullSpan.End; } } // It's not obvious, but this method can handle the case where name "IsMissing" (no suitable name was be parsed). var parts = name.GetNameParts(); // If we could not parse a valid parameter list or there was additional trailing text that could not be // interpreted, don't return any names or parameters. // Also, "Break at Function" doesn't seem to support alias qualified names with the old language service, // and aliases don't seem meaningful for the purposes of resolving symbols from source. Since we don't // have precedent or a clear user scenario, we won't resolve any alias qualified names (alias qualified // parameters are accepted, but we still only validate parameter count, similar to the old implementation). if (!foundIncompleteParameterList && (lengthOfParsedText == text.Length) && !parts.Any(p => p.IsKind(SyntaxKind.AliasQualifiedName))) { nameParts = parts.Cast<SimpleNameSyntax>().Select(p => new NameAndArity(p.Identifier.ValueText, p.Arity)).ToList(); } else { nameParts = SpecializedCollections.EmptyList<NameAndArity>(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Debugging; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Debugging { internal class BreakpointResolver : AbstractBreakpointResolver { public BreakpointResolver(Solution solution, string text) : base(solution, text, LanguageNames.CSharp, EqualityComparer<string>.Default) { } protected override IEnumerable<ISymbol> GetMembers(INamedTypeSymbol type, string name) { var members = type.GetMembers() .Where(m => m.Name == name || m.ExplicitInterfaceImplementations() .Where(i => i.Name == name) .Any()); return (type.Name == name) ? members.Concat(type.Constructors) : members; } protected override bool HasMethodBody(IMethodSymbol method, CancellationToken cancellationToken) { var location = method.Locations.First(loc => loc.IsInSource); var tree = location.SourceTree; var token = tree.GetRoot(cancellationToken).FindToken(location.SourceSpan.Start); return token.GetAncestor<MemberDeclarationSyntax>().GetBody() != null; } protected override void ParseText( out IList<NameAndArity> nameParts, out int? parameterCount) { var text = Text; Debug.Assert(text != null); var name = SyntaxFactory.ParseName(text, consumeFullText: false); var lengthOfParsedText = name.FullSpan.End; var parameterList = SyntaxFactory.ParseParameterList(text, lengthOfParsedText, consumeFullText: false); var foundIncompleteParameterList = false; parameterCount = null; if (!parameterList.IsMissing) { if (parameterList.OpenParenToken.IsMissing || parameterList.CloseParenToken.IsMissing) { foundIncompleteParameterList = true; } else { lengthOfParsedText += parameterList.FullSpan.End; parameterCount = parameterList.Parameters.Count; } } // If there is remaining text to parse, attempt to eat a trailing semicolon. if (lengthOfParsedText < text.Length) { var token = SyntaxFactory.ParseToken(text, lengthOfParsedText); if (token.IsKind(SyntaxKind.SemicolonToken)) { lengthOfParsedText += token.FullSpan.End; } } // It's not obvious, but this method can handle the case where name "IsMissing" (no suitable name was be parsed). var parts = name.GetNameParts(); // If we could not parse a valid parameter list or there was additional trailing text that could not be // interpreted, don't return any names or parameters. // Also, "Break at Function" doesn't seem to support alias qualified names with the old language service, // and aliases don't seem meaningful for the purposes of resolving symbols from source. Since we don't // have precedent or a clear user scenario, we won't resolve any alias qualified names (alias qualified // parameters are accepted, but we still only validate parameter count, similar to the old implementation). if (!foundIncompleteParameterList && (lengthOfParsedText == text.Length) && !parts.Any(p => p.IsKind(SyntaxKind.AliasQualifiedName))) { nameParts = parts.Cast<SimpleNameSyntax>().Select(p => new NameAndArity(p.Identifier.ValueText, p.Arity)).ToList(); } else { nameParts = SpecializedCollections.EmptyList<NameAndArity>(); } } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Compilers/Test/Resources/Core/SymbolsTests/Fields/CSFields.dll
MZ@ !L!This program cannot be run in DOS mode. $PELqL! N# @@ @"W@`  H.textT  `.rsrc@@@.reloc ` @B0#Hd  *( *( *BSJB v4.0.30319l#~|#Strings4#US<#GUIDLD#BlobW %3 4-[;w;; f iP mS q[ qq!q q. .$$<Module>CSFields.dllCSFieldsFFFmscorlibSystemObjectSystem.Runtime.CompilerServicesIsVolatileF6FffFfF.ctorCompilationRelaxationsAttributeRuntimeCompatibilityAttribute Y:NKH3 z\V4   TWrapNonExceptionThrows#># 0#_CorDllMainmscoree.dll% @0HX@LL4VS_VERSION_INFO?DVarFileInfo$TranslationStringFileInfo000004b0,FileDescription 0FileVersion0.0.0.0< InternalNameCSFields.dll(LegalCopyright D OriginalFilenameCSFields.dll4ProductVersion0.0.0.08Assembly Version0.0.0.0 P3
MZ@ !L!This program cannot be run in DOS mode. $PELqL! N# @@ @"W@`  H.textT  `.rsrc@@@.reloc ` @B0#Hd  *( *( *BSJB v4.0.30319l#~|#Strings4#US<#GUIDLD#BlobW %3 4-[;w;; f iP mS q[ qq!q q. .$$<Module>CSFields.dllCSFieldsFFFmscorlibSystemObjectSystem.Runtime.CompilerServicesIsVolatileF6FffFfF.ctorCompilationRelaxationsAttributeRuntimeCompatibilityAttribute Y:NKH3 z\V4   TWrapNonExceptionThrows#># 0#_CorDllMainmscoree.dll% @0HX@LL4VS_VERSION_INFO?DVarFileInfo$TranslationStringFileInfo000004b0,FileDescription 0FileVersion0.0.0.0< InternalNameCSFields.dll(LegalCopyright D OriginalFilenameCSFields.dll4ProductVersion0.0.0.08Assembly Version0.0.0.0 P3
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Compilers/CSharp/Portable/Utilities/ValueSetFactory.NuintValueSetFactory.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; namespace Microsoft.CodeAnalysis.CSharp { using static BinaryOperatorKind; internal static partial class ValueSetFactory { private sealed class NuintValueSetFactory : IValueSetFactory<uint>, IValueSetFactory { public static readonly NuintValueSetFactory Instance = new NuintValueSetFactory(); private NuintValueSetFactory() { } IValueSet IValueSetFactory.AllValues => NuintValueSet.AllValues; IValueSet IValueSetFactory.NoValues => NuintValueSet.NoValues; public IValueSet<uint> Related(BinaryOperatorKind relation, uint value) { return new NuintValueSet( values: NumericValueSetFactory<uint, UIntTC>.Instance.Related(relation, value), hasLarge: relation switch { GreaterThan => true, GreaterThanOrEqual => true, _ => false } ); } IValueSet IValueSetFactory.Random(int expectedSize, Random random) { return new NuintValueSet( values: (IValueSet<uint>)NumericValueSetFactory<uint, UIntTC>.Instance.Random(expectedSize, random), hasLarge: random.NextDouble() < 0.25 ); } ConstantValue IValueSetFactory.RandomValue(Random random) => ConstantValue.CreateNativeUInt(default(UIntTC).Random(random)); IValueSet IValueSetFactory.Related(BinaryOperatorKind relation, ConstantValue value) { return value.IsBad ? NuintValueSet.AllValues : Related(relation, default(UIntTC).FromConstantValue(value)); } bool IValueSetFactory.Related(BinaryOperatorKind relation, ConstantValue left, ConstantValue right) { var tc = default(UIntTC); return tc.Related(relation, tc.FromConstantValue(left), tc.FromConstantValue(right)); } } } }
// Licensed to the .NET Foundation under one or more 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; namespace Microsoft.CodeAnalysis.CSharp { using static BinaryOperatorKind; internal static partial class ValueSetFactory { private sealed class NuintValueSetFactory : IValueSetFactory<uint>, IValueSetFactory { public static readonly NuintValueSetFactory Instance = new NuintValueSetFactory(); private NuintValueSetFactory() { } IValueSet IValueSetFactory.AllValues => NuintValueSet.AllValues; IValueSet IValueSetFactory.NoValues => NuintValueSet.NoValues; public IValueSet<uint> Related(BinaryOperatorKind relation, uint value) { return new NuintValueSet( values: NumericValueSetFactory<uint, UIntTC>.Instance.Related(relation, value), hasLarge: relation switch { GreaterThan => true, GreaterThanOrEqual => true, _ => false } ); } IValueSet IValueSetFactory.Random(int expectedSize, Random random) { return new NuintValueSet( values: (IValueSet<uint>)NumericValueSetFactory<uint, UIntTC>.Instance.Random(expectedSize, random), hasLarge: random.NextDouble() < 0.25 ); } ConstantValue IValueSetFactory.RandomValue(Random random) => ConstantValue.CreateNativeUInt(default(UIntTC).Random(random)); IValueSet IValueSetFactory.Related(BinaryOperatorKind relation, ConstantValue value) { return value.IsBad ? NuintValueSet.AllValues : Related(relation, default(UIntTC).FromConstantValue(value)); } bool IValueSetFactory.Related(BinaryOperatorKind relation, ConstantValue left, ConstantValue right) { var tc = default(UIntTC); return tc.Related(relation, tc.FromConstantValue(left), tc.FromConstantValue(right)); } } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/EditorFeatures/TestUtilities/Diagnostics/GenerateType/TestProjectManagementService.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.ProjectManagement; namespace Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics.GenerateType { [ExportWorkspaceService(typeof(IProjectManagementService), ServiceLayer.Default), Shared] internal class TestProjectManagementService : IProjectManagementService { private string _defaultNamespace; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public TestProjectManagementService() { } public IList<string> GetFolders(ProjectId projectId, Workspace workspace) => null; public string GetDefaultNamespace(Project project, Workspace workspace) => _defaultNamespace; public void SetDefaultNamespace(string defaultNamespace) => _defaultNamespace = defaultNamespace; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.ProjectManagement; namespace Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics.GenerateType { [ExportWorkspaceService(typeof(IProjectManagementService), ServiceLayer.Default), Shared] internal class TestProjectManagementService : IProjectManagementService { private string _defaultNamespace; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public TestProjectManagementService() { } public IList<string> GetFolders(ProjectId projectId, Workspace workspace) => null; public string GetDefaultNamespace(Project project, Workspace workspace) => _defaultNamespace; public void SetDefaultNamespace(string defaultNamespace) => _defaultNamespace = defaultNamespace; } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Features/Core/Portable/IncrementalCaches/SymbolTreeInfoCacheService.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.Concurrent; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.FindSymbols; using Microsoft.CodeAnalysis.FindSymbols.SymbolTree; namespace Microsoft.CodeAnalysis.IncrementalCaches { internal partial class SymbolTreeInfoIncrementalAnalyzerProvider { private class SymbolTreeInfoCacheService : ISymbolTreeInfoCacheService { // Shared with SymbolTreeInfoIncrementalAnalyzer. They populate these values, we read from them. private readonly ConcurrentDictionary<ProjectId, SymbolTreeInfo> _projectIdToInfo; private readonly ConcurrentDictionary<MetadataId, MetadataInfo> _metadataIdToInfo; public SymbolTreeInfoCacheService( ConcurrentDictionary<ProjectId, SymbolTreeInfo> projectIdToInfo, ConcurrentDictionary<MetadataId, MetadataInfo> metadataIdToInfo) { _projectIdToInfo = projectIdToInfo; _metadataIdToInfo = metadataIdToInfo; } public async ValueTask<SymbolTreeInfo> TryGetMetadataSymbolTreeInfoAsync( Solution solution, PortableExecutableReference reference, CancellationToken cancellationToken) { var metadataId = SymbolTreeInfo.GetMetadataIdNoThrow(reference); if (metadataId == null) return null; var checksum = SymbolTreeInfo.GetMetadataChecksum(solution, reference, cancellationToken); // See if the last value produced matches what the caller is asking for. If so, return that. if (_metadataIdToInfo.TryGetValue(metadataId, out var metadataInfo) && metadataInfo.SymbolTreeInfo.Checksum == checksum) { return metadataInfo.SymbolTreeInfo; } // If we didn't have it in our cache, see if we can load it from disk. // Note: pass 'loadOnly' so we only attempt to load from disk, not to actually // try to create the metadata. var info = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( solution, reference, checksum, loadOnly: true, cancellationToken).ConfigureAwait(false); return info; } public async Task<SymbolTreeInfo> TryGetSourceSymbolTreeInfoAsync( Project project, CancellationToken cancellationToken) { // See if the last value produced matches what the caller is asking for. If so, return that. var checksum = await SymbolTreeInfo.GetSourceSymbolsChecksumAsync(project, cancellationToken).ConfigureAwait(false); if (_projectIdToInfo.TryGetValue(project.Id, out var projectInfo) && projectInfo.Checksum == checksum) { return projectInfo; } // If we didn't have it in our cache, see if we can load it from disk. // Note: pass 'loadOnly' so we only attempt to load from disk, not to actually // try to create the index. var info = await SymbolTreeInfo.GetInfoForSourceAssemblyAsync( project, checksum, loadOnly: true, cancellationToken).ConfigureAwait(false); return info; } } } }
// Licensed to the .NET Foundation under one or more 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.Concurrent; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.FindSymbols; using Microsoft.CodeAnalysis.FindSymbols.SymbolTree; namespace Microsoft.CodeAnalysis.IncrementalCaches { internal partial class SymbolTreeInfoIncrementalAnalyzerProvider { private class SymbolTreeInfoCacheService : ISymbolTreeInfoCacheService { // Shared with SymbolTreeInfoIncrementalAnalyzer. They populate these values, we read from them. private readonly ConcurrentDictionary<ProjectId, SymbolTreeInfo> _projectIdToInfo; private readonly ConcurrentDictionary<MetadataId, MetadataInfo> _metadataIdToInfo; public SymbolTreeInfoCacheService( ConcurrentDictionary<ProjectId, SymbolTreeInfo> projectIdToInfo, ConcurrentDictionary<MetadataId, MetadataInfo> metadataIdToInfo) { _projectIdToInfo = projectIdToInfo; _metadataIdToInfo = metadataIdToInfo; } public async ValueTask<SymbolTreeInfo> TryGetMetadataSymbolTreeInfoAsync( Solution solution, PortableExecutableReference reference, CancellationToken cancellationToken) { var metadataId = SymbolTreeInfo.GetMetadataIdNoThrow(reference); if (metadataId == null) return null; var checksum = SymbolTreeInfo.GetMetadataChecksum(solution, reference, cancellationToken); // See if the last value produced matches what the caller is asking for. If so, return that. if (_metadataIdToInfo.TryGetValue(metadataId, out var metadataInfo) && metadataInfo.SymbolTreeInfo.Checksum == checksum) { return metadataInfo.SymbolTreeInfo; } // If we didn't have it in our cache, see if we can load it from disk. // Note: pass 'loadOnly' so we only attempt to load from disk, not to actually // try to create the metadata. var info = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( solution, reference, checksum, loadOnly: true, cancellationToken).ConfigureAwait(false); return info; } public async Task<SymbolTreeInfo> TryGetSourceSymbolTreeInfoAsync( Project project, CancellationToken cancellationToken) { // See if the last value produced matches what the caller is asking for. If so, return that. var checksum = await SymbolTreeInfo.GetSourceSymbolsChecksumAsync(project, cancellationToken).ConfigureAwait(false); if (_projectIdToInfo.TryGetValue(project.Id, out var projectInfo) && projectInfo.Checksum == checksum) { return projectInfo; } // If we didn't have it in our cache, see if we can load it from disk. // Note: pass 'loadOnly' so we only attempt to load from disk, not to actually // try to create the index. var info = await SymbolTreeInfo.GetInfoForSourceAssemblyAsync( project, checksum, loadOnly: true, cancellationToken).ConfigureAwait(false); return info; } } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/VisualStudio/Core/Test/SolutionExplorer/DiagnosticDescriptorComparerTests.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 Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.VisualStudio.LanguageServices.Implementation.SolutionExplorer Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.SolutionExplorer Public Class DiagnosticDescriptorComparerTests <Fact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Sub Id() Const description As String = "A description" Const messageFormat As String = "A message format" Const category As String = "Test" Dim x = New DiagnosticDescriptor( "TST0000", description, messageFormat, category, DiagnosticSeverity.Warning, True) Dim y = New DiagnosticDescriptor( "TST0001", description, messageFormat, category, DiagnosticSeverity.Warning, True) Dim comparer = New LegacyDiagnosticItemSource.DiagnosticDescriptorComparer() Dim result = comparer.Compare(x, y) Assert.True(result < 0) End Sub <Fact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Sub Description() Const id As String = "TST0001" Const messageFormat As String = "A message format" Const category As String = "Test" Dim x = New DiagnosticDescriptor( id, "alpha", messageFormat, category, DiagnosticSeverity.Warning, True) Dim y = New DiagnosticDescriptor( id, "beta", messageFormat, category, DiagnosticSeverity.Warning, True) Dim comparer = New LegacyDiagnosticItemSource.DiagnosticDescriptorComparer() Dim result = comparer.Compare(x, y) Assert.True(result < 0) End Sub <Fact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Sub MessageFormat() Const id As String = "TST0001" Const description As String = "A description" Const category As String = "Test" Dim x = New DiagnosticDescriptor( id, description, "alpha", category, DiagnosticSeverity.Warning, True) Dim y = New DiagnosticDescriptor( id, description, "beta", category, DiagnosticSeverity.Warning, True) Dim comparer = New LegacyDiagnosticItemSource.DiagnosticDescriptorComparer() Dim result = comparer.Compare(x, y) Assert.True(result < 0) 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 Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.VisualStudio.LanguageServices.Implementation.SolutionExplorer Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.SolutionExplorer Public Class DiagnosticDescriptorComparerTests <Fact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Sub Id() Const description As String = "A description" Const messageFormat As String = "A message format" Const category As String = "Test" Dim x = New DiagnosticDescriptor( "TST0000", description, messageFormat, category, DiagnosticSeverity.Warning, True) Dim y = New DiagnosticDescriptor( "TST0001", description, messageFormat, category, DiagnosticSeverity.Warning, True) Dim comparer = New LegacyDiagnosticItemSource.DiagnosticDescriptorComparer() Dim result = comparer.Compare(x, y) Assert.True(result < 0) End Sub <Fact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Sub Description() Const id As String = "TST0001" Const messageFormat As String = "A message format" Const category As String = "Test" Dim x = New DiagnosticDescriptor( id, "alpha", messageFormat, category, DiagnosticSeverity.Warning, True) Dim y = New DiagnosticDescriptor( id, "beta", messageFormat, category, DiagnosticSeverity.Warning, True) Dim comparer = New LegacyDiagnosticItemSource.DiagnosticDescriptorComparer() Dim result = comparer.Compare(x, y) Assert.True(result < 0) End Sub <Fact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Sub MessageFormat() Const id As String = "TST0001" Const description As String = "A description" Const category As String = "Test" Dim x = New DiagnosticDescriptor( id, description, "alpha", category, DiagnosticSeverity.Warning, True) Dim y = New DiagnosticDescriptor( id, description, "beta", category, DiagnosticSeverity.Warning, True) Dim comparer = New LegacyDiagnosticItemSource.DiagnosticDescriptorComparer() Dim result = comparer.Compare(x, y) Assert.True(result < 0) End Sub End Class End Namespace
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Features/VisualBasic/Portable/Completion/KeywordRecommenders/PreprocessorDirectives/PreprocessorHelpers.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Runtime.CompilerServices Imports System.Threading Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Completion.KeywordRecommenders.PreprocessorDirectives Friend Module PreprocessorHelpers <Extension()> Public Function GetInnermostIfPreprocessorKind(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As SyntaxKind? Dim kindStack = New IfDirectiveVisitor(syntaxTree, position, cancellationToken).GetStack() If kindStack.Count = 0 Then Return Nothing Else Return kindStack.Peek() End If End Function Private Class IfDirectiveVisitor Inherits VisualBasicSyntaxVisitor Private ReadOnly _kindStack As New Stack(Of SyntaxKind) Private ReadOnly _maxPosition As Integer Public Sub New(syntaxTree As SyntaxTree, maxPosition As Integer, cancellationToken As CancellationToken) _maxPosition = maxPosition Visit(syntaxTree.GetRoot(cancellationToken)) End Sub Public Overrides Sub DefaultVisit(node As SyntaxNode) If Not node.ContainsDirectives Then Return End If For Each leadingTrivia In node.GetLeadingTrivia() If leadingTrivia.HasStructure Then Visit(leadingTrivia.GetStructure()) End If Next For Each child In node.ChildNodesAndTokens() If child.FullSpan.Start > _maxPosition Then Exit For End If If child.IsNode Then Visit(child.AsNode()) End If Next For Each followingTrivia In node.GetTrailingTrivia() If followingTrivia.HasStructure Then Visit(followingTrivia.GetStructure()) End If Next End Sub Public Overrides Sub VisitIfDirectiveTrivia(node As IfDirectiveTriviaSyntax) If node.Kind = SyntaxKind.IfDirectiveTrivia Then _kindStack.Push(node.Kind) ElseIf node.Kind = SyntaxKind.ElseIfDirectiveTrivia Then ' If we're closing our previous context, then pop that one If _kindStack.Count > 0 Then _kindStack.Pop() End If _kindStack.Push(node.Kind) End If End Sub Public Overrides Sub VisitElseDirectiveTrivia(node As ElseDirectiveTriviaSyntax) If _kindStack.Count > 0 Then _kindStack.Pop() End If _kindStack.Push(node.Kind) End Sub Public Overrides Sub VisitEndIfDirectiveTrivia(node As EndIfDirectiveTriviaSyntax) If _kindStack.Count > 0 Then _kindStack.Pop() End If End Sub Public Function GetStack() As Stack(Of SyntaxKind) Return _kindStack End Function End Class End Module End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Runtime.CompilerServices Imports System.Threading Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Completion.KeywordRecommenders.PreprocessorDirectives Friend Module PreprocessorHelpers <Extension()> Public Function GetInnermostIfPreprocessorKind(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As SyntaxKind? Dim kindStack = New IfDirectiveVisitor(syntaxTree, position, cancellationToken).GetStack() If kindStack.Count = 0 Then Return Nothing Else Return kindStack.Peek() End If End Function Private Class IfDirectiveVisitor Inherits VisualBasicSyntaxVisitor Private ReadOnly _kindStack As New Stack(Of SyntaxKind) Private ReadOnly _maxPosition As Integer Public Sub New(syntaxTree As SyntaxTree, maxPosition As Integer, cancellationToken As CancellationToken) _maxPosition = maxPosition Visit(syntaxTree.GetRoot(cancellationToken)) End Sub Public Overrides Sub DefaultVisit(node As SyntaxNode) If Not node.ContainsDirectives Then Return End If For Each leadingTrivia In node.GetLeadingTrivia() If leadingTrivia.HasStructure Then Visit(leadingTrivia.GetStructure()) End If Next For Each child In node.ChildNodesAndTokens() If child.FullSpan.Start > _maxPosition Then Exit For End If If child.IsNode Then Visit(child.AsNode()) End If Next For Each followingTrivia In node.GetTrailingTrivia() If followingTrivia.HasStructure Then Visit(followingTrivia.GetStructure()) End If Next End Sub Public Overrides Sub VisitIfDirectiveTrivia(node As IfDirectiveTriviaSyntax) If node.Kind = SyntaxKind.IfDirectiveTrivia Then _kindStack.Push(node.Kind) ElseIf node.Kind = SyntaxKind.ElseIfDirectiveTrivia Then ' If we're closing our previous context, then pop that one If _kindStack.Count > 0 Then _kindStack.Pop() End If _kindStack.Push(node.Kind) End If End Sub Public Overrides Sub VisitElseDirectiveTrivia(node As ElseDirectiveTriviaSyntax) If _kindStack.Count > 0 Then _kindStack.Pop() End If _kindStack.Push(node.Kind) End Sub Public Overrides Sub VisitEndIfDirectiveTrivia(node As EndIfDirectiveTriviaSyntax) If _kindStack.Count > 0 Then _kindStack.Pop() End If End Sub Public Function GetStack() As Stack(Of SyntaxKind) Return _kindStack End Function End Class End Module End Namespace
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Compilers/Core/Portable/PEWriter/ReferenceIndexerBase.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Diagnostics; using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Emit; namespace Microsoft.Cci { internal abstract class ReferenceIndexerBase : MetadataVisitor { private readonly HashSet<IReferenceOrISignature> _alreadySeen = new(); private readonly HashSet<IReferenceOrISignature> _alreadyHasToken = new(); protected bool typeReferenceNeedsToken; internal ReferenceIndexerBase(EmitContext context) : base(context) { } public override void Visit(IAssemblyReference assemblyReference) { if (assemblyReference != Context.Module.GetContainingAssembly(Context)) { RecordAssemblyReference(assemblyReference); } } protected abstract void RecordAssemblyReference(IAssemblyReference assemblyReference); public override void Visit(ICustomModifier customModifier) { this.typeReferenceNeedsToken = true; this.Visit(customModifier.GetModifier(Context)); } public override void Visit(IEventDefinition eventDefinition) { this.typeReferenceNeedsToken = true; this.Visit(eventDefinition.GetType(Context)); Debug.Assert(!this.typeReferenceNeedsToken); } public override void Visit(IFieldReference fieldReference) { if (!_alreadySeen.Add(new IReferenceOrISignature(fieldReference))) { return; } IUnitReference definingUnit = MetadataWriter.GetDefiningUnitReference(fieldReference.GetContainingType(Context), Context); if (definingUnit != null && ReferenceEquals(definingUnit, Context.Module)) { return; } this.Visit(fieldReference.RefCustomModifiers); this.Visit((ITypeMemberReference)fieldReference); this.Visit(fieldReference.GetType(Context)); ReserveFieldToken(fieldReference); } protected abstract void ReserveFieldToken(IFieldReference fieldReference); public override void Visit(IFileReference fileReference) { RecordFileReference(fileReference); } protected abstract void RecordFileReference(IFileReference fileReference); public override void Visit(IGenericMethodInstanceReference genericMethodInstanceReference) { this.Visit(genericMethodInstanceReference.GetGenericArguments(Context)); this.Visit(genericMethodInstanceReference.GetGenericMethod(Context)); } public override void Visit(IGenericParameter genericParameter) { this.Visit(genericParameter.GetAttributes(Context)); this.VisitTypeReferencesThatNeedTokens(genericParameter.GetConstraints(Context)); } public override void Visit(IGenericTypeInstanceReference genericTypeInstanceReference) { // ^ ensures this.path.Count == old(this.path.Count); INestedTypeReference nestedType = genericTypeInstanceReference.AsNestedTypeReference; if (nestedType != null) { ITypeReference containingType = nestedType.GetContainingType(Context); if (containingType.AsGenericTypeInstanceReference != null || containingType.AsSpecializedNestedTypeReference != null) { this.Visit(nestedType.GetContainingType(Context)); } } this.Visit(genericTypeInstanceReference.GetGenericType(Context)); this.Visit(genericTypeInstanceReference.GetGenericArguments(Context)); } public override void Visit(IMarshallingInformation marshallingInformation) { // The type references in the marshalling information do not end up in tables, but are serialized as strings. } public override void Visit(IMethodDefinition method) { base.Visit(method); ProcessMethodBody(method); } protected abstract void ProcessMethodBody(IMethodDefinition method); public override void Visit(IMethodReference methodReference) { IGenericMethodInstanceReference genericMethodInstanceReference = methodReference.AsGenericMethodInstanceReference; if (genericMethodInstanceReference != null) { this.Visit(genericMethodInstanceReference); return; } if (!_alreadySeen.Add(new IReferenceOrISignature(methodReference))) { return; } // If we have a ref to a varargs method then we always generate an entry in the MethodRef table, // even if it is a method in the current module. (Note that we are not *required* to do so if // in fact the number of extra arguments passed is zero; in that case we are permitted to use // an ordinary method def token. We consistently choose to emit a method ref regardless.) IUnitReference definingUnit = MetadataWriter.GetDefiningUnitReference(methodReference.GetContainingType(Context), Context); if (definingUnit != null && ReferenceEquals(definingUnit, Context.Module) && !methodReference.AcceptsExtraArguments) { return; } this.Visit((ITypeMemberReference)methodReference); VisitSignature(methodReference.AsSpecializedMethodReference?.UnspecializedVersion ?? methodReference); if (methodReference.AcceptsExtraArguments) { this.Visit(methodReference.ExtraParameters); } ReserveMethodToken(methodReference); } public void VisitSignature(ISignature signature) { this.Visit(signature.GetType(Context)); this.Visit(signature.GetParameters(Context)); this.Visit(signature.RefCustomModifiers); this.Visit(signature.ReturnValueCustomModifiers); } protected abstract void ReserveMethodToken(IMethodReference methodReference); public abstract override void Visit(CommonPEModuleBuilder module); public override void Visit(IModuleReference moduleReference) { if (moduleReference != Context.Module) { RecordModuleReference(moduleReference); } } protected abstract void RecordModuleReference(IModuleReference moduleReference); public abstract override void Visit(IPlatformInvokeInformation platformInvokeInformation); public override void Visit(INamespaceTypeReference namespaceTypeReference) { if (!this.typeReferenceNeedsToken && namespaceTypeReference.TypeCode != PrimitiveTypeCode.NotPrimitive) { return; } RecordTypeReference(namespaceTypeReference); var unit = namespaceTypeReference.GetUnit(Context); var assemblyReference = unit as IAssemblyReference; if (assemblyReference != null) { this.Visit(assemblyReference); } else { var moduleReference = unit as IModuleReference; if (moduleReference != null) { // If this is a module from a referenced multi-module assembly, // the assembly should be used as the resolution scope. assemblyReference = moduleReference.GetContainingAssembly(Context); if (assemblyReference != null && assemblyReference != Context.Module.GetContainingAssembly(Context)) { this.Visit(assemblyReference); } else { this.Visit(moduleReference); } } } } protected abstract void RecordTypeReference(ITypeReference typeReference); public override void Visit(INestedTypeReference nestedTypeReference) { if (!this.typeReferenceNeedsToken && nestedTypeReference.AsSpecializedNestedTypeReference != null) { return; } RecordTypeReference(nestedTypeReference); } public override void Visit(IPropertyDefinition propertyDefinition) { this.Visit(propertyDefinition.RefCustomModifiers); this.Visit(propertyDefinition.ReturnValueCustomModifiers); this.Visit(propertyDefinition.GetType(Context)); this.Visit(propertyDefinition.Parameters); } public override void Visit(ManagedResource resourceReference) { this.Visit(resourceReference.Attributes); IFileReference file = resourceReference.ExternalFile; if (file != null) { this.Visit(file); } } public override void Visit(SecurityAttribute securityAttribute) { this.Visit(securityAttribute.Attribute); } public void VisitTypeDefinitionNoMembers(ITypeDefinition typeDefinition) { this.Visit(typeDefinition.GetAttributes(Context)); var baseType = typeDefinition.GetBaseClass(Context); if (baseType != null) { this.typeReferenceNeedsToken = true; this.Visit(baseType); Debug.Assert(!this.typeReferenceNeedsToken); } this.Visit(typeDefinition.GetExplicitImplementationOverrides(Context)); if (typeDefinition.HasDeclarativeSecurity) { this.Visit(typeDefinition.SecurityAttributes); } this.VisitTypeReferencesThatNeedTokens(typeDefinition.Interfaces(Context)); if (typeDefinition.IsGeneric) { this.Visit(typeDefinition.GenericParameters); } } public override void Visit(ITypeDefinition typeDefinition) { VisitTypeDefinitionNoMembers(typeDefinition); this.Visit(typeDefinition.GetEvents(Context)); this.Visit(typeDefinition.GetFields(Context)); this.Visit(typeDefinition.GetMethods(Context)); this.VisitNestedTypes(typeDefinition.GetNestedTypes(Context)); this.Visit(typeDefinition.GetProperties(Context)); } public void VisitTypeReferencesThatNeedTokens(IEnumerable<TypeReferenceWithAttributes> refsWithAttributes) { foreach (var refWithAttributes in refsWithAttributes) { this.Visit(refWithAttributes.Attributes); VisitTypeReferencesThatNeedTokens(refWithAttributes.TypeRef); } } private void VisitTypeReferencesThatNeedTokens(ITypeReference typeReference) { this.typeReferenceNeedsToken = true; this.Visit(typeReference); Debug.Assert(!this.typeReferenceNeedsToken); } public override void Visit(ITypeMemberReference typeMemberReference) { RecordTypeMemberReference(typeMemberReference); //This code was in CCI, but appears wrong to me. There is no need to visit attributes of members that are //being referenced, only those being defined. This code causes additional spurious typerefs and memberrefs to be //emitted. If the attributes can't be resolved, it causes a NullReference. // //if ((typeMemberReference.AsDefinition(Context) == null)) //{ // this.Visit(typeMemberReference.GetAttributes(Context)); //} this.typeReferenceNeedsToken = true; this.Visit(typeMemberReference.GetContainingType(Context)); Debug.Assert(!this.typeReferenceNeedsToken); } protected abstract void RecordTypeMemberReference(ITypeMemberReference typeMemberReference); // Array and pointer types might cause deep recursions; visit them iteratively // rather than recursively. public override void Visit(IArrayTypeReference arrayTypeReference) { // We don't visit the current array type; it has already been visited. // We go straight to the element type and visit it. ITypeReference current = arrayTypeReference.GetElementType(Context); while (true) { bool mustVisitChildren = VisitTypeReference(current); if (!mustVisitChildren) { return; } else if (current is IArrayTypeReference) { // The element type is itself an array type, and we must visit *its* element type. // Iterate rather than recursing. current = ((IArrayTypeReference)current).GetElementType(Context); continue; } else { // The element type is not an array type and we must visit its children. // Dispatch the type in order to visit its children. DispatchAsReference(current); return; } } } // Array and pointer types might cause deep recursions; visit them iteratively // rather than recursively. public override void Visit(IPointerTypeReference pointerTypeReference) { // We don't visit the current pointer type; it has already been visited. // We go straight to the target type and visit it. ITypeReference current = pointerTypeReference.GetTargetType(Context); while (true) { bool mustVisitChildren = VisitTypeReference(current); if (!mustVisitChildren) { return; } else if (current is IPointerTypeReference) { // The target type is itself a pointer type, and we must visit *its* target type. // Iterate rather than recursing. current = ((IPointerTypeReference)current).GetTargetType(Context); continue; } else { // The target type is not a pointer type and we must visit its children. // Dispatch the type in order to visit its children. DispatchAsReference(current); return; } } } public override void Visit(ITypeReference typeReference) { if (VisitTypeReference(typeReference)) { DispatchAsReference(typeReference); } } // Returns true if we need to look at the children, false otherwise. private bool VisitTypeReference(ITypeReference typeReference) { if (!_alreadySeen.Add(new IReferenceOrISignature(typeReference))) { if (!this.typeReferenceNeedsToken) { return false; } this.typeReferenceNeedsToken = false; if (!_alreadyHasToken.Add(new IReferenceOrISignature(typeReference))) { return false; } RecordTypeReference(typeReference); return false; } INestedTypeReference/*?*/ nestedTypeReference = typeReference.AsNestedTypeReference; if (this.typeReferenceNeedsToken || nestedTypeReference != null || (typeReference.TypeCode == PrimitiveTypeCode.NotPrimitive && typeReference.AsNamespaceTypeReference != null)) { ISpecializedNestedTypeReference/*?*/ specializedNestedTypeReference = nestedTypeReference?.AsSpecializedNestedTypeReference; if (specializedNestedTypeReference != null) { INestedTypeReference unspecializedNestedTypeReference = specializedNestedTypeReference.GetUnspecializedVersion(Context); if (_alreadyHasToken.Add(new IReferenceOrISignature(unspecializedNestedTypeReference))) { RecordTypeReference(unspecializedNestedTypeReference); } } if (this.typeReferenceNeedsToken && _alreadyHasToken.Add(new IReferenceOrISignature(typeReference))) { RecordTypeReference(typeReference); } if (nestedTypeReference != null) { this.typeReferenceNeedsToken = (typeReference.AsSpecializedNestedTypeReference == null); this.Visit(nestedTypeReference.GetContainingType(Context)); } } //This code was in CCI, but appears wrong to me. There is no need to visit attributes of types that are //being referenced, only those being defined. This code causes additional spurious typerefs and memberrefs to be //emitted. If the attributes can't be resolved, it causes a NullReference. // //if ((typeReference.AsTypeDefinition(Context) == null)) //{ // this.Visit(typeReference.GetAttributes(Context)); //} this.typeReferenceNeedsToken = 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; using System.Collections.Generic; using System.Diagnostics; using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Emit; namespace Microsoft.Cci { internal abstract class ReferenceIndexerBase : MetadataVisitor { private readonly HashSet<IReferenceOrISignature> _alreadySeen = new(); private readonly HashSet<IReferenceOrISignature> _alreadyHasToken = new(); protected bool typeReferenceNeedsToken; internal ReferenceIndexerBase(EmitContext context) : base(context) { } public override void Visit(IAssemblyReference assemblyReference) { if (assemblyReference != Context.Module.GetContainingAssembly(Context)) { RecordAssemblyReference(assemblyReference); } } protected abstract void RecordAssemblyReference(IAssemblyReference assemblyReference); public override void Visit(ICustomModifier customModifier) { this.typeReferenceNeedsToken = true; this.Visit(customModifier.GetModifier(Context)); } public override void Visit(IEventDefinition eventDefinition) { this.typeReferenceNeedsToken = true; this.Visit(eventDefinition.GetType(Context)); Debug.Assert(!this.typeReferenceNeedsToken); } public override void Visit(IFieldReference fieldReference) { if (!_alreadySeen.Add(new IReferenceOrISignature(fieldReference))) { return; } IUnitReference definingUnit = MetadataWriter.GetDefiningUnitReference(fieldReference.GetContainingType(Context), Context); if (definingUnit != null && ReferenceEquals(definingUnit, Context.Module)) { return; } this.Visit(fieldReference.RefCustomModifiers); this.Visit((ITypeMemberReference)fieldReference); this.Visit(fieldReference.GetType(Context)); ReserveFieldToken(fieldReference); } protected abstract void ReserveFieldToken(IFieldReference fieldReference); public override void Visit(IFileReference fileReference) { RecordFileReference(fileReference); } protected abstract void RecordFileReference(IFileReference fileReference); public override void Visit(IGenericMethodInstanceReference genericMethodInstanceReference) { this.Visit(genericMethodInstanceReference.GetGenericArguments(Context)); this.Visit(genericMethodInstanceReference.GetGenericMethod(Context)); } public override void Visit(IGenericParameter genericParameter) { this.Visit(genericParameter.GetAttributes(Context)); this.VisitTypeReferencesThatNeedTokens(genericParameter.GetConstraints(Context)); } public override void Visit(IGenericTypeInstanceReference genericTypeInstanceReference) { // ^ ensures this.path.Count == old(this.path.Count); INestedTypeReference nestedType = genericTypeInstanceReference.AsNestedTypeReference; if (nestedType != null) { ITypeReference containingType = nestedType.GetContainingType(Context); if (containingType.AsGenericTypeInstanceReference != null || containingType.AsSpecializedNestedTypeReference != null) { this.Visit(nestedType.GetContainingType(Context)); } } this.Visit(genericTypeInstanceReference.GetGenericType(Context)); this.Visit(genericTypeInstanceReference.GetGenericArguments(Context)); } public override void Visit(IMarshallingInformation marshallingInformation) { // The type references in the marshalling information do not end up in tables, but are serialized as strings. } public override void Visit(IMethodDefinition method) { base.Visit(method); ProcessMethodBody(method); } protected abstract void ProcessMethodBody(IMethodDefinition method); public override void Visit(IMethodReference methodReference) { IGenericMethodInstanceReference genericMethodInstanceReference = methodReference.AsGenericMethodInstanceReference; if (genericMethodInstanceReference != null) { this.Visit(genericMethodInstanceReference); return; } if (!_alreadySeen.Add(new IReferenceOrISignature(methodReference))) { return; } // If we have a ref to a varargs method then we always generate an entry in the MethodRef table, // even if it is a method in the current module. (Note that we are not *required* to do so if // in fact the number of extra arguments passed is zero; in that case we are permitted to use // an ordinary method def token. We consistently choose to emit a method ref regardless.) IUnitReference definingUnit = MetadataWriter.GetDefiningUnitReference(methodReference.GetContainingType(Context), Context); if (definingUnit != null && ReferenceEquals(definingUnit, Context.Module) && !methodReference.AcceptsExtraArguments) { return; } this.Visit((ITypeMemberReference)methodReference); VisitSignature(methodReference.AsSpecializedMethodReference?.UnspecializedVersion ?? methodReference); if (methodReference.AcceptsExtraArguments) { this.Visit(methodReference.ExtraParameters); } ReserveMethodToken(methodReference); } public void VisitSignature(ISignature signature) { this.Visit(signature.GetType(Context)); this.Visit(signature.GetParameters(Context)); this.Visit(signature.RefCustomModifiers); this.Visit(signature.ReturnValueCustomModifiers); } protected abstract void ReserveMethodToken(IMethodReference methodReference); public abstract override void Visit(CommonPEModuleBuilder module); public override void Visit(IModuleReference moduleReference) { if (moduleReference != Context.Module) { RecordModuleReference(moduleReference); } } protected abstract void RecordModuleReference(IModuleReference moduleReference); public abstract override void Visit(IPlatformInvokeInformation platformInvokeInformation); public override void Visit(INamespaceTypeReference namespaceTypeReference) { if (!this.typeReferenceNeedsToken && namespaceTypeReference.TypeCode != PrimitiveTypeCode.NotPrimitive) { return; } RecordTypeReference(namespaceTypeReference); var unit = namespaceTypeReference.GetUnit(Context); var assemblyReference = unit as IAssemblyReference; if (assemblyReference != null) { this.Visit(assemblyReference); } else { var moduleReference = unit as IModuleReference; if (moduleReference != null) { // If this is a module from a referenced multi-module assembly, // the assembly should be used as the resolution scope. assemblyReference = moduleReference.GetContainingAssembly(Context); if (assemblyReference != null && assemblyReference != Context.Module.GetContainingAssembly(Context)) { this.Visit(assemblyReference); } else { this.Visit(moduleReference); } } } } protected abstract void RecordTypeReference(ITypeReference typeReference); public override void Visit(INestedTypeReference nestedTypeReference) { if (!this.typeReferenceNeedsToken && nestedTypeReference.AsSpecializedNestedTypeReference != null) { return; } RecordTypeReference(nestedTypeReference); } public override void Visit(IPropertyDefinition propertyDefinition) { this.Visit(propertyDefinition.RefCustomModifiers); this.Visit(propertyDefinition.ReturnValueCustomModifiers); this.Visit(propertyDefinition.GetType(Context)); this.Visit(propertyDefinition.Parameters); } public override void Visit(ManagedResource resourceReference) { this.Visit(resourceReference.Attributes); IFileReference file = resourceReference.ExternalFile; if (file != null) { this.Visit(file); } } public override void Visit(SecurityAttribute securityAttribute) { this.Visit(securityAttribute.Attribute); } public void VisitTypeDefinitionNoMembers(ITypeDefinition typeDefinition) { this.Visit(typeDefinition.GetAttributes(Context)); var baseType = typeDefinition.GetBaseClass(Context); if (baseType != null) { this.typeReferenceNeedsToken = true; this.Visit(baseType); Debug.Assert(!this.typeReferenceNeedsToken); } this.Visit(typeDefinition.GetExplicitImplementationOverrides(Context)); if (typeDefinition.HasDeclarativeSecurity) { this.Visit(typeDefinition.SecurityAttributes); } this.VisitTypeReferencesThatNeedTokens(typeDefinition.Interfaces(Context)); if (typeDefinition.IsGeneric) { this.Visit(typeDefinition.GenericParameters); } } public override void Visit(ITypeDefinition typeDefinition) { VisitTypeDefinitionNoMembers(typeDefinition); this.Visit(typeDefinition.GetEvents(Context)); this.Visit(typeDefinition.GetFields(Context)); this.Visit(typeDefinition.GetMethods(Context)); this.VisitNestedTypes(typeDefinition.GetNestedTypes(Context)); this.Visit(typeDefinition.GetProperties(Context)); } public void VisitTypeReferencesThatNeedTokens(IEnumerable<TypeReferenceWithAttributes> refsWithAttributes) { foreach (var refWithAttributes in refsWithAttributes) { this.Visit(refWithAttributes.Attributes); VisitTypeReferencesThatNeedTokens(refWithAttributes.TypeRef); } } private void VisitTypeReferencesThatNeedTokens(ITypeReference typeReference) { this.typeReferenceNeedsToken = true; this.Visit(typeReference); Debug.Assert(!this.typeReferenceNeedsToken); } public override void Visit(ITypeMemberReference typeMemberReference) { RecordTypeMemberReference(typeMemberReference); //This code was in CCI, but appears wrong to me. There is no need to visit attributes of members that are //being referenced, only those being defined. This code causes additional spurious typerefs and memberrefs to be //emitted. If the attributes can't be resolved, it causes a NullReference. // //if ((typeMemberReference.AsDefinition(Context) == null)) //{ // this.Visit(typeMemberReference.GetAttributes(Context)); //} this.typeReferenceNeedsToken = true; this.Visit(typeMemberReference.GetContainingType(Context)); Debug.Assert(!this.typeReferenceNeedsToken); } protected abstract void RecordTypeMemberReference(ITypeMemberReference typeMemberReference); // Array and pointer types might cause deep recursions; visit them iteratively // rather than recursively. public override void Visit(IArrayTypeReference arrayTypeReference) { // We don't visit the current array type; it has already been visited. // We go straight to the element type and visit it. ITypeReference current = arrayTypeReference.GetElementType(Context); while (true) { bool mustVisitChildren = VisitTypeReference(current); if (!mustVisitChildren) { return; } else if (current is IArrayTypeReference) { // The element type is itself an array type, and we must visit *its* element type. // Iterate rather than recursing. current = ((IArrayTypeReference)current).GetElementType(Context); continue; } else { // The element type is not an array type and we must visit its children. // Dispatch the type in order to visit its children. DispatchAsReference(current); return; } } } // Array and pointer types might cause deep recursions; visit them iteratively // rather than recursively. public override void Visit(IPointerTypeReference pointerTypeReference) { // We don't visit the current pointer type; it has already been visited. // We go straight to the target type and visit it. ITypeReference current = pointerTypeReference.GetTargetType(Context); while (true) { bool mustVisitChildren = VisitTypeReference(current); if (!mustVisitChildren) { return; } else if (current is IPointerTypeReference) { // The target type is itself a pointer type, and we must visit *its* target type. // Iterate rather than recursing. current = ((IPointerTypeReference)current).GetTargetType(Context); continue; } else { // The target type is not a pointer type and we must visit its children. // Dispatch the type in order to visit its children. DispatchAsReference(current); return; } } } public override void Visit(ITypeReference typeReference) { if (VisitTypeReference(typeReference)) { DispatchAsReference(typeReference); } } // Returns true if we need to look at the children, false otherwise. private bool VisitTypeReference(ITypeReference typeReference) { if (!_alreadySeen.Add(new IReferenceOrISignature(typeReference))) { if (!this.typeReferenceNeedsToken) { return false; } this.typeReferenceNeedsToken = false; if (!_alreadyHasToken.Add(new IReferenceOrISignature(typeReference))) { return false; } RecordTypeReference(typeReference); return false; } INestedTypeReference/*?*/ nestedTypeReference = typeReference.AsNestedTypeReference; if (this.typeReferenceNeedsToken || nestedTypeReference != null || (typeReference.TypeCode == PrimitiveTypeCode.NotPrimitive && typeReference.AsNamespaceTypeReference != null)) { ISpecializedNestedTypeReference/*?*/ specializedNestedTypeReference = nestedTypeReference?.AsSpecializedNestedTypeReference; if (specializedNestedTypeReference != null) { INestedTypeReference unspecializedNestedTypeReference = specializedNestedTypeReference.GetUnspecializedVersion(Context); if (_alreadyHasToken.Add(new IReferenceOrISignature(unspecializedNestedTypeReference))) { RecordTypeReference(unspecializedNestedTypeReference); } } if (this.typeReferenceNeedsToken && _alreadyHasToken.Add(new IReferenceOrISignature(typeReference))) { RecordTypeReference(typeReference); } if (nestedTypeReference != null) { this.typeReferenceNeedsToken = (typeReference.AsSpecializedNestedTypeReference == null); this.Visit(nestedTypeReference.GetContainingType(Context)); } } //This code was in CCI, but appears wrong to me. There is no need to visit attributes of types that are //being referenced, only those being defined. This code causes additional spurious typerefs and memberrefs to be //emitted. If the attributes can't be resolved, it causes a NullReference. // //if ((typeReference.AsTypeDefinition(Context) == null)) //{ // this.Visit(typeReference.GetAttributes(Context)); //} this.typeReferenceNeedsToken = false; return true; } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Workspaces/CSharp/Portable/Simplification/CSharpSimplificationService.Expander.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Utilities; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Simplification; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Simplification { internal partial class CSharpSimplificationService { private class Expander : CSharpSyntaxRewriter { private static readonly SyntaxTrivia s_oneWhitespaceSeparator = SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "); private static readonly SymbolDisplayFormat s_typeNameFormatWithGenerics = new( globalNamespaceStyle: SymbolDisplayGlobalNamespaceStyle.Included, genericsOptions: SymbolDisplayGenericsOptions.IncludeTypeParameters, memberOptions: SymbolDisplayMemberOptions.IncludeContainingType, localOptions: SymbolDisplayLocalOptions.IncludeType, miscellaneousOptions: SymbolDisplayMiscellaneousOptions.EscapeKeywordIdentifiers | SymbolDisplayMiscellaneousOptions.ExpandNullable, typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces); private readonly SemanticModel _semanticModel; private readonly Func<SyntaxNode, bool> _expandInsideNode; private readonly CancellationToken _cancellationToken; private readonly SyntaxAnnotation _annotationForReplacedAliasIdentifier; private readonly bool _expandParameter; public Expander( SemanticModel semanticModel, Func<SyntaxNode, bool> expandInsideNode, bool expandParameter, CancellationToken cancellationToken, SyntaxAnnotation annotationForReplacedAliasIdentifier = null) { _semanticModel = semanticModel; _expandInsideNode = expandInsideNode; _expandParameter = expandParameter; _cancellationToken = cancellationToken; _annotationForReplacedAliasIdentifier = annotationForReplacedAliasIdentifier; } public override SyntaxNode Visit(SyntaxNode node) { if (_expandInsideNode == null || _expandInsideNode(node)) { return base.Visit(node); } return node; } private bool IsPassedToDelegateCreationExpression(ArgumentSyntax argument, ITypeSymbol type) { if (type.IsDelegateType() && argument.IsParentKind(SyntaxKind.ArgumentList) && argument.Parent.IsParentKind(SyntaxKind.ObjectCreationExpression, out ObjectCreationExpressionSyntax objectCreationExpression)) { var objectCreationType = _semanticModel.GetTypeInfo(objectCreationExpression).Type; if (objectCreationType.Equals(type)) { return true; } } return false; } private SpeculationAnalyzer GetSpeculationAnalyzer(ExpressionSyntax expression, ExpressionSyntax newExpression) => new(expression, newExpression, _semanticModel, _cancellationToken); private bool TryCastTo(ITypeSymbol targetType, ExpressionSyntax expression, ExpressionSyntax newExpression, out ExpressionSyntax newExpressionWithCast) { var speculativeAnalyzer = GetSpeculationAnalyzer(expression, newExpression); var speculativeSemanticModel = speculativeAnalyzer.SpeculativeSemanticModel; var speculatedExpression = speculativeAnalyzer.ReplacedExpression; var result = speculatedExpression.CastIfPossible(targetType, speculatedExpression.SpanStart, speculativeSemanticModel, _cancellationToken); if (result != speculatedExpression) { newExpressionWithCast = result; return true; } newExpressionWithCast = null; return false; } private bool TryGetLambdaExpressionBodyWithCast(LambdaExpressionSyntax lambdaExpression, LambdaExpressionSyntax newLambdaExpression, out ExpressionSyntax newLambdaExpressionBodyWithCast) { if (newLambdaExpression.Body is ExpressionSyntax) { var body = (ExpressionSyntax)lambdaExpression.Body; var newBody = (ExpressionSyntax)newLambdaExpression.Body; var returnType = (_semanticModel.GetSymbolInfo(lambdaExpression).Symbol as IMethodSymbol)?.ReturnType; if (returnType != null) { return TryCastTo(returnType, body, newBody, out newLambdaExpressionBodyWithCast); } } newLambdaExpressionBodyWithCast = null; return false; } public override SyntaxNode VisitReturnStatement(ReturnStatementSyntax node) { var newNode = base.VisitReturnStatement(node); if (newNode is ReturnStatementSyntax newReturnStatement) { if (newReturnStatement.Expression != null) { var parentLambda = node.FirstAncestorOrSelf<LambdaExpressionSyntax>(); if (parentLambda != null) { var returnType = (_semanticModel.GetSymbolInfo(parentLambda).Symbol as IMethodSymbol)?.ReturnType; if (returnType != null) { if (TryCastTo(returnType, node.Expression, newReturnStatement.Expression, out var newExpressionWithCast)) { newNode = newReturnStatement.WithExpression(newExpressionWithCast); } } } } } return newNode; } public override SyntaxNode VisitParenthesizedLambdaExpression(ParenthesizedLambdaExpressionSyntax node) { var newNode = base.VisitParenthesizedLambdaExpression(node); if (newNode is ParenthesizedLambdaExpressionSyntax parenthesizedLambda) { // First, try to add a cast to the lambda. if (TryGetLambdaExpressionBodyWithCast(node, parenthesizedLambda, out var newLambdaExpressionBodyWithCast)) { parenthesizedLambda = parenthesizedLambda.WithBody(newLambdaExpressionBodyWithCast); } // Next, try to add a types to the lambda parameters if (_expandParameter && parenthesizedLambda.ParameterList != null) { var parameterList = parenthesizedLambda.ParameterList; var parameters = parameterList.Parameters.ToArray(); if (parameters.Length > 0 && parameters.Any(p => p.Type == null)) { var parameterSymbols = node.ParameterList.Parameters .Select(p => _semanticModel.GetDeclaredSymbol(p, _cancellationToken)) .ToArray(); if (parameterSymbols.All(p => p.Type?.ContainsAnonymousType() == false)) { var newParameters = parameterList.Parameters; for (var i = 0; i < parameterSymbols.Length; i++) { var typeSyntax = parameterSymbols[i].Type.GenerateTypeSyntax().WithTrailingTrivia(s_oneWhitespaceSeparator); var newParameter = parameters[i].WithType(typeSyntax).WithAdditionalAnnotations(Simplifier.Annotation); var currentParameter = newParameters[i]; newParameters = newParameters.Replace(currentParameter, newParameter); } var newParameterList = parameterList.WithParameters(newParameters); var newParenthesizedLambda = parenthesizedLambda.WithParameterList(newParameterList); return SimplificationHelpers.CopyAnnotations(from: parenthesizedLambda, to: newParenthesizedLambda); } } } return parenthesizedLambda; } return newNode; } public override SyntaxNode VisitSimpleLambdaExpression(SimpleLambdaExpressionSyntax node) { var newNode = base.VisitSimpleLambdaExpression(node); if (newNode is SimpleLambdaExpressionSyntax simpleLambda) { // First, try to add a cast to the lambda. if (TryGetLambdaExpressionBodyWithCast(node, simpleLambda, out var newLambdaExpressionBodyWithCast)) { simpleLambda = simpleLambda.WithBody(newLambdaExpressionBodyWithCast); } // Next, try to add a type to the lambda parameter if (_expandParameter) { var parameterSymbol = _semanticModel.GetDeclaredSymbol(node.Parameter); if (parameterSymbol?.Type?.ContainsAnonymousType() == false) { var typeSyntax = parameterSymbol.Type.GenerateTypeSyntax().WithTrailingTrivia(s_oneWhitespaceSeparator); var newSimpleLambdaParameter = simpleLambda.Parameter.WithType(typeSyntax).WithoutTrailingTrivia(); var parenthesizedLambda = SyntaxFactory.ParenthesizedLambdaExpression( simpleLambda.AsyncKeyword, SyntaxFactory.ParameterList(SyntaxFactory.SingletonSeparatedList(newSimpleLambdaParameter)) .WithTrailingTrivia(simpleLambda.Parameter.GetTrailingTrivia()) .WithLeadingTrivia(simpleLambda.Parameter.GetLeadingTrivia()), simpleLambda.ArrowToken, simpleLambda.Body).WithAdditionalAnnotations(Simplifier.Annotation); return SimplificationHelpers.CopyAnnotations(from: simpleLambda, to: parenthesizedLambda); } } return simpleLambda; } return newNode; } public override SyntaxNode VisitArgument(ArgumentSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var newArgument = (ArgumentSyntax)base.VisitArgument(node); if (node.NameColon == null && node.Parent is TupleExpressionSyntax tuple && !IsTupleInDeconstruction(tuple)) // The language currently does not allow explicit element names in deconstruction { var inferredName = node.Expression.TryGetInferredMemberName(); if (CanMakeNameExplicitInTuple(tuple, inferredName)) { var identifier = SyntaxFactory.Identifier(inferredName); identifier = TryEscapeIdentifierToken(identifier, node); newArgument = newArgument .WithoutLeadingTrivia() .WithNameColon(SyntaxFactory.NameColon(SyntaxFactory.IdentifierName(identifier))) .WithAdditionalAnnotations(Simplifier.Annotation) .WithLeadingTrivia(node.GetLeadingTrivia()); } } var argumentType = _semanticModel.GetTypeInfo(node.Expression).ConvertedType; if (argumentType != null && !IsPassedToDelegateCreationExpression(node, argumentType) && node.Expression.Kind() != SyntaxKind.DeclarationExpression && node.RefOrOutKeyword.Kind() == SyntaxKind.None) { if (TryCastTo(argumentType, node.Expression, newArgument.Expression, out var newArgumentExpressionWithCast)) { return newArgument.WithExpression(newArgumentExpressionWithCast); } } return newArgument; } private static bool CanMakeNameExplicitInTuple(TupleExpressionSyntax tuple, string name) { if (name == null || SyntaxFacts.IsReservedTupleElementName(name)) { return false; } var found = false; foreach (var argument in tuple.Arguments) { string elementName; if (argument.NameColon != null) { elementName = argument.NameColon.Name.Identifier.ValueText; } else { elementName = argument.Expression?.TryGetInferredMemberName(); } if (elementName?.Equals(name, StringComparison.Ordinal) == true) { if (found) { // No duplicate names allowed return false; } found = true; } } return true; } public override SyntaxNode VisitAnonymousObjectMemberDeclarator(AnonymousObjectMemberDeclaratorSyntax node) { var newDeclarator = (AnonymousObjectMemberDeclaratorSyntax)base.VisitAnonymousObjectMemberDeclarator(node); if (node.NameEquals == null) { var inferredName = node.Expression.TryGetInferredMemberName(); if (inferredName != null) { // Creating identifier without elastic trivia to avoid unexpected line break var identifier = SyntaxFactory.Identifier(SyntaxTriviaList.Empty, inferredName, SyntaxTriviaList.Empty); identifier = TryEscapeIdentifierToken(identifier, node); newDeclarator = newDeclarator .WithoutLeadingTrivia() .WithNameEquals(SyntaxFactory.NameEquals(SyntaxFactory.IdentifierName(identifier)) .WithLeadingTrivia(node.GetLeadingTrivia())) .WithAdditionalAnnotations(Simplifier.Annotation); } } return newDeclarator; } public override SyntaxNode VisitBinaryExpression(BinaryExpressionSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); // Special case: We parenthesize to avoid a situation where inlining an // expression can cause code to parse differently. The canonical case is... // // var x = 0; // var y = (1 + 2); // var z = new[] { x < x, x > y }; // // Inlining 'y' in the code above will produce code that parses differently // (i.e. as a generic method invocation). // // var z = new[] { x < x, x > (1 + 2) }; var result = (BinaryExpressionSyntax)base.VisitBinaryExpression(node); if ((node.Kind() == SyntaxKind.GreaterThanExpression || node.Kind() == SyntaxKind.RightShiftExpression) && !node.IsParentKind(SyntaxKind.ParenthesizedExpression)) { return result.Parenthesize(); } return result; } public override SyntaxNode VisitInterpolation(InterpolationSyntax node) { var result = (InterpolationSyntax)base.VisitInterpolation(node); if (result.Expression != null && !result.Expression.IsKind(SyntaxKind.ParenthesizedExpression)) { result = result.WithExpression(result.Expression.Parenthesize()); } return result; } public override SyntaxNode VisitXmlNameAttribute(XmlNameAttributeSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var newNode = (XmlNameAttributeSyntax)base.VisitXmlNameAttribute(node); return node.CopyAnnotationsTo(newNode); } public override SyntaxNode VisitNameMemberCref(NameMemberCrefSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var rewrittenname = (TypeSyntax)this.Visit(node.Name); var parameters = (CrefParameterListSyntax)this.Visit(node.Parameters); if (rewrittenname.Kind() == SyntaxKind.QualifiedName) { return node.CopyAnnotationsTo(SyntaxFactory.QualifiedCref( ((QualifiedNameSyntax)rewrittenname).Left .WithAdditionalAnnotations(Simplifier.Annotation), SyntaxFactory.NameMemberCref(((QualifiedNameSyntax)rewrittenname).Right, parameters) .WithLeadingTrivia(SyntaxTriviaList.Empty)) .WithLeadingTrivia(node.GetLeadingTrivia()) .WithTrailingTrivia(node.GetTrailingTrivia())) .WithAdditionalAnnotations(Simplifier.Annotation); } else if (rewrittenname.Kind() == SyntaxKind.AliasQualifiedName) { return node.CopyAnnotationsTo(SyntaxFactory.TypeCref( rewrittenname).WithLeadingTrivia(node.GetLeadingTrivia()) .WithTrailingTrivia(node.GetTrailingTrivia())) .WithAdditionalAnnotations(Simplifier.Annotation); } return node.Update(rewrittenname, parameters); } public override SyntaxNode VisitGenericName(GenericNameSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var newNode = (SimpleNameSyntax)base.VisitGenericName(node); return VisitSimpleName(newNode, node); } public override SyntaxNode VisitIdentifierName(IdentifierNameSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var newNode = (SimpleNameSyntax)base.VisitIdentifierName(node); return VisitSimpleName(newNode, node); } private ExpressionSyntax VisitSimpleName(SimpleNameSyntax rewrittenSimpleName, SimpleNameSyntax originalSimpleName) { _cancellationToken.ThrowIfCancellationRequested(); // if this is "var", then do not process further if (originalSimpleName.IsVar) { return rewrittenSimpleName; } var identifier = rewrittenSimpleName.Identifier; ExpressionSyntax newNode = rewrittenSimpleName; var isInsideCref = originalSimpleName.AncestorsAndSelf(ascendOutOfTrivia: true).Any(n => n is CrefSyntax); //// //// 1. if this identifier is an alias, we'll expand it here and replace the node completely. //// if (!SyntaxFacts.IsAliasQualifier(originalSimpleName)) { var aliasInfo = _semanticModel.GetAliasInfo(originalSimpleName, _cancellationToken); if (aliasInfo != null) { var aliasTarget = aliasInfo.Target; if (aliasTarget.IsNamespace() && ((INamespaceSymbol)aliasTarget).IsGlobalNamespace) { return rewrittenSimpleName; } // if the enclosing expression is a typeof expression that already contains open type we cannot // we need to insert an open type as well. var typeOfExpression = originalSimpleName.GetAncestor<TypeOfExpressionSyntax>(); if (typeOfExpression != null && IsTypeOfUnboundGenericType(_semanticModel, typeOfExpression)) { aliasTarget = ((INamedTypeSymbol)aliasTarget).ConstructUnboundGenericType(); } if (aliasTarget is INamedTypeSymbol typeSymbol && typeSymbol.IsTupleType) { return rewrittenSimpleName; } // the expanded form replaces the current identifier name. var replacement = FullyQualifyIdentifierName( aliasTarget, newNode, originalSimpleName, replaceNode: true, isInsideCref: isInsideCref, omitLeftHandSide: false) .WithAdditionalAnnotations(Simplifier.Annotation); // We replace the simple name completely, so we can't continue and rename the token // with a RenameLocationAnnotation. // There's also no way of removing annotations, so we just add a DoNotRenameAnnotation. switch (replacement.Kind()) { case SyntaxKind.AliasQualifiedName: var aliasQualifiedReplacement = (AliasQualifiedNameSyntax)replacement; replacement = replacement.ReplaceNode( aliasQualifiedReplacement.Name, aliasQualifiedReplacement.Name.WithIdentifier( GetNewIdentifier(aliasQualifiedReplacement.Name.Identifier))); var firstReplacementToken = replacement.GetFirstToken(true, false, true, true); var firstOriginalToken = originalSimpleName.GetFirstToken(true, false, true, true); if (TryAddLeadingElasticTriviaIfNecessary(firstReplacementToken, firstOriginalToken, out var tokenWithLeadingWhitespace)) { replacement = replacement.ReplaceToken(firstOriginalToken, tokenWithLeadingWhitespace); } break; case SyntaxKind.QualifiedName: var qualifiedReplacement = (QualifiedNameSyntax)replacement; replacement = replacement.ReplaceNode( qualifiedReplacement.Right, qualifiedReplacement.Right.WithIdentifier( GetNewIdentifier(qualifiedReplacement.Right.Identifier))); break; case SyntaxKind.IdentifierName: var identifierReplacement = (IdentifierNameSyntax)replacement; replacement = replacement.ReplaceToken(identifier, GetNewIdentifier(identifierReplacement.Identifier)); break; default: throw ExceptionUtilities.UnexpectedValue(replacement.Kind()); } replacement = newNode.CopyAnnotationsTo(replacement); replacement = AppendElasticTriviaIfNecessary(replacement, originalSimpleName); return replacement; SyntaxToken GetNewIdentifier(SyntaxToken _identifier) { var newIdentifier = identifier.CopyAnnotationsTo(_identifier); if (_annotationForReplacedAliasIdentifier != null) { newIdentifier = newIdentifier.WithAdditionalAnnotations(_annotationForReplacedAliasIdentifier); } var aliasAnnotationInfo = AliasAnnotation.Create(aliasInfo.Name); return newIdentifier.WithAdditionalAnnotations(aliasAnnotationInfo); } } } var symbol = _semanticModel.GetSymbolInfo(originalSimpleName.Identifier).Symbol; if (symbol == null) { return newNode; } var typeArgumentSymbols = TypeArgumentSymbolsPresentInName(originalSimpleName); var omitLeftSideOfExpression = false; // Check to see if the type Arguments in the resultant Symbol is recursively defined. if (IsTypeArgumentDefinedRecursive(symbol, typeArgumentSymbols, enterContainingSymbol: true)) { if (symbol.ContainingSymbol.Equals(symbol.OriginalDefinition.ContainingSymbol) && symbol.Kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsStatic) { if (IsTypeArgumentDefinedRecursive(symbol, typeArgumentSymbols, enterContainingSymbol: false)) { return newNode; } else { omitLeftSideOfExpression = true; } } else { return newNode; } } if (IsInvocationWithDynamicArguments(originalSimpleName, _semanticModel)) { return newNode; } //// //// 2. If it's an attribute, make sure the identifier matches the attribute's class name. //// if (originalSimpleName.GetAncestor<AttributeSyntax>() != null) { if (symbol.IsConstructor() && symbol.ContainingType?.IsAttribute() == true) { symbol = symbol.ContainingType; var name = symbol.Name; Debug.Assert(name.StartsWith(originalSimpleName.Identifier.ValueText, StringComparison.Ordinal)); // if the user already used the Attribute suffix in the attribute, we'll maintain it. if (identifier.ValueText == name && name.EndsWith("Attribute", StringComparison.Ordinal)) { identifier = identifier.WithAdditionalAnnotations(SimplificationHelpers.DontSimplifyAnnotation); } identifier = identifier.CopyAnnotationsTo(SyntaxFactory.VerbatimIdentifier(identifier.LeadingTrivia, name, name, identifier.TrailingTrivia)); } } //// //// 3. Always try to escape keyword identifiers //// identifier = TryEscapeIdentifierToken(identifier, originalSimpleName).WithAdditionalAnnotations(Simplifier.Annotation); if (identifier != rewrittenSimpleName.Identifier) { switch (newNode.Kind()) { case SyntaxKind.IdentifierName: case SyntaxKind.GenericName: newNode = ((SimpleNameSyntax)newNode).WithIdentifier(identifier); break; default: throw new NotImplementedException(); } } var parent = originalSimpleName.Parent; // do not complexify further for location where only simple names are allowed if (parent is MemberBindingExpressionSyntax || originalSimpleName.GetAncestor<NameEqualsSyntax>() != null || (parent is MemberAccessExpressionSyntax && parent.Kind() != SyntaxKind.SimpleMemberAccessExpression) || ((parent.Kind() == SyntaxKind.SimpleMemberAccessExpression || parent.Kind() == SyntaxKind.NameMemberCref) && originalSimpleName.IsRightSideOfDot()) || (parent.Kind() == SyntaxKind.QualifiedName && originalSimpleName.IsRightSideOfQualifiedName()) || (parent.Kind() == SyntaxKind.AliasQualifiedName) || (parent.Kind() == SyntaxKind.NameColon)) { return TryAddTypeArgumentToIdentifierName(newNode, symbol); } //// //// 4. If this is a standalone identifier or the left side of a qualified name or member access try to fully qualify it //// // we need to treat the constructor as type name, so just get the containing type. if (symbol.IsConstructor() && (parent.Kind() == SyntaxKind.ObjectCreationExpression || parent.Kind() == SyntaxKind.NameMemberCref)) { symbol = symbol.ContainingType; } // if it's a namespace or type name, fully qualify it. if (symbol.Kind is SymbolKind.NamedType or SymbolKind.Namespace) { var replacement = FullyQualifyIdentifierName( (INamespaceOrTypeSymbol)symbol, newNode, originalSimpleName, replaceNode: false, isInsideCref: isInsideCref, omitLeftHandSide: omitLeftSideOfExpression) .WithAdditionalAnnotations(Simplifier.Annotation); replacement = AppendElasticTriviaIfNecessary(replacement, originalSimpleName); return replacement; } // if it's a member access, we're fully qualifying the left side and make it a member access. if (symbol.Kind is SymbolKind.Method or SymbolKind.Field or SymbolKind.Property) { if (symbol.IsStatic || originalSimpleName.IsParentKind(SyntaxKind.NameMemberCref) || _semanticModel.SyntaxTree.IsNameOfContext(originalSimpleName.SpanStart, _semanticModel, _cancellationToken)) { newNode = FullyQualifyIdentifierName( symbol, newNode, originalSimpleName, replaceNode: false, isInsideCref: isInsideCref, omitLeftHandSide: omitLeftSideOfExpression); } else { if (!IsPropertyNameOfObjectInitializer(originalSimpleName) && !symbol.IsLocalFunction()) { ExpressionSyntax left; // Assumption here is, if the enclosing and containing types are different then there is inheritance relationship if (!Equals(_semanticModel.GetEnclosingNamedType(originalSimpleName.SpanStart, _cancellationToken), symbol.ContainingType)) { left = SyntaxFactory.BaseExpression(); } else { left = SyntaxFactory.ThisExpression(); } var identifiersLeadingTrivia = newNode.GetLeadingTrivia(); newNode = TryAddTypeArgumentToIdentifierName(newNode, symbol); newNode = newNode.CopyAnnotationsTo( SyntaxFactory.MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, left, (SimpleNameSyntax)newNode.WithLeadingTrivia(null)) .WithLeadingTrivia(identifiersLeadingTrivia)); } } } var result = newNode.WithAdditionalAnnotations(Simplifier.Annotation); result = AppendElasticTriviaIfNecessary(result, originalSimpleName); return result; } private ExpressionSyntax TryReplaceAngleBracesWithCurlyBraces(ExpressionSyntax expression, bool isInsideCref) { if (isInsideCref) { var leftTokens = expression.DescendantTokens(); var candidateTokens = new List<SyntaxToken>(); foreach (var candidateToken in leftTokens) { if (candidateToken.Kind() is SyntaxKind.LessThanToken or SyntaxKind.GreaterThanToken) { candidateTokens.Add(candidateToken); continue; } } expression = expression.ReplaceTokens(candidateTokens, computeReplacementToken: ReplaceTokenForCref); } return expression; } private static ExpressionSyntax TryAddTypeArgumentToIdentifierName(ExpressionSyntax newNode, ISymbol symbol) { if (newNode.Kind() == SyntaxKind.IdentifierName && symbol.Kind == SymbolKind.Method) { if (((IMethodSymbol)symbol).TypeArguments.Length != 0) { var typeArguments = ((IMethodSymbol)symbol).TypeArguments; if (!typeArguments.Any(static t => t.ContainsAnonymousType())) { var genericName = SyntaxFactory.GenericName( ((IdentifierNameSyntax)newNode).Identifier, SyntaxFactory.TypeArgumentList( SyntaxFactory.SeparatedList( typeArguments.Select(p => SyntaxFactory.ParseTypeName(p.ToDisplayParts(s_typeNameFormatWithGenerics).ToDisplayString()))))) .WithLeadingTrivia(newNode.GetLeadingTrivia()) .WithTrailingTrivia(newNode.GetTrailingTrivia()) .WithAdditionalAnnotations(Simplifier.Annotation); genericName = newNode.CopyAnnotationsTo(genericName); return genericName; } } } return newNode; } private IList<ISymbol> TypeArgumentSymbolsPresentInName(SimpleNameSyntax simpleName) { var typeArgumentSymbols = new List<ISymbol>(); var typeArgumentListSyntax = simpleName.DescendantNodesAndSelf().Where(n => n is TypeArgumentListSyntax); foreach (var typeArgumentList in typeArgumentListSyntax) { var castedTypeArgument = (TypeArgumentListSyntax)typeArgumentList; foreach (var typeArgument in castedTypeArgument.Arguments) { var symbol = _semanticModel.GetSymbolInfo(typeArgument).Symbol; if (symbol != null && !typeArgumentSymbols.Contains(symbol)) { typeArgumentSymbols.Add(symbol); } } } return typeArgumentSymbols; } private static bool IsInvocationWithDynamicArguments(SimpleNameSyntax originalSimpleName, SemanticModel semanticModel) { var invocationExpression = originalSimpleName.Ancestors().OfType<InvocationExpressionSyntax>().FirstOrDefault(); // Check to see if this is the invocation Expression we wanted to work with if (invocationExpression != null && invocationExpression.Expression.GetLastToken() == originalSimpleName.GetLastToken()) { if (invocationExpression.ArgumentList != null) { foreach (var argument in invocationExpression.ArgumentList.Arguments) { if (argument != null) { var typeinfo = semanticModel.GetTypeInfo(argument.Expression); if (typeinfo.Type != null && typeinfo.Type.TypeKind == TypeKind.Dynamic) { return true; } } } } } return false; } private bool IsTypeArgumentDefinedRecursive(ISymbol symbol, IList<ISymbol> typeArgumentSymbols, bool enterContainingSymbol) { if (Equals(symbol, symbol.OriginalDefinition)) { return false; } var typeArgumentsInSymbol = new List<ISymbol>(); TypeArgumentsInAllContainingSymbol(symbol, typeArgumentsInSymbol, enterContainingSymbol, isRecursive: true); var typeArgumentsInOriginalDefinition = new List<ISymbol>(); TypeArgumentsInAllContainingSymbol(symbol.OriginalDefinition, typeArgumentsInOriginalDefinition, enterContainingSymbol, isRecursive: false); if (typeArgumentsInSymbol.Intersect(typeArgumentsInOriginalDefinition).Any(n => !typeArgumentSymbols.Contains(n))) { return true; } return false; } private void TypeArgumentsInAllContainingSymbol(ISymbol symbol, IList<ISymbol> typeArgumentSymbols, bool enterContainingSymbol, bool isRecursive) { if (symbol == null || symbol.IsNamespace()) { // This is the terminating condition return; } if (symbol is INamedTypeSymbol namedTypedSymbol) { if (namedTypedSymbol.TypeArguments.Length != 0) { foreach (var typeArgument in namedTypedSymbol.TypeArguments) { if (!typeArgumentSymbols.Contains(typeArgument)) { typeArgumentSymbols.Add(typeArgument); if (isRecursive) { TypeArgumentsInAllContainingSymbol(typeArgument, typeArgumentSymbols, enterContainingSymbol, isRecursive); } } } } } if (enterContainingSymbol) { TypeArgumentsInAllContainingSymbol(symbol.ContainingSymbol, typeArgumentSymbols, enterContainingSymbol, isRecursive); } } private static bool IsPropertyNameOfObjectInitializer(SimpleNameSyntax identifierName) { SyntaxNode currentNode = identifierName; SyntaxNode parent = identifierName; while (parent != null) { if (parent.IsKind(SyntaxKind.ObjectInitializerExpression, SyntaxKind.WithInitializerExpression)) { return currentNode.Kind() == SyntaxKind.SimpleAssignmentExpression && object.Equals(((AssignmentExpressionSyntax)currentNode).Left, identifierName); } else if (parent is ExpressionSyntax) { currentNode = parent; parent = parent.Parent; continue; } else { return false; } } return false; } private ExpressionSyntax FullyQualifyIdentifierName( ISymbol symbol, ExpressionSyntax rewrittenNode, ExpressionSyntax originalNode, bool replaceNode, bool isInsideCref, bool omitLeftHandSide) { Debug.Assert(!replaceNode || rewrittenNode.Kind() == SyntaxKind.IdentifierName); //// TODO: use and expand Generate*Syntax(isymbol) to not depend on symbol display any more. //// See GenerateExpressionSyntax(); var result = rewrittenNode; // only if this symbol has a containing type or namespace there is work for us to do. if (replaceNode || symbol.ContainingType != null || symbol.ContainingNamespace != null) { ImmutableArray<SymbolDisplayPart> displayParts; // we either need to create an AliasQualifiedName if the symbol is directly contained in the global namespace, // otherwise it a QualifiedName. if (!replaceNode && symbol.ContainingType == null && symbol.ContainingNamespace.IsGlobalNamespace) { return rewrittenNode.CopyAnnotationsTo( SyntaxFactory.AliasQualifiedName( SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)), (SimpleNameSyntax)rewrittenNode.WithLeadingTrivia(null)) .WithLeadingTrivia(rewrittenNode.GetLeadingTrivia())); } displayParts = replaceNode ? symbol.ToDisplayParts(s_typeNameFormatWithGenerics) : (symbol.ContainingType ?? (ISymbol)symbol.ContainingNamespace).ToDisplayParts(s_typeNameFormatWithGenerics); rewrittenNode = TryAddTypeArgumentToIdentifierName(rewrittenNode, symbol); // Replaces the '<' token with the '{' token since we are inside crefs rewrittenNode = TryReplaceAngleBracesWithCurlyBraces(rewrittenNode, isInsideCref); result = rewrittenNode; if (!omitLeftHandSide) { ExpressionSyntax left = SyntaxFactory.ParseTypeName(displayParts.ToDisplayString()); // Replaces the '<' token with the '{' token since we are inside crefs left = TryReplaceAngleBracesWithCurlyBraces(left, isInsideCref); if (replaceNode) { return left .WithLeadingTrivia(rewrittenNode.GetLeadingTrivia()) .WithTrailingTrivia(rewrittenNode.GetTrailingTrivia()); } // now create syntax for the combination of left and right syntax, or a simple replacement in case of an identifier var parent = originalNode.Parent; var leadingTrivia = rewrittenNode.GetLeadingTrivia(); rewrittenNode = rewrittenNode.WithLeadingTrivia(null); switch (parent.Kind()) { case SyntaxKind.QualifiedName: result = rewrittenNode.CopyAnnotationsTo( SyntaxFactory.QualifiedName( (NameSyntax)left, (SimpleNameSyntax)rewrittenNode)); break; case SyntaxKind.SimpleMemberAccessExpression: result = rewrittenNode.CopyAnnotationsTo( SyntaxFactory.MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, left, (SimpleNameSyntax)rewrittenNode)); break; default: Debug.Assert(rewrittenNode is SimpleNameSyntax); if (SyntaxFacts.IsInNamespaceOrTypeContext(originalNode)) { var right = (SimpleNameSyntax)rewrittenNode; result = rewrittenNode.CopyAnnotationsTo(SyntaxFactory.QualifiedName((NameSyntax)left, right.WithAdditionalAnnotations(Simplifier.SpecialTypeAnnotation))); } else if (originalNode.Parent is CrefSyntax) { var right = (SimpleNameSyntax)rewrittenNode; result = rewrittenNode.CopyAnnotationsTo(SyntaxFactory.QualifiedName((NameSyntax)left, right)); } else { result = rewrittenNode.CopyAnnotationsTo( SyntaxFactory.MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, left, (SimpleNameSyntax)rewrittenNode)); } break; } result = result.WithLeadingTrivia(leadingTrivia); } } return result; } private SyntaxToken ReplaceTokenForCref(SyntaxToken oldToken, SyntaxToken dummySameToken) { if (oldToken.Kind() == SyntaxKind.LessThanToken) { return SyntaxFactory.Token(oldToken.LeadingTrivia, SyntaxKind.LessThanToken, "{", "{", oldToken.TrailingTrivia); } if (oldToken.Kind() == SyntaxKind.GreaterThanToken) { return SyntaxFactory.Token(oldToken.LeadingTrivia, SyntaxKind.GreaterThanToken, "}", "}", oldToken.TrailingTrivia); } Debug.Assert(false, "This method is used only replacing the '<' and '>' to '{' and '}' respectively"); return default; } private bool IsTypeOfUnboundGenericType(SemanticModel semanticModel, TypeOfExpressionSyntax typeOfExpression) { if (typeOfExpression != null) { var type = semanticModel.GetTypeInfo(typeOfExpression.Type, _cancellationToken).Type as INamedTypeSymbol; // It's possible the immediate type might not be an unbound type, such as typeof(A<>.B). So walk through // parent types too while (type != null) { if (type.IsUnboundGenericType) { return true; } type = type.ContainingType; } } return false; } public override SyntaxNode VisitInvocationExpression(InvocationExpressionSyntax originalNode) { if (_semanticModel.GetSymbolInfo(originalNode).Symbol.IsLocalFunction()) { return originalNode; } var rewrittenNode = (InvocationExpressionSyntax)base.VisitInvocationExpression(originalNode); if (originalNode.Expression.IsKind(SyntaxKind.SimpleMemberAccessExpression, out MemberAccessExpressionSyntax memberAccess)) { var targetSymbol = SimplificationHelpers.GetOriginalSymbolInfo(_semanticModel, memberAccess.Name); if (targetSymbol != null && targetSymbol.IsReducedExtension() && memberAccess.Expression != null) { rewrittenNode = RewriteExtensionMethodInvocation(originalNode, rewrittenNode, ((MemberAccessExpressionSyntax)rewrittenNode.Expression).Expression, (IMethodSymbol)targetSymbol); } } return rewrittenNode; } private InvocationExpressionSyntax RewriteExtensionMethodInvocation( InvocationExpressionSyntax originalNode, InvocationExpressionSyntax rewrittenNode, ExpressionSyntax thisExpression, IMethodSymbol reducedExtensionMethod) { var originalMemberAccess = (MemberAccessExpressionSyntax)originalNode.Expression; // Bail out on extension method invocations in conditional access expression. // Note that this is a temporary workaround for https://github.com/dotnet/roslyn/issues/2593. // Issue https://github.com/dotnet/roslyn/issues/3260 tracks fixing this workaround. if (originalMemberAccess.GetRootConditionalAccessExpression() == null) { var speculationPosition = originalNode.SpanStart; var expression = RewriteExtensionMethodInvocation(speculationPosition, rewrittenNode, thisExpression, reducedExtensionMethod); // Let's rebind this and verify the original method is being called properly var binding = _semanticModel.GetSpeculativeSymbolInfo(originalNode.SpanStart, expression, SpeculativeBindingOption.BindAsExpression); if (binding.Symbol != null) return expression; } return rewrittenNode; } private InvocationExpressionSyntax RewriteExtensionMethodInvocation( int speculationPosition, InvocationExpressionSyntax originalNode, ExpressionSyntax thisExpression, IMethodSymbol reducedExtensionMethod) { // It may be the case that this extension method cannot be called in static form. For example, if the // qualified name for the type containing the extension would be ambiguous. In that case, just return // the original call as is. var containingTypeString = reducedExtensionMethod.ContainingType.ToDisplayString(s_typeNameFormatWithGenerics); // We use .ParseExpression here, and not .GenerateTypeSyntax as we want this to be a property // MemberAccessExpression, and not a QualifiedNameSyntax. var containingTypeSyntax = SyntaxFactory.ParseExpression(containingTypeString); var newContainingType = _semanticModel.GetSpeculativeSymbolInfo(speculationPosition, containingTypeSyntax, SpeculativeBindingOption.BindAsExpression).Symbol; if (newContainingType == null || !newContainingType.Equals(reducedExtensionMethod.ContainingType)) return originalNode; var originalMemberAccess = (MemberAccessExpressionSyntax)originalNode.Expression; var newMemberAccess = originalMemberAccess.WithExpression(containingTypeSyntax) .WithLeadingTrivia(thisExpression.GetFirstToken().LeadingTrivia); // Copies the annotation for the member access expression newMemberAccess = originalNode.Expression.CopyAnnotationsTo(newMemberAccess).WithAdditionalAnnotations(Simplifier.Annotation); var thisArgument = SyntaxFactory.Argument(thisExpression).WithLeadingTrivia(SyntaxTriviaList.Empty); // Copies the annotation for the left hand side of the member access expression to the first argument in the complexified form thisArgument = originalMemberAccess.Expression.CopyAnnotationsTo(thisArgument); var arguments = originalNode.ArgumentList.Arguments.Insert(0, thisArgument); var replacementNode = SyntaxFactory.InvocationExpression( newMemberAccess, originalNode.ArgumentList.WithArguments(arguments)); // This Annotation copy is for the InvocationExpression return originalNode.CopyAnnotationsTo(replacementNode) .WithAdditionalAnnotations(Simplifier.Annotation, Formatter.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.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Utilities; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Simplification; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Simplification { internal partial class CSharpSimplificationService { private class Expander : CSharpSyntaxRewriter { private static readonly SyntaxTrivia s_oneWhitespaceSeparator = SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "); private static readonly SymbolDisplayFormat s_typeNameFormatWithGenerics = new( globalNamespaceStyle: SymbolDisplayGlobalNamespaceStyle.Included, genericsOptions: SymbolDisplayGenericsOptions.IncludeTypeParameters, memberOptions: SymbolDisplayMemberOptions.IncludeContainingType, localOptions: SymbolDisplayLocalOptions.IncludeType, miscellaneousOptions: SymbolDisplayMiscellaneousOptions.EscapeKeywordIdentifiers | SymbolDisplayMiscellaneousOptions.ExpandNullable, typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces); private readonly SemanticModel _semanticModel; private readonly Func<SyntaxNode, bool> _expandInsideNode; private readonly CancellationToken _cancellationToken; private readonly SyntaxAnnotation _annotationForReplacedAliasIdentifier; private readonly bool _expandParameter; public Expander( SemanticModel semanticModel, Func<SyntaxNode, bool> expandInsideNode, bool expandParameter, CancellationToken cancellationToken, SyntaxAnnotation annotationForReplacedAliasIdentifier = null) { _semanticModel = semanticModel; _expandInsideNode = expandInsideNode; _expandParameter = expandParameter; _cancellationToken = cancellationToken; _annotationForReplacedAliasIdentifier = annotationForReplacedAliasIdentifier; } public override SyntaxNode Visit(SyntaxNode node) { if (_expandInsideNode == null || _expandInsideNode(node)) { return base.Visit(node); } return node; } private bool IsPassedToDelegateCreationExpression(ArgumentSyntax argument, ITypeSymbol type) { if (type.IsDelegateType() && argument.IsParentKind(SyntaxKind.ArgumentList) && argument.Parent.IsParentKind(SyntaxKind.ObjectCreationExpression, out ObjectCreationExpressionSyntax objectCreationExpression)) { var objectCreationType = _semanticModel.GetTypeInfo(objectCreationExpression).Type; if (objectCreationType.Equals(type)) { return true; } } return false; } private SpeculationAnalyzer GetSpeculationAnalyzer(ExpressionSyntax expression, ExpressionSyntax newExpression) => new(expression, newExpression, _semanticModel, _cancellationToken); private bool TryCastTo(ITypeSymbol targetType, ExpressionSyntax expression, ExpressionSyntax newExpression, out ExpressionSyntax newExpressionWithCast) { var speculativeAnalyzer = GetSpeculationAnalyzer(expression, newExpression); var speculativeSemanticModel = speculativeAnalyzer.SpeculativeSemanticModel; var speculatedExpression = speculativeAnalyzer.ReplacedExpression; var result = speculatedExpression.CastIfPossible(targetType, speculatedExpression.SpanStart, speculativeSemanticModel, _cancellationToken); if (result != speculatedExpression) { newExpressionWithCast = result; return true; } newExpressionWithCast = null; return false; } private bool TryGetLambdaExpressionBodyWithCast(LambdaExpressionSyntax lambdaExpression, LambdaExpressionSyntax newLambdaExpression, out ExpressionSyntax newLambdaExpressionBodyWithCast) { if (newLambdaExpression.Body is ExpressionSyntax) { var body = (ExpressionSyntax)lambdaExpression.Body; var newBody = (ExpressionSyntax)newLambdaExpression.Body; var returnType = (_semanticModel.GetSymbolInfo(lambdaExpression).Symbol as IMethodSymbol)?.ReturnType; if (returnType != null) { return TryCastTo(returnType, body, newBody, out newLambdaExpressionBodyWithCast); } } newLambdaExpressionBodyWithCast = null; return false; } public override SyntaxNode VisitReturnStatement(ReturnStatementSyntax node) { var newNode = base.VisitReturnStatement(node); if (newNode is ReturnStatementSyntax newReturnStatement) { if (newReturnStatement.Expression != null) { var parentLambda = node.FirstAncestorOrSelf<LambdaExpressionSyntax>(); if (parentLambda != null) { var returnType = (_semanticModel.GetSymbolInfo(parentLambda).Symbol as IMethodSymbol)?.ReturnType; if (returnType != null) { if (TryCastTo(returnType, node.Expression, newReturnStatement.Expression, out var newExpressionWithCast)) { newNode = newReturnStatement.WithExpression(newExpressionWithCast); } } } } } return newNode; } public override SyntaxNode VisitParenthesizedLambdaExpression(ParenthesizedLambdaExpressionSyntax node) { var newNode = base.VisitParenthesizedLambdaExpression(node); if (newNode is ParenthesizedLambdaExpressionSyntax parenthesizedLambda) { // First, try to add a cast to the lambda. if (TryGetLambdaExpressionBodyWithCast(node, parenthesizedLambda, out var newLambdaExpressionBodyWithCast)) { parenthesizedLambda = parenthesizedLambda.WithBody(newLambdaExpressionBodyWithCast); } // Next, try to add a types to the lambda parameters if (_expandParameter && parenthesizedLambda.ParameterList != null) { var parameterList = parenthesizedLambda.ParameterList; var parameters = parameterList.Parameters.ToArray(); if (parameters.Length > 0 && parameters.Any(p => p.Type == null)) { var parameterSymbols = node.ParameterList.Parameters .Select(p => _semanticModel.GetDeclaredSymbol(p, _cancellationToken)) .ToArray(); if (parameterSymbols.All(p => p.Type?.ContainsAnonymousType() == false)) { var newParameters = parameterList.Parameters; for (var i = 0; i < parameterSymbols.Length; i++) { var typeSyntax = parameterSymbols[i].Type.GenerateTypeSyntax().WithTrailingTrivia(s_oneWhitespaceSeparator); var newParameter = parameters[i].WithType(typeSyntax).WithAdditionalAnnotations(Simplifier.Annotation); var currentParameter = newParameters[i]; newParameters = newParameters.Replace(currentParameter, newParameter); } var newParameterList = parameterList.WithParameters(newParameters); var newParenthesizedLambda = parenthesizedLambda.WithParameterList(newParameterList); return SimplificationHelpers.CopyAnnotations(from: parenthesizedLambda, to: newParenthesizedLambda); } } } return parenthesizedLambda; } return newNode; } public override SyntaxNode VisitSimpleLambdaExpression(SimpleLambdaExpressionSyntax node) { var newNode = base.VisitSimpleLambdaExpression(node); if (newNode is SimpleLambdaExpressionSyntax simpleLambda) { // First, try to add a cast to the lambda. if (TryGetLambdaExpressionBodyWithCast(node, simpleLambda, out var newLambdaExpressionBodyWithCast)) { simpleLambda = simpleLambda.WithBody(newLambdaExpressionBodyWithCast); } // Next, try to add a type to the lambda parameter if (_expandParameter) { var parameterSymbol = _semanticModel.GetDeclaredSymbol(node.Parameter); if (parameterSymbol?.Type?.ContainsAnonymousType() == false) { var typeSyntax = parameterSymbol.Type.GenerateTypeSyntax().WithTrailingTrivia(s_oneWhitespaceSeparator); var newSimpleLambdaParameter = simpleLambda.Parameter.WithType(typeSyntax).WithoutTrailingTrivia(); var parenthesizedLambda = SyntaxFactory.ParenthesizedLambdaExpression( simpleLambda.AsyncKeyword, SyntaxFactory.ParameterList(SyntaxFactory.SingletonSeparatedList(newSimpleLambdaParameter)) .WithTrailingTrivia(simpleLambda.Parameter.GetTrailingTrivia()) .WithLeadingTrivia(simpleLambda.Parameter.GetLeadingTrivia()), simpleLambda.ArrowToken, simpleLambda.Body).WithAdditionalAnnotations(Simplifier.Annotation); return SimplificationHelpers.CopyAnnotations(from: simpleLambda, to: parenthesizedLambda); } } return simpleLambda; } return newNode; } public override SyntaxNode VisitArgument(ArgumentSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var newArgument = (ArgumentSyntax)base.VisitArgument(node); if (node.NameColon == null && node.Parent is TupleExpressionSyntax tuple && !IsTupleInDeconstruction(tuple)) // The language currently does not allow explicit element names in deconstruction { var inferredName = node.Expression.TryGetInferredMemberName(); if (CanMakeNameExplicitInTuple(tuple, inferredName)) { var identifier = SyntaxFactory.Identifier(inferredName); identifier = TryEscapeIdentifierToken(identifier, node); newArgument = newArgument .WithoutLeadingTrivia() .WithNameColon(SyntaxFactory.NameColon(SyntaxFactory.IdentifierName(identifier))) .WithAdditionalAnnotations(Simplifier.Annotation) .WithLeadingTrivia(node.GetLeadingTrivia()); } } var argumentType = _semanticModel.GetTypeInfo(node.Expression).ConvertedType; if (argumentType != null && !IsPassedToDelegateCreationExpression(node, argumentType) && node.Expression.Kind() != SyntaxKind.DeclarationExpression && node.RefOrOutKeyword.Kind() == SyntaxKind.None) { if (TryCastTo(argumentType, node.Expression, newArgument.Expression, out var newArgumentExpressionWithCast)) { return newArgument.WithExpression(newArgumentExpressionWithCast); } } return newArgument; } private static bool CanMakeNameExplicitInTuple(TupleExpressionSyntax tuple, string name) { if (name == null || SyntaxFacts.IsReservedTupleElementName(name)) { return false; } var found = false; foreach (var argument in tuple.Arguments) { string elementName; if (argument.NameColon != null) { elementName = argument.NameColon.Name.Identifier.ValueText; } else { elementName = argument.Expression?.TryGetInferredMemberName(); } if (elementName?.Equals(name, StringComparison.Ordinal) == true) { if (found) { // No duplicate names allowed return false; } found = true; } } return true; } public override SyntaxNode VisitAnonymousObjectMemberDeclarator(AnonymousObjectMemberDeclaratorSyntax node) { var newDeclarator = (AnonymousObjectMemberDeclaratorSyntax)base.VisitAnonymousObjectMemberDeclarator(node); if (node.NameEquals == null) { var inferredName = node.Expression.TryGetInferredMemberName(); if (inferredName != null) { // Creating identifier without elastic trivia to avoid unexpected line break var identifier = SyntaxFactory.Identifier(SyntaxTriviaList.Empty, inferredName, SyntaxTriviaList.Empty); identifier = TryEscapeIdentifierToken(identifier, node); newDeclarator = newDeclarator .WithoutLeadingTrivia() .WithNameEquals(SyntaxFactory.NameEquals(SyntaxFactory.IdentifierName(identifier)) .WithLeadingTrivia(node.GetLeadingTrivia())) .WithAdditionalAnnotations(Simplifier.Annotation); } } return newDeclarator; } public override SyntaxNode VisitBinaryExpression(BinaryExpressionSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); // Special case: We parenthesize to avoid a situation where inlining an // expression can cause code to parse differently. The canonical case is... // // var x = 0; // var y = (1 + 2); // var z = new[] { x < x, x > y }; // // Inlining 'y' in the code above will produce code that parses differently // (i.e. as a generic method invocation). // // var z = new[] { x < x, x > (1 + 2) }; var result = (BinaryExpressionSyntax)base.VisitBinaryExpression(node); if ((node.Kind() == SyntaxKind.GreaterThanExpression || node.Kind() == SyntaxKind.RightShiftExpression) && !node.IsParentKind(SyntaxKind.ParenthesizedExpression)) { return result.Parenthesize(); } return result; } public override SyntaxNode VisitInterpolation(InterpolationSyntax node) { var result = (InterpolationSyntax)base.VisitInterpolation(node); if (result.Expression != null && !result.Expression.IsKind(SyntaxKind.ParenthesizedExpression)) { result = result.WithExpression(result.Expression.Parenthesize()); } return result; } public override SyntaxNode VisitXmlNameAttribute(XmlNameAttributeSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var newNode = (XmlNameAttributeSyntax)base.VisitXmlNameAttribute(node); return node.CopyAnnotationsTo(newNode); } public override SyntaxNode VisitNameMemberCref(NameMemberCrefSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var rewrittenname = (TypeSyntax)this.Visit(node.Name); var parameters = (CrefParameterListSyntax)this.Visit(node.Parameters); if (rewrittenname.Kind() == SyntaxKind.QualifiedName) { return node.CopyAnnotationsTo(SyntaxFactory.QualifiedCref( ((QualifiedNameSyntax)rewrittenname).Left .WithAdditionalAnnotations(Simplifier.Annotation), SyntaxFactory.NameMemberCref(((QualifiedNameSyntax)rewrittenname).Right, parameters) .WithLeadingTrivia(SyntaxTriviaList.Empty)) .WithLeadingTrivia(node.GetLeadingTrivia()) .WithTrailingTrivia(node.GetTrailingTrivia())) .WithAdditionalAnnotations(Simplifier.Annotation); } else if (rewrittenname.Kind() == SyntaxKind.AliasQualifiedName) { return node.CopyAnnotationsTo(SyntaxFactory.TypeCref( rewrittenname).WithLeadingTrivia(node.GetLeadingTrivia()) .WithTrailingTrivia(node.GetTrailingTrivia())) .WithAdditionalAnnotations(Simplifier.Annotation); } return node.Update(rewrittenname, parameters); } public override SyntaxNode VisitGenericName(GenericNameSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var newNode = (SimpleNameSyntax)base.VisitGenericName(node); return VisitSimpleName(newNode, node); } public override SyntaxNode VisitIdentifierName(IdentifierNameSyntax node) { _cancellationToken.ThrowIfCancellationRequested(); var newNode = (SimpleNameSyntax)base.VisitIdentifierName(node); return VisitSimpleName(newNode, node); } private ExpressionSyntax VisitSimpleName(SimpleNameSyntax rewrittenSimpleName, SimpleNameSyntax originalSimpleName) { _cancellationToken.ThrowIfCancellationRequested(); // if this is "var", then do not process further if (originalSimpleName.IsVar) { return rewrittenSimpleName; } var identifier = rewrittenSimpleName.Identifier; ExpressionSyntax newNode = rewrittenSimpleName; var isInsideCref = originalSimpleName.AncestorsAndSelf(ascendOutOfTrivia: true).Any(n => n is CrefSyntax); //// //// 1. if this identifier is an alias, we'll expand it here and replace the node completely. //// if (!SyntaxFacts.IsAliasQualifier(originalSimpleName)) { var aliasInfo = _semanticModel.GetAliasInfo(originalSimpleName, _cancellationToken); if (aliasInfo != null) { var aliasTarget = aliasInfo.Target; if (aliasTarget.IsNamespace() && ((INamespaceSymbol)aliasTarget).IsGlobalNamespace) { return rewrittenSimpleName; } // if the enclosing expression is a typeof expression that already contains open type we cannot // we need to insert an open type as well. var typeOfExpression = originalSimpleName.GetAncestor<TypeOfExpressionSyntax>(); if (typeOfExpression != null && IsTypeOfUnboundGenericType(_semanticModel, typeOfExpression)) { aliasTarget = ((INamedTypeSymbol)aliasTarget).ConstructUnboundGenericType(); } if (aliasTarget is INamedTypeSymbol typeSymbol && typeSymbol.IsTupleType) { return rewrittenSimpleName; } // the expanded form replaces the current identifier name. var replacement = FullyQualifyIdentifierName( aliasTarget, newNode, originalSimpleName, replaceNode: true, isInsideCref: isInsideCref, omitLeftHandSide: false) .WithAdditionalAnnotations(Simplifier.Annotation); // We replace the simple name completely, so we can't continue and rename the token // with a RenameLocationAnnotation. // There's also no way of removing annotations, so we just add a DoNotRenameAnnotation. switch (replacement.Kind()) { case SyntaxKind.AliasQualifiedName: var aliasQualifiedReplacement = (AliasQualifiedNameSyntax)replacement; replacement = replacement.ReplaceNode( aliasQualifiedReplacement.Name, aliasQualifiedReplacement.Name.WithIdentifier( GetNewIdentifier(aliasQualifiedReplacement.Name.Identifier))); var firstReplacementToken = replacement.GetFirstToken(true, false, true, true); var firstOriginalToken = originalSimpleName.GetFirstToken(true, false, true, true); if (TryAddLeadingElasticTriviaIfNecessary(firstReplacementToken, firstOriginalToken, out var tokenWithLeadingWhitespace)) { replacement = replacement.ReplaceToken(firstOriginalToken, tokenWithLeadingWhitespace); } break; case SyntaxKind.QualifiedName: var qualifiedReplacement = (QualifiedNameSyntax)replacement; replacement = replacement.ReplaceNode( qualifiedReplacement.Right, qualifiedReplacement.Right.WithIdentifier( GetNewIdentifier(qualifiedReplacement.Right.Identifier))); break; case SyntaxKind.IdentifierName: var identifierReplacement = (IdentifierNameSyntax)replacement; replacement = replacement.ReplaceToken(identifier, GetNewIdentifier(identifierReplacement.Identifier)); break; default: throw ExceptionUtilities.UnexpectedValue(replacement.Kind()); } replacement = newNode.CopyAnnotationsTo(replacement); replacement = AppendElasticTriviaIfNecessary(replacement, originalSimpleName); return replacement; SyntaxToken GetNewIdentifier(SyntaxToken _identifier) { var newIdentifier = identifier.CopyAnnotationsTo(_identifier); if (_annotationForReplacedAliasIdentifier != null) { newIdentifier = newIdentifier.WithAdditionalAnnotations(_annotationForReplacedAliasIdentifier); } var aliasAnnotationInfo = AliasAnnotation.Create(aliasInfo.Name); return newIdentifier.WithAdditionalAnnotations(aliasAnnotationInfo); } } } var symbol = _semanticModel.GetSymbolInfo(originalSimpleName.Identifier).Symbol; if (symbol == null) { return newNode; } var typeArgumentSymbols = TypeArgumentSymbolsPresentInName(originalSimpleName); var omitLeftSideOfExpression = false; // Check to see if the type Arguments in the resultant Symbol is recursively defined. if (IsTypeArgumentDefinedRecursive(symbol, typeArgumentSymbols, enterContainingSymbol: true)) { if (symbol.ContainingSymbol.Equals(symbol.OriginalDefinition.ContainingSymbol) && symbol.Kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsStatic) { if (IsTypeArgumentDefinedRecursive(symbol, typeArgumentSymbols, enterContainingSymbol: false)) { return newNode; } else { omitLeftSideOfExpression = true; } } else { return newNode; } } if (IsInvocationWithDynamicArguments(originalSimpleName, _semanticModel)) { return newNode; } //// //// 2. If it's an attribute, make sure the identifier matches the attribute's class name. //// if (originalSimpleName.GetAncestor<AttributeSyntax>() != null) { if (symbol.IsConstructor() && symbol.ContainingType?.IsAttribute() == true) { symbol = symbol.ContainingType; var name = symbol.Name; Debug.Assert(name.StartsWith(originalSimpleName.Identifier.ValueText, StringComparison.Ordinal)); // if the user already used the Attribute suffix in the attribute, we'll maintain it. if (identifier.ValueText == name && name.EndsWith("Attribute", StringComparison.Ordinal)) { identifier = identifier.WithAdditionalAnnotations(SimplificationHelpers.DontSimplifyAnnotation); } identifier = identifier.CopyAnnotationsTo(SyntaxFactory.VerbatimIdentifier(identifier.LeadingTrivia, name, name, identifier.TrailingTrivia)); } } //// //// 3. Always try to escape keyword identifiers //// identifier = TryEscapeIdentifierToken(identifier, originalSimpleName).WithAdditionalAnnotations(Simplifier.Annotation); if (identifier != rewrittenSimpleName.Identifier) { switch (newNode.Kind()) { case SyntaxKind.IdentifierName: case SyntaxKind.GenericName: newNode = ((SimpleNameSyntax)newNode).WithIdentifier(identifier); break; default: throw new NotImplementedException(); } } var parent = originalSimpleName.Parent; // do not complexify further for location where only simple names are allowed if (parent is MemberBindingExpressionSyntax || originalSimpleName.GetAncestor<NameEqualsSyntax>() != null || (parent is MemberAccessExpressionSyntax && parent.Kind() != SyntaxKind.SimpleMemberAccessExpression) || ((parent.Kind() == SyntaxKind.SimpleMemberAccessExpression || parent.Kind() == SyntaxKind.NameMemberCref) && originalSimpleName.IsRightSideOfDot()) || (parent.Kind() == SyntaxKind.QualifiedName && originalSimpleName.IsRightSideOfQualifiedName()) || (parent.Kind() == SyntaxKind.AliasQualifiedName) || (parent.Kind() == SyntaxKind.NameColon)) { return TryAddTypeArgumentToIdentifierName(newNode, symbol); } //// //// 4. If this is a standalone identifier or the left side of a qualified name or member access try to fully qualify it //// // we need to treat the constructor as type name, so just get the containing type. if (symbol.IsConstructor() && (parent.Kind() == SyntaxKind.ObjectCreationExpression || parent.Kind() == SyntaxKind.NameMemberCref)) { symbol = symbol.ContainingType; } // if it's a namespace or type name, fully qualify it. if (symbol.Kind is SymbolKind.NamedType or SymbolKind.Namespace) { var replacement = FullyQualifyIdentifierName( (INamespaceOrTypeSymbol)symbol, newNode, originalSimpleName, replaceNode: false, isInsideCref: isInsideCref, omitLeftHandSide: omitLeftSideOfExpression) .WithAdditionalAnnotations(Simplifier.Annotation); replacement = AppendElasticTriviaIfNecessary(replacement, originalSimpleName); return replacement; } // if it's a member access, we're fully qualifying the left side and make it a member access. if (symbol.Kind is SymbolKind.Method or SymbolKind.Field or SymbolKind.Property) { if (symbol.IsStatic || originalSimpleName.IsParentKind(SyntaxKind.NameMemberCref) || _semanticModel.SyntaxTree.IsNameOfContext(originalSimpleName.SpanStart, _semanticModel, _cancellationToken)) { newNode = FullyQualifyIdentifierName( symbol, newNode, originalSimpleName, replaceNode: false, isInsideCref: isInsideCref, omitLeftHandSide: omitLeftSideOfExpression); } else { if (!IsPropertyNameOfObjectInitializer(originalSimpleName) && !symbol.IsLocalFunction()) { ExpressionSyntax left; // Assumption here is, if the enclosing and containing types are different then there is inheritance relationship if (!Equals(_semanticModel.GetEnclosingNamedType(originalSimpleName.SpanStart, _cancellationToken), symbol.ContainingType)) { left = SyntaxFactory.BaseExpression(); } else { left = SyntaxFactory.ThisExpression(); } var identifiersLeadingTrivia = newNode.GetLeadingTrivia(); newNode = TryAddTypeArgumentToIdentifierName(newNode, symbol); newNode = newNode.CopyAnnotationsTo( SyntaxFactory.MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, left, (SimpleNameSyntax)newNode.WithLeadingTrivia(null)) .WithLeadingTrivia(identifiersLeadingTrivia)); } } } var result = newNode.WithAdditionalAnnotations(Simplifier.Annotation); result = AppendElasticTriviaIfNecessary(result, originalSimpleName); return result; } private ExpressionSyntax TryReplaceAngleBracesWithCurlyBraces(ExpressionSyntax expression, bool isInsideCref) { if (isInsideCref) { var leftTokens = expression.DescendantTokens(); var candidateTokens = new List<SyntaxToken>(); foreach (var candidateToken in leftTokens) { if (candidateToken.Kind() is SyntaxKind.LessThanToken or SyntaxKind.GreaterThanToken) { candidateTokens.Add(candidateToken); continue; } } expression = expression.ReplaceTokens(candidateTokens, computeReplacementToken: ReplaceTokenForCref); } return expression; } private static ExpressionSyntax TryAddTypeArgumentToIdentifierName(ExpressionSyntax newNode, ISymbol symbol) { if (newNode.Kind() == SyntaxKind.IdentifierName && symbol.Kind == SymbolKind.Method) { if (((IMethodSymbol)symbol).TypeArguments.Length != 0) { var typeArguments = ((IMethodSymbol)symbol).TypeArguments; if (!typeArguments.Any(static t => t.ContainsAnonymousType())) { var genericName = SyntaxFactory.GenericName( ((IdentifierNameSyntax)newNode).Identifier, SyntaxFactory.TypeArgumentList( SyntaxFactory.SeparatedList( typeArguments.Select(p => SyntaxFactory.ParseTypeName(p.ToDisplayParts(s_typeNameFormatWithGenerics).ToDisplayString()))))) .WithLeadingTrivia(newNode.GetLeadingTrivia()) .WithTrailingTrivia(newNode.GetTrailingTrivia()) .WithAdditionalAnnotations(Simplifier.Annotation); genericName = newNode.CopyAnnotationsTo(genericName); return genericName; } } } return newNode; } private IList<ISymbol> TypeArgumentSymbolsPresentInName(SimpleNameSyntax simpleName) { var typeArgumentSymbols = new List<ISymbol>(); var typeArgumentListSyntax = simpleName.DescendantNodesAndSelf().Where(n => n is TypeArgumentListSyntax); foreach (var typeArgumentList in typeArgumentListSyntax) { var castedTypeArgument = (TypeArgumentListSyntax)typeArgumentList; foreach (var typeArgument in castedTypeArgument.Arguments) { var symbol = _semanticModel.GetSymbolInfo(typeArgument).Symbol; if (symbol != null && !typeArgumentSymbols.Contains(symbol)) { typeArgumentSymbols.Add(symbol); } } } return typeArgumentSymbols; } private static bool IsInvocationWithDynamicArguments(SimpleNameSyntax originalSimpleName, SemanticModel semanticModel) { var invocationExpression = originalSimpleName.Ancestors().OfType<InvocationExpressionSyntax>().FirstOrDefault(); // Check to see if this is the invocation Expression we wanted to work with if (invocationExpression != null && invocationExpression.Expression.GetLastToken() == originalSimpleName.GetLastToken()) { if (invocationExpression.ArgumentList != null) { foreach (var argument in invocationExpression.ArgumentList.Arguments) { if (argument != null) { var typeinfo = semanticModel.GetTypeInfo(argument.Expression); if (typeinfo.Type != null && typeinfo.Type.TypeKind == TypeKind.Dynamic) { return true; } } } } } return false; } private bool IsTypeArgumentDefinedRecursive(ISymbol symbol, IList<ISymbol> typeArgumentSymbols, bool enterContainingSymbol) { if (Equals(symbol, symbol.OriginalDefinition)) { return false; } var typeArgumentsInSymbol = new List<ISymbol>(); TypeArgumentsInAllContainingSymbol(symbol, typeArgumentsInSymbol, enterContainingSymbol, isRecursive: true); var typeArgumentsInOriginalDefinition = new List<ISymbol>(); TypeArgumentsInAllContainingSymbol(symbol.OriginalDefinition, typeArgumentsInOriginalDefinition, enterContainingSymbol, isRecursive: false); if (typeArgumentsInSymbol.Intersect(typeArgumentsInOriginalDefinition).Any(n => !typeArgumentSymbols.Contains(n))) { return true; } return false; } private void TypeArgumentsInAllContainingSymbol(ISymbol symbol, IList<ISymbol> typeArgumentSymbols, bool enterContainingSymbol, bool isRecursive) { if (symbol == null || symbol.IsNamespace()) { // This is the terminating condition return; } if (symbol is INamedTypeSymbol namedTypedSymbol) { if (namedTypedSymbol.TypeArguments.Length != 0) { foreach (var typeArgument in namedTypedSymbol.TypeArguments) { if (!typeArgumentSymbols.Contains(typeArgument)) { typeArgumentSymbols.Add(typeArgument); if (isRecursive) { TypeArgumentsInAllContainingSymbol(typeArgument, typeArgumentSymbols, enterContainingSymbol, isRecursive); } } } } } if (enterContainingSymbol) { TypeArgumentsInAllContainingSymbol(symbol.ContainingSymbol, typeArgumentSymbols, enterContainingSymbol, isRecursive); } } private static bool IsPropertyNameOfObjectInitializer(SimpleNameSyntax identifierName) { SyntaxNode currentNode = identifierName; SyntaxNode parent = identifierName; while (parent != null) { if (parent.IsKind(SyntaxKind.ObjectInitializerExpression, SyntaxKind.WithInitializerExpression)) { return currentNode.Kind() == SyntaxKind.SimpleAssignmentExpression && object.Equals(((AssignmentExpressionSyntax)currentNode).Left, identifierName); } else if (parent is ExpressionSyntax) { currentNode = parent; parent = parent.Parent; continue; } else { return false; } } return false; } private ExpressionSyntax FullyQualifyIdentifierName( ISymbol symbol, ExpressionSyntax rewrittenNode, ExpressionSyntax originalNode, bool replaceNode, bool isInsideCref, bool omitLeftHandSide) { Debug.Assert(!replaceNode || rewrittenNode.Kind() == SyntaxKind.IdentifierName); //// TODO: use and expand Generate*Syntax(isymbol) to not depend on symbol display any more. //// See GenerateExpressionSyntax(); var result = rewrittenNode; // only if this symbol has a containing type or namespace there is work for us to do. if (replaceNode || symbol.ContainingType != null || symbol.ContainingNamespace != null) { ImmutableArray<SymbolDisplayPart> displayParts; // we either need to create an AliasQualifiedName if the symbol is directly contained in the global namespace, // otherwise it a QualifiedName. if (!replaceNode && symbol.ContainingType == null && symbol.ContainingNamespace.IsGlobalNamespace) { return rewrittenNode.CopyAnnotationsTo( SyntaxFactory.AliasQualifiedName( SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)), (SimpleNameSyntax)rewrittenNode.WithLeadingTrivia(null)) .WithLeadingTrivia(rewrittenNode.GetLeadingTrivia())); } displayParts = replaceNode ? symbol.ToDisplayParts(s_typeNameFormatWithGenerics) : (symbol.ContainingType ?? (ISymbol)symbol.ContainingNamespace).ToDisplayParts(s_typeNameFormatWithGenerics); rewrittenNode = TryAddTypeArgumentToIdentifierName(rewrittenNode, symbol); // Replaces the '<' token with the '{' token since we are inside crefs rewrittenNode = TryReplaceAngleBracesWithCurlyBraces(rewrittenNode, isInsideCref); result = rewrittenNode; if (!omitLeftHandSide) { ExpressionSyntax left = SyntaxFactory.ParseTypeName(displayParts.ToDisplayString()); // Replaces the '<' token with the '{' token since we are inside crefs left = TryReplaceAngleBracesWithCurlyBraces(left, isInsideCref); if (replaceNode) { return left .WithLeadingTrivia(rewrittenNode.GetLeadingTrivia()) .WithTrailingTrivia(rewrittenNode.GetTrailingTrivia()); } // now create syntax for the combination of left and right syntax, or a simple replacement in case of an identifier var parent = originalNode.Parent; var leadingTrivia = rewrittenNode.GetLeadingTrivia(); rewrittenNode = rewrittenNode.WithLeadingTrivia(null); switch (parent.Kind()) { case SyntaxKind.QualifiedName: result = rewrittenNode.CopyAnnotationsTo( SyntaxFactory.QualifiedName( (NameSyntax)left, (SimpleNameSyntax)rewrittenNode)); break; case SyntaxKind.SimpleMemberAccessExpression: result = rewrittenNode.CopyAnnotationsTo( SyntaxFactory.MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, left, (SimpleNameSyntax)rewrittenNode)); break; default: Debug.Assert(rewrittenNode is SimpleNameSyntax); if (SyntaxFacts.IsInNamespaceOrTypeContext(originalNode)) { var right = (SimpleNameSyntax)rewrittenNode; result = rewrittenNode.CopyAnnotationsTo(SyntaxFactory.QualifiedName((NameSyntax)left, right.WithAdditionalAnnotations(Simplifier.SpecialTypeAnnotation))); } else if (originalNode.Parent is CrefSyntax) { var right = (SimpleNameSyntax)rewrittenNode; result = rewrittenNode.CopyAnnotationsTo(SyntaxFactory.QualifiedName((NameSyntax)left, right)); } else { result = rewrittenNode.CopyAnnotationsTo( SyntaxFactory.MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, left, (SimpleNameSyntax)rewrittenNode)); } break; } result = result.WithLeadingTrivia(leadingTrivia); } } return result; } private SyntaxToken ReplaceTokenForCref(SyntaxToken oldToken, SyntaxToken dummySameToken) { if (oldToken.Kind() == SyntaxKind.LessThanToken) { return SyntaxFactory.Token(oldToken.LeadingTrivia, SyntaxKind.LessThanToken, "{", "{", oldToken.TrailingTrivia); } if (oldToken.Kind() == SyntaxKind.GreaterThanToken) { return SyntaxFactory.Token(oldToken.LeadingTrivia, SyntaxKind.GreaterThanToken, "}", "}", oldToken.TrailingTrivia); } Debug.Assert(false, "This method is used only replacing the '<' and '>' to '{' and '}' respectively"); return default; } private bool IsTypeOfUnboundGenericType(SemanticModel semanticModel, TypeOfExpressionSyntax typeOfExpression) { if (typeOfExpression != null) { var type = semanticModel.GetTypeInfo(typeOfExpression.Type, _cancellationToken).Type as INamedTypeSymbol; // It's possible the immediate type might not be an unbound type, such as typeof(A<>.B). So walk through // parent types too while (type != null) { if (type.IsUnboundGenericType) { return true; } type = type.ContainingType; } } return false; } public override SyntaxNode VisitInvocationExpression(InvocationExpressionSyntax originalNode) { if (_semanticModel.GetSymbolInfo(originalNode).Symbol.IsLocalFunction()) { return originalNode; } var rewrittenNode = (InvocationExpressionSyntax)base.VisitInvocationExpression(originalNode); if (originalNode.Expression.IsKind(SyntaxKind.SimpleMemberAccessExpression, out MemberAccessExpressionSyntax memberAccess)) { var targetSymbol = SimplificationHelpers.GetOriginalSymbolInfo(_semanticModel, memberAccess.Name); if (targetSymbol != null && targetSymbol.IsReducedExtension() && memberAccess.Expression != null) { rewrittenNode = RewriteExtensionMethodInvocation(originalNode, rewrittenNode, ((MemberAccessExpressionSyntax)rewrittenNode.Expression).Expression, (IMethodSymbol)targetSymbol); } } return rewrittenNode; } private InvocationExpressionSyntax RewriteExtensionMethodInvocation( InvocationExpressionSyntax originalNode, InvocationExpressionSyntax rewrittenNode, ExpressionSyntax thisExpression, IMethodSymbol reducedExtensionMethod) { var originalMemberAccess = (MemberAccessExpressionSyntax)originalNode.Expression; // Bail out on extension method invocations in conditional access expression. // Note that this is a temporary workaround for https://github.com/dotnet/roslyn/issues/2593. // Issue https://github.com/dotnet/roslyn/issues/3260 tracks fixing this workaround. if (originalMemberAccess.GetRootConditionalAccessExpression() == null) { var speculationPosition = originalNode.SpanStart; var expression = RewriteExtensionMethodInvocation(speculationPosition, rewrittenNode, thisExpression, reducedExtensionMethod); // Let's rebind this and verify the original method is being called properly var binding = _semanticModel.GetSpeculativeSymbolInfo(originalNode.SpanStart, expression, SpeculativeBindingOption.BindAsExpression); if (binding.Symbol != null) return expression; } return rewrittenNode; } private InvocationExpressionSyntax RewriteExtensionMethodInvocation( int speculationPosition, InvocationExpressionSyntax originalNode, ExpressionSyntax thisExpression, IMethodSymbol reducedExtensionMethod) { // It may be the case that this extension method cannot be called in static form. For example, if the // qualified name for the type containing the extension would be ambiguous. In that case, just return // the original call as is. var containingTypeString = reducedExtensionMethod.ContainingType.ToDisplayString(s_typeNameFormatWithGenerics); // We use .ParseExpression here, and not .GenerateTypeSyntax as we want this to be a property // MemberAccessExpression, and not a QualifiedNameSyntax. var containingTypeSyntax = SyntaxFactory.ParseExpression(containingTypeString); var newContainingType = _semanticModel.GetSpeculativeSymbolInfo(speculationPosition, containingTypeSyntax, SpeculativeBindingOption.BindAsExpression).Symbol; if (newContainingType == null || !newContainingType.Equals(reducedExtensionMethod.ContainingType)) return originalNode; var originalMemberAccess = (MemberAccessExpressionSyntax)originalNode.Expression; var newMemberAccess = originalMemberAccess.WithExpression(containingTypeSyntax) .WithLeadingTrivia(thisExpression.GetFirstToken().LeadingTrivia); // Copies the annotation for the member access expression newMemberAccess = originalNode.Expression.CopyAnnotationsTo(newMemberAccess).WithAdditionalAnnotations(Simplifier.Annotation); var thisArgument = SyntaxFactory.Argument(thisExpression).WithLeadingTrivia(SyntaxTriviaList.Empty); // Copies the annotation for the left hand side of the member access expression to the first argument in the complexified form thisArgument = originalMemberAccess.Expression.CopyAnnotationsTo(thisArgument); var arguments = originalNode.ArgumentList.Arguments.Insert(0, thisArgument); var replacementNode = SyntaxFactory.InvocationExpression( newMemberAccess, originalNode.ArgumentList.WithArguments(arguments)); // This Annotation copy is for the InvocationExpression return originalNode.CopyAnnotationsTo(replacementNode) .WithAdditionalAnnotations(Simplifier.Annotation, Formatter.Annotation); } } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/Workspaces/Core/Portable/Workspace/Host/EventListener/EventListenerMetadata.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 Microsoft.CodeAnalysis.Host.Mef; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Host { /// <summary> /// MEF metadata class used to find exports declared for a specific <see cref="IEventListener"/>. /// </summary> internal class EventListenerMetadata : WorkspaceKindMetadata { public string Service { get; } public EventListenerMetadata(IDictionary<string, object> data) : base(data) { this.Service = (string)data.GetValueOrDefault("Service"); } public EventListenerMetadata(string service, params string[] workspaceKinds) : base(workspaceKinds) { if (workspaceKinds?.Length == 0) { throw new ArgumentException(nameof(workspaceKinds)); } this.Service = service ?? throw new ArgumentException(nameof(service)); } } }
// Licensed to the .NET Foundation under one or more 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 Microsoft.CodeAnalysis.Host.Mef; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Host { /// <summary> /// MEF metadata class used to find exports declared for a specific <see cref="IEventListener"/>. /// </summary> internal class EventListenerMetadata : WorkspaceKindMetadata { public string Service { get; } public EventListenerMetadata(IDictionary<string, object> data) : base(data) { this.Service = (string)data.GetValueOrDefault("Service"); } public EventListenerMetadata(string service, params string[] workspaceKinds) : base(workspaceKinds) { if (workspaceKinds?.Length == 0) { throw new ArgumentException(nameof(workspaceKinds)); } this.Service = service ?? throw new ArgumentException(nameof(service)); } } }
-1
dotnet/roslyn
55,971
Theme some dialogs
Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
ryzngard
"2021-08-27T20:10:35Z"
"2022-07-12T20:08:34Z"
07297d927b3ffd4d44f048602950947e9a040dd2
2cd995df98f17f1ceebba0d93729d8a4336ebe26
Theme some dialogs. Theme pull members up, extract interface, and extract class. ### Extract Class ![image](https://user-images.githubusercontent.com/475144/147613347-811ba1a0-6935-4a7b-93d6-ab7954e61025.png) ![image](https://user-images.githubusercontent.com/475144/147613405-ce989054-e738-4661-b748-bda1c8776c4e.png) ### Extract Interface ![image](https://user-images.githubusercontent.com/475144/147613329-fa94cf08-eb40-4c3a-9d32-074fc72c070c.png) ![image](https://user-images.githubusercontent.com/475144/147613397-f150226d-cc5e-422f-b83f-11288fa1699a.png) ### Pull Members Up ![image](https://user-images.githubusercontent.com/475144/147613371-7962f7cf-ab8c-4b41-a89d-7943178446c1.png) ![image](https://user-images.githubusercontent.com/475144/147613417-2f47bcf0-e4bc-4a4f-9218-15989972091d.png)
./src/VisualStudio/Core/Test/ProjectSystemShim/VisualStudioRuleSetTests.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.IO Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Editor.Shared.Utilities Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces Imports Microsoft.CodeAnalysis.Shared.TestHooks Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem Imports Microsoft.VisualStudio.LanguageServices.UnitTests.ProjectSystemShim.Framework Imports Roslyn.Test.Utilities Imports IVsAsyncFileChangeEx = Microsoft.VisualStudio.Shell.IVsAsyncFileChangeEx Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.ProjectSystemShim <UseExportProvider> Public Class VisualStudioRuleSetTests Implements IDisposable Private ReadOnly _tempPath As String Public Sub New() _tempPath = Path.Combine(TempRoot.Root, Path.GetRandomFileName()) Directory.CreateDirectory(_tempPath) End Sub Private Sub Dispose() Implements IDisposable.Dispose Directory.Delete(_tempPath, recursive:=True) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function SingleFile() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set3"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> <Rule Id=""CA2119"" Action=""None"" /> <Rule Id=""CA2104"" Action=""Error"" /> <Rule Id=""CA2105"" Action=""Warning"" /> </Rules> </RuleSet>" Using workspace = New TestWorkspace() Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) Using visualStudioRuleSet = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = visualStudioRuleSet.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=1, actual:=fileChangeService.WatchedFileCount) End Using Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=0, actual:=fileChangeService.WatchedFileCount) End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function TwoFiles() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set1"" Description=""Test"" ToolsVersion=""12.0""> <Include Path=""file1.ruleset"" Action=""Error"" /> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA1000"" Action=""Warning"" /> <Rule Id=""CA1001"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""None"" /> </Rules> </RuleSet>" Dim includeSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set2"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Dim includePath As String = Path.Combine(_tempPath, "file1.ruleset") File.WriteAllText(includePath, includeSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) Using visualStudioRuleSet = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = visualStudioRuleSet.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=2, actual:=fileChangeService.WatchedFileCount) End Using Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=0, actual:=fileChangeService.WatchedFileCount) End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function IncludeUpdated() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set1"" Description=""Test"" ToolsVersion=""12.0""> <Include Path=""file1.ruleset"" Action=""Error"" /> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA1000"" Action=""Warning"" /> <Rule Id=""CA1001"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""None"" /> </Rules> </RuleSet>" Dim includeSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set2"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Dim includePath As String = Path.Combine(_tempPath, "file1.ruleset") File.WriteAllText(includePath, includeSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim listenerProvider = workspace.ExportProvider.GetExportedValue(Of IAsynchronousOperationListenerProvider) Dim listener = listenerProvider.GetListener("test") Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, listener) Using ruleSet1 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) Dim handlerCalled As Boolean = False AddHandler ruleSet1.Target.Value.UpdatedOnDisk, Sub() handlerCalled = True ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() fileChangeService.FireUpdate(includePath) Await listenerProvider.GetWaiter("test").ExpeditedWaitAsync() Assert.True(handlerCalled) End Using End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function SameFileRequestedAfterChange() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set3"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> <Rule Id=""CA2119"" Action=""None"" /> <Rule Id=""CA2104"" Action=""Error"" /> <Rule Id=""CA2105"" Action=""Warning"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim listenerProvider = workspace.ExportProvider.GetExportedValue(Of IAsynchronousOperationListenerProvider) Dim listener = listenerProvider.GetListener("test") Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, listener) Using ruleSet1 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() fileChangeService.FireUpdate(ruleSetPath) Await listenerProvider.GetWaiter("test").ExpeditedWaitAsync() Using ruleSet2 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. generalDiagnosticOption = ruleSet2.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=1, actual:=fileChangeService.WatchedFileCount) Assert.NotSame(ruleSet1.Target, ruleSet2.Target) End Using End Using Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=0, actual:=fileChangeService.WatchedFileCount) End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function SameFileRequestedMultipleTimes() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set3"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> <Rule Id=""CA2119"" Action=""None"" /> <Rule Id=""CA2104"" Action=""Error"" /> <Rule Id=""CA2105"" Action=""Warning"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) Using ruleSet1 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() Using ruleSet2 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=1, actual:=fileChangeService.WatchedFileCount) Assert.Same(ruleSet1.Target, ruleSet2.Target) End Using End Using Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=0, actual:=fileChangeService.WatchedFileCount) End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function FileWithError() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set3"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> <Rule Id=""CA2119"" Action=""None"" /> <Rule Id=""CA2104"" Action=""Error"" /> <Rule Id=""CA2105"" Action=""BlahBlahBlah"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) Using ruleSet = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) Dim generalDiagnosticOption = ruleSet.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=ReportDiagnostic.Default, actual:=generalDiagnosticOption) Dim exception = ruleSet.Target.Value.GetException() Assert.NotNull(exception) End Using 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 System.IO Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Editor.Shared.Utilities Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces Imports Microsoft.CodeAnalysis.Shared.TestHooks Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem Imports Microsoft.VisualStudio.LanguageServices.UnitTests.ProjectSystemShim.Framework Imports Roslyn.Test.Utilities Imports IVsAsyncFileChangeEx = Microsoft.VisualStudio.Shell.IVsAsyncFileChangeEx Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.ProjectSystemShim <UseExportProvider> Public Class VisualStudioRuleSetTests Implements IDisposable Private ReadOnly _tempPath As String Public Sub New() _tempPath = Path.Combine(TempRoot.Root, Path.GetRandomFileName()) Directory.CreateDirectory(_tempPath) End Sub Private Sub Dispose() Implements IDisposable.Dispose Directory.Delete(_tempPath, recursive:=True) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function SingleFile() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set3"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> <Rule Id=""CA2119"" Action=""None"" /> <Rule Id=""CA2104"" Action=""Error"" /> <Rule Id=""CA2105"" Action=""Warning"" /> </Rules> </RuleSet>" Using workspace = New TestWorkspace() Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) Using visualStudioRuleSet = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = visualStudioRuleSet.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=1, actual:=fileChangeService.WatchedFileCount) End Using Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=0, actual:=fileChangeService.WatchedFileCount) End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function TwoFiles() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set1"" Description=""Test"" ToolsVersion=""12.0""> <Include Path=""file1.ruleset"" Action=""Error"" /> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA1000"" Action=""Warning"" /> <Rule Id=""CA1001"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""None"" /> </Rules> </RuleSet>" Dim includeSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set2"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Dim includePath As String = Path.Combine(_tempPath, "file1.ruleset") File.WriteAllText(includePath, includeSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) Using visualStudioRuleSet = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = visualStudioRuleSet.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=2, actual:=fileChangeService.WatchedFileCount) End Using Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=0, actual:=fileChangeService.WatchedFileCount) End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function IncludeUpdated() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set1"" Description=""Test"" ToolsVersion=""12.0""> <Include Path=""file1.ruleset"" Action=""Error"" /> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA1000"" Action=""Warning"" /> <Rule Id=""CA1001"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""None"" /> </Rules> </RuleSet>" Dim includeSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set2"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Dim includePath As String = Path.Combine(_tempPath, "file1.ruleset") File.WriteAllText(includePath, includeSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim listenerProvider = workspace.ExportProvider.GetExportedValue(Of IAsynchronousOperationListenerProvider) Dim listener = listenerProvider.GetListener("test") Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, listener) Using ruleSet1 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) Dim handlerCalled As Boolean = False AddHandler ruleSet1.Target.Value.UpdatedOnDisk, Sub() handlerCalled = True ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() fileChangeService.FireUpdate(includePath) Await listenerProvider.GetWaiter("test").ExpeditedWaitAsync() Assert.True(handlerCalled) End Using End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function SameFileRequestedAfterChange() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set3"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> <Rule Id=""CA2119"" Action=""None"" /> <Rule Id=""CA2104"" Action=""Error"" /> <Rule Id=""CA2105"" Action=""Warning"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim listenerProvider = workspace.ExportProvider.GetExportedValue(Of IAsynchronousOperationListenerProvider) Dim listener = listenerProvider.GetListener("test") Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, listener) Using ruleSet1 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() fileChangeService.FireUpdate(ruleSetPath) Await listenerProvider.GetWaiter("test").ExpeditedWaitAsync() Using ruleSet2 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. generalDiagnosticOption = ruleSet2.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=1, actual:=fileChangeService.WatchedFileCount) Assert.NotSame(ruleSet1.Target, ruleSet2.Target) End Using End Using Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=0, actual:=fileChangeService.WatchedFileCount) End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function SameFileRequestedMultipleTimes() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set3"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> <Rule Id=""CA2119"" Action=""None"" /> <Rule Id=""CA2104"" Action=""Error"" /> <Rule Id=""CA2105"" Action=""Warning"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) Using ruleSet1 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) ' Signing up for file change notifications is lazy, so read the rule set to force it. Dim generalDiagnosticOption = ruleSet1.Target.Value.GetGeneralDiagnosticOption() Using ruleSet2 = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=1, actual:=fileChangeService.WatchedFileCount) Assert.Same(ruleSet1.Target, ruleSet2.Target) End Using End Using Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=0, actual:=fileChangeService.WatchedFileCount) End Using End Function <WpfFact, Trait(Traits.Feature, Traits.Features.Diagnostics)> Public Async Function FileWithError() As Task Dim ruleSetSource = "<?xml version=""1.0"" encoding=""utf-8""?> <RuleSet Name=""New Rule Set3"" Description=""Test"" ToolsVersion=""12.0""> <Rules AnalyzerId=""Microsoft.Analyzers.ManagedCodeAnalysis"" RuleNamespace=""Microsoft.Rules.Managed""> <Rule Id=""CA2100"" Action=""Warning"" /> <Rule Id=""CA2111"" Action=""Warning"" /> <Rule Id=""CA2119"" Action=""None"" /> <Rule Id=""CA2104"" Action=""Error"" /> <Rule Id=""CA2105"" Action=""BlahBlahBlah"" /> </Rules> </RuleSet>" Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") File.WriteAllText(ruleSetPath, ruleSetSource) Using workspace = New TestWorkspace() Dim fileChangeService = New MockVsFileChangeEx Dim fileChangeWatcher = New FileChangeWatcher(workspace.GetService(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService)) Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) Using ruleSet = ruleSetManager.GetOrCreateRuleSet(ruleSetPath) Dim generalDiagnosticOption = ruleSet.Target.Value.GetGeneralDiagnosticOption() Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() Assert.Equal(expected:=ReportDiagnostic.Default, actual:=generalDiagnosticOption) Dim exception = ruleSet.Target.Value.GetException() Assert.NotNull(exception) End Using End Using End Function End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml
<options:AbstractOptionPageControl x:Class="Microsoft.VisualStudio.LanguageServices.CSharp.Options.AdvancedOptionPageControl" x:ClassModifier="internal" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:options="clr-namespace:Microsoft.VisualStudio.LanguageServices.Implementation.Options;assembly=Microsoft.VisualStudio.LanguageServices.Implementation" xmlns:local="clr-namespace:Microsoft.VisualStudio.LanguageServices.CSharp.Options" mc:Ignorable="d" d:DesignHeight="500" d:DesignWidth="500"> <ScrollViewer VerticalScrollBarVisibility="Auto"> <!-- We have a Margin here, to get some distance to the Scrollbar See: https://github.com/dotnet/roslyn/issues/14979--> <StackPanel Margin="0,0,3,0"> <GroupBox x:Uid="AnalysisGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Analysis}"> <StackPanel> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_analysis_scope}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_active_file" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Active_File}"/> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_open_files" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Open_Files_And_Projects}"/> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_full_solution" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Full_Solution}"/> </StackPanel> <CheckBox x:Name="Enable_navigation_to_decompiled_sources" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_navigation_to_decompiled_sources}" /> <CheckBox x:Name="Enable_pull_diagnostics_experimental_requires_restart" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_pull_diagnostics_experimental_requires_restart}" Checked="Enable_pull_diagnostics_experimental_requires_restart_CheckedChanged" Unchecked="Enable_pull_diagnostics_experimental_requires_restart_CheckedChanged" Indeterminate="Enable_pull_diagnostics_experimental_requires_restart_CheckedChanged" IsThreeState="True"/> <CheckBox x:Name="Enable_Razor_pull_diagnostics_experimental_requires_restart" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_Razor_pull_diagnostics_experimental_requires_restart}" Checked="Enable_Razor_pull_diagnostics_experimental_requires_restart_Checked" Unchecked="Enable_Razor_pull_diagnostics_experimental_requires_restart_Unchecked"/> <CheckBox x:Name="Run_code_analysis_in_separate_process" Content="{x:Static local:AdvancedOptionPageStrings.Option_run_code_analysis_in_separate_process}" /> <CheckBox x:Name="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_Remove_Unused_References_command_in_Solution_Explorer_experimental}" /> <CheckBox x:Name="Enable_file_logging_for_diagnostics" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_file_logging_for_diagnostics}" /> <CheckBox x:Name="Skip_analyzers_for_implicitly_triggered_builds" Content="{x:Static local:AdvancedOptionPageStrings.Option_Skip_analyzers_for_implicitly_triggered_builds}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="UsingDirectivesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Using_Directives}"> <StackPanel> <CheckBox x:Name="PlaceSystemNamespaceFirst" x:Uid="SortUsings_PlaceSystemFirst" Content="{x:Static local:AdvancedOptionPageStrings.Option_PlaceSystemNamespaceFirst}" /> <CheckBox x:Name="SeparateImportGroups" x:Uid="SeparateImportGroups" Content="{x:Static local:AdvancedOptionPageStrings.Option_SeparateImportGroups}" /> <CheckBox x:Name="SuggestForTypesInReferenceAssemblies" x:Uid="AddImport_SuggestForTypesInReferenceAssemblies" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suggest_usings_for_types_in_reference_assemblies}" /> <CheckBox x:Name="SuggestForTypesInNuGetPackages" x:Uid="AddImport_SuggestForTypesInNuGetPackages" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suggest_usings_for_types_in_NuGet_packages}" /> <CheckBox x:Name="AddUsingsOnPaste" x:Uid="AddMissingUsingDirectivesOnPaste" Content="{x:Static local:AdvancedOptionPageStrings.Option_Add_missing_using_directives_on_paste}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="QuickActionsBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Quick_Actions}"> <StackPanel> <CheckBox x:Name="ComputeQuickActionsAsynchronouslyExperimental" Content="{x:Static local:AdvancedOptionPageStrings.Option_Compute_Quick_Actions_asynchronously_experimental}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="HighlightingGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Highlighting}"> <StackPanel> <CheckBox x:Name="EnableHighlightReferences" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableHighlightReferences}" /> <CheckBox x:Name="EnableHighlightKeywords" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableHighlightKeywords}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="OutliningGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Outlining}"> <StackPanel> <CheckBox x:Name="EnterOutliningMode" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnterOutliningMode}" /> <CheckBox x:Name="DisplayLineSeparators" Content="{x:Static local:AdvancedOptionPageStrings.Option_DisplayLineSeparators}" /> <CheckBox x:Name="Show_outlining_for_declaration_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_declaration_level_constructs}" /> <CheckBox x:Name="Show_outlining_for_code_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_code_level_constructs}" /> <CheckBox x:Name="Show_outlining_for_comments_and_preprocessor_regions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_comments_and_preprocessor_regions}" /> <CheckBox x:Name="Collapse_regions_when_collapsing_to_definitions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Collapse_regions_when_collapsing_to_definitions}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="FadingGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Fading}"> <StackPanel> <CheckBox x:Name="Fade_out_unused_usings" Content="{x:Static local:AdvancedOptionPageStrings.Option_Fade_out_unused_usings}" /> <CheckBox x:Name="Fade_out_unreachable_code" Content="{x:Static local:AdvancedOptionPageStrings.Option_Fade_out_unreachable_code}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="BlockStructureGuidesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Block_Structure_Guides}"> <StackPanel> <CheckBox x:Name="Show_guides_for_declaration_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_guides_for_declaration_level_constructs}" /> <CheckBox x:Name="Show_guides_for_code_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_guides_for_code_level_constructs}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="CommentsGuidesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Comments}"> <StackPanel> <CheckBox x:Name="GenerateXmlDocCommentsForTripleSlash" Content="{x:Static local:AdvancedOptionPageStrings.Option_GenerateXmlDocCommentsForTripleSlash}" /> <CheckBox x:Name="InsertSlashSlashAtTheStartOfNewLinesWhenWritingSingleLineComments" Content="{x:Static local:AdvancedOptionPageStrings.Option_InsertSlashSlashAtTheStartOfNewLinesWhenWritingSingleLineComments}"/> <CheckBox x:Name="InsertAsteriskAtTheStartOfNewLinesWhenWritingBlockComments" Content="{x:Static local:AdvancedOptionPageStrings.Option_InsertAsteriskAtTheStartOfNewLinesWhenWritingBlockComments}"/> </StackPanel> </GroupBox> <GroupBox x:Uid="EditorHelpGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_EditorHelp}"> <StackPanel> <CheckBox x:Name="ShowRemarksInQuickInfo" Content="{x:Static local:AdvancedOptionPageStrings.Option_ShowRemarksInQuickInfo}" /> <CheckBox x:Name="RenameTrackingPreview" Content="{x:Static local:AdvancedOptionPageStrings.Option_RenameTrackingPreview}" /> <CheckBox x:Name="Split_string_literals_on_enter" Content="{x:Static local:AdvancedOptionPageStrings.Option_Split_string_literals_on_enter}" /> <CheckBox x:Name="Report_invalid_placeholders_in_string_dot_format_calls" Content="{x:Static local:AdvancedOptionPageStrings.Option_Report_invalid_placeholders_in_string_dot_format_calls}" /> <CheckBox x:Name="Underline_reassigned_variables" Content="{x:Static local:AdvancedOptionPageStrings.Option_Underline_reassigned_variables}" /> <CheckBox x:Name="Enable_all_features_in_opened_files_from_source_generators" Content="{x:Static local:AdvancedOptionPageStrings.Enable_all_features_in_opened_files_from_source_generators_experimental}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="RegularExpressionsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Regular_Expressions}"> <StackPanel> <CheckBox x:Name="Colorize_regular_expressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Colorize_regular_expressions}" /> <CheckBox x:Name="Report_invalid_regular_expressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Report_invalid_regular_expressions}" /> <CheckBox x:Name="Highlight_related_components_under_cursor" Content="{x:Static local:AdvancedOptionPageStrings.Option_Highlight_related_components_under_cursor}" /> <CheckBox x:Name="Show_completion_list" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_completion_list}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="ClassificationsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Editor_Color_Scheme}"> <StackPanel> <ComboBox x:Name="Editor_color_scheme" IsEditable="false" AutomationProperties.Name="{x:Static local:AdvancedOptionPageStrings.Edit_color_scheme}"> <ComboBoxItem Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_Scheme_VisualStudio2019}" Tag="{x:Static local:AdvancedOptionPageStrings.Color_Scheme_VisualStudio2019_Tag}" /> <ComboBoxItem Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_Scheme_VisualStudio2017}" Tag="{x:Static local:AdvancedOptionPageStrings.Color_Scheme_VisualStudio2017_Tag}" /> </ComboBox> <TextBlock x:Name="Customized_Theme_Warning" TextWrapping="WrapWithOverflow" Margin="0, 0, 0, 8" Text="{x:Static local:AdvancedOptionPageStrings.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}"/> <TextBlock x:Name="Custom_VS_Theme_Warning" TextWrapping="WrapWithOverflow" Margin="0, 0, 0, 8" Text="{x:Static local:AdvancedOptionPageStrings.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}"/> </StackPanel> </GroupBox> <GroupBox x:Uid="ExtractMethodGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_ExtractMethod}"> <StackPanel> <CheckBox x:Name="DontPutOutOrRefOnStruct" Content="{x:Static local:AdvancedOptionPageStrings.Option_DontPutOutOrRefOnStruct}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="Implement_Interface_or_Abstract_Class_GroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Implement_Interface_or_Abstract_Class}"> <StackPanel Margin="0, -5, 0, 5"> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_When_inserting_properties_events_and_methods_place_them}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Insertion_behavior" x:Name="with_other_members_of_the_same_kind" Content="{x:Static local:AdvancedOptionPageStrings.Option_with_other_members_of_the_same_kind}"/> <RadioButton GroupName="Insertion_behavior" x:Name="at_the_end" Content="{x:Static local:AdvancedOptionPageStrings.Option_at_the_end}"/> </StackPanel> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_When_generating_properties}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Property_generation_behavior" x:Name="prefer_throwing_properties" Content="{x:Static local:AdvancedOptionPageStrings.Option_prefer_throwing_properties}"/> <RadioButton GroupName="Property_generation_behavior" x:Name="prefer_auto_properties" Content="{x:Static local:AdvancedOptionPageStrings.Option_prefer_auto_properties}"/> </StackPanel> </StackPanel> </GroupBox> <GroupBox x:Uid="InlineHintsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Inline_Hints_experimental}"> <StackPanel> <CheckBox x:Name="DisplayAllHintsWhilePressingAltF1" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_all_hints_while_pressing_Alt_F1}" /> <CheckBox x:Name="ColorHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_hints}" /> <CheckBox x:Name="DisplayInlineParameterNameHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_parameter_name_hints}" Checked="DisplayInlineParameterNameHints_Checked" Unchecked="DisplayInlineParameterNameHints_Unchecked"/> <StackPanel Margin="15, 0, 0, 0"> <CheckBox x:Uid="ShowHintsForLiterals" x:Name="ShowHintsForLiterals" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_literals}" /> <CheckBox x:Uid="ShowHintsForNewExpressions" x:Name="ShowHintsForNewExpressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_new_expressions}" /> <CheckBox x:Uid="ShowHintsForEverythingElse" x:Name="ShowHintsForEverythingElse" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_everything_else}" /> <CheckBox x:Uid="ShowHintsForIndexers" x:Name="ShowHintsForIndexers" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_indexers}" /> <CheckBox x:Uid="SuppressHintsWhenParameterNameMatchesTheMethodsIntent" x:Name="SuppressHintsWhenParameterNameMatchesTheMethodsIntent" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suppress_hints_when_parameter_name_matches_the_method_s_intent}" /> <CheckBox x:Uid="SuppressHintsWhenParameterNamesDifferOnlyBySuffix" x:Name="SuppressHintsWhenParameterNamesDifferOnlyBySuffix" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suppress_hints_when_parameter_names_differ_only_by_suffix}" /> </StackPanel> <CheckBox x:Name="DisplayInlineTypeHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_type_hints}" Checked="DisplayInlineTypeHints_Checked" Unchecked="DisplayInlineTypeHints_Unchecked"/> <StackPanel Margin="15, 0, 0, 0"> <CheckBox x:Uid="ShowHintsForVariablesWithInferredTypes" x:Name="ShowHintsForVariablesWithInferredTypes" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_variables_with_inferred_types}" /> <CheckBox x:Uid="ShowHintsForLambdaParameterTypes" x:Name="ShowHintsForLambdaParameterTypes" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_lambda_parameter_types}" /> <CheckBox x:Uid="ShowHintsForImplicitObjectCreation" x:Name="ShowHintsForImplicitObjectCreation" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_implicit_object_creation}" /> </StackPanel> </StackPanel> </GroupBox> <GroupBox x:Uid="InheritanceMarginGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Inheritance_Margin_experimental}"> <StackPanel> <CheckBox x:Uid="ShowInheritanceMargin" x:Name="ShowInheritanceMargin" Content="{x:Static local:AdvancedOptionPageStrings.Show_inheritance_margin}"/> </StackPanel> </GroupBox> </StackPanel> </ScrollViewer> </options:AbstractOptionPageControl>
<options:AbstractOptionPageControl x:Class="Microsoft.VisualStudio.LanguageServices.CSharp.Options.AdvancedOptionPageControl" x:ClassModifier="internal" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:options="clr-namespace:Microsoft.VisualStudio.LanguageServices.Implementation.Options;assembly=Microsoft.VisualStudio.LanguageServices.Implementation" xmlns:local="clr-namespace:Microsoft.VisualStudio.LanguageServices.CSharp.Options" mc:Ignorable="d" d:DesignHeight="500" d:DesignWidth="500"> <ScrollViewer VerticalScrollBarVisibility="Auto"> <!-- We have a Margin here, to get some distance to the Scrollbar See: https://github.com/dotnet/roslyn/issues/14979--> <StackPanel Margin="0,0,3,0"> <GroupBox x:Uid="AnalysisGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Analysis}"> <StackPanel> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_analysis_scope}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_active_file" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Active_File}"/> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_open_files" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Open_Files_And_Projects}"/> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_full_solution" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Full_Solution}"/> </StackPanel> <CheckBox x:Name="Enable_navigation_to_decompiled_sources" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_navigation_to_decompiled_sources}" /> <CheckBox x:Name="Enable_pull_diagnostics_experimental_requires_restart" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_pull_diagnostics_experimental_requires_restart}" Checked="Enable_pull_diagnostics_experimental_requires_restart_CheckedChanged" Unchecked="Enable_pull_diagnostics_experimental_requires_restart_CheckedChanged" Indeterminate="Enable_pull_diagnostics_experimental_requires_restart_CheckedChanged" IsThreeState="True"/> <CheckBox x:Name="Enable_Razor_pull_diagnostics_experimental_requires_restart" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_Razor_pull_diagnostics_experimental_requires_restart}" Checked="Enable_Razor_pull_diagnostics_experimental_requires_restart_Checked" Unchecked="Enable_Razor_pull_diagnostics_experimental_requires_restart_Unchecked"/> <CheckBox x:Name="Run_code_analysis_in_separate_process" Content="{x:Static local:AdvancedOptionPageStrings.Option_run_code_analysis_in_separate_process}" /> <CheckBox x:Name="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_Remove_Unused_References_command_in_Solution_Explorer_experimental}" /> <CheckBox x:Name="Enable_file_logging_for_diagnostics" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_file_logging_for_diagnostics}" /> <CheckBox x:Name="Skip_analyzers_for_implicitly_triggered_builds" Content="{x:Static local:AdvancedOptionPageStrings.Option_Skip_analyzers_for_implicitly_triggered_builds}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="UsingDirectivesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Using_Directives}"> <StackPanel> <CheckBox x:Name="PlaceSystemNamespaceFirst" x:Uid="SortUsings_PlaceSystemFirst" Content="{x:Static local:AdvancedOptionPageStrings.Option_PlaceSystemNamespaceFirst}" /> <CheckBox x:Name="SeparateImportGroups" x:Uid="SeparateImportGroups" Content="{x:Static local:AdvancedOptionPageStrings.Option_SeparateImportGroups}" /> <CheckBox x:Name="SuggestForTypesInReferenceAssemblies" x:Uid="AddImport_SuggestForTypesInReferenceAssemblies" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suggest_usings_for_types_in_reference_assemblies}" /> <CheckBox x:Name="SuggestForTypesInNuGetPackages" x:Uid="AddImport_SuggestForTypesInNuGetPackages" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suggest_usings_for_types_in_NuGet_packages}" /> <CheckBox x:Name="AddUsingsOnPaste" x:Uid="AddMissingUsingDirectivesOnPaste" Content="{x:Static local:AdvancedOptionPageStrings.Option_Add_missing_using_directives_on_paste}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="QuickActionsBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Quick_Actions}"> <StackPanel> <CheckBox x:Name="ComputeQuickActionsAsynchronouslyExperimental" Content="{x:Static local:AdvancedOptionPageStrings.Option_Compute_Quick_Actions_asynchronously_experimental}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="HighlightingGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Highlighting}"> <StackPanel> <CheckBox x:Name="EnableHighlightReferences" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableHighlightReferences}" /> <CheckBox x:Name="EnableHighlightKeywords" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableHighlightKeywords}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="OutliningGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Outlining}"> <StackPanel> <CheckBox x:Name="EnterOutliningMode" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnterOutliningMode}" /> <CheckBox x:Name="DisplayLineSeparators" Content="{x:Static local:AdvancedOptionPageStrings.Option_DisplayLineSeparators}" /> <CheckBox x:Name="Show_outlining_for_declaration_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_declaration_level_constructs}" /> <CheckBox x:Name="Show_outlining_for_code_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_code_level_constructs}" /> <CheckBox x:Name="Show_outlining_for_comments_and_preprocessor_regions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_comments_and_preprocessor_regions}" /> <CheckBox x:Name="Collapse_regions_when_collapsing_to_definitions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Collapse_regions_when_collapsing_to_definitions}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="FadingGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Fading}"> <StackPanel> <CheckBox x:Name="Fade_out_unused_usings" Content="{x:Static local:AdvancedOptionPageStrings.Option_Fade_out_unused_usings}" /> <CheckBox x:Name="Fade_out_unreachable_code" Content="{x:Static local:AdvancedOptionPageStrings.Option_Fade_out_unreachable_code}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="BlockStructureGuidesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Block_Structure_Guides}"> <StackPanel> <CheckBox x:Name="Show_guides_for_declaration_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_guides_for_declaration_level_constructs}" /> <CheckBox x:Name="Show_guides_for_code_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_guides_for_code_level_constructs}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="CommentsGuidesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Comments}"> <StackPanel> <CheckBox x:Name="GenerateXmlDocCommentsForTripleSlash" Content="{x:Static local:AdvancedOptionPageStrings.Option_GenerateXmlDocCommentsForTripleSlash}" /> <CheckBox x:Name="InsertSlashSlashAtTheStartOfNewLinesWhenWritingSingleLineComments" Content="{x:Static local:AdvancedOptionPageStrings.Option_InsertSlashSlashAtTheStartOfNewLinesWhenWritingSingleLineComments}"/> <CheckBox x:Name="InsertAsteriskAtTheStartOfNewLinesWhenWritingBlockComments" Content="{x:Static local:AdvancedOptionPageStrings.Option_InsertAsteriskAtTheStartOfNewLinesWhenWritingBlockComments}"/> </StackPanel> </GroupBox> <GroupBox x:Uid="EditorHelpGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_EditorHelp}"> <StackPanel> <CheckBox x:Name="ShowRemarksInQuickInfo" Content="{x:Static local:AdvancedOptionPageStrings.Option_ShowRemarksInQuickInfo}" /> <CheckBox x:Name="RenameTrackingPreview" Content="{x:Static local:AdvancedOptionPageStrings.Option_RenameTrackingPreview}" /> <CheckBox x:Name="Split_string_literals_on_enter" Content="{x:Static local:AdvancedOptionPageStrings.Option_Split_string_literals_on_enter}" /> <CheckBox x:Name="Report_invalid_placeholders_in_string_dot_format_calls" Content="{x:Static local:AdvancedOptionPageStrings.Option_Report_invalid_placeholders_in_string_dot_format_calls}" /> <CheckBox x:Name="Underline_reassigned_variables" Content="{x:Static local:AdvancedOptionPageStrings.Option_Underline_reassigned_variables}" /> <CheckBox x:Name="Enable_all_features_in_opened_files_from_source_generators" Content="{x:Static local:AdvancedOptionPageStrings.Enable_all_features_in_opened_files_from_source_generators_experimental}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="RegularExpressionsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Regular_Expressions}"> <StackPanel> <CheckBox x:Name="Colorize_regular_expressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Colorize_regular_expressions}" /> <CheckBox x:Name="Report_invalid_regular_expressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Report_invalid_regular_expressions}" /> <CheckBox x:Name="Highlight_related_components_under_cursor" Content="{x:Static local:AdvancedOptionPageStrings.Option_Highlight_related_components_under_cursor}" /> <CheckBox x:Name="Show_completion_list" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_completion_list}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="ClassificationsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Editor_Color_Scheme}"> <StackPanel> <ComboBox x:Name="Editor_color_scheme" IsEditable="false" AutomationProperties.Name="{x:Static local:AdvancedOptionPageStrings.Edit_color_scheme}"> <ComboBoxItem Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_Scheme_VisualStudio2019}" Tag="{x:Static local:AdvancedOptionPageStrings.Color_Scheme_VisualStudio2019_Tag}" /> <ComboBoxItem Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_Scheme_VisualStudio2017}" Tag="{x:Static local:AdvancedOptionPageStrings.Color_Scheme_VisualStudio2017_Tag}" /> </ComboBox> <TextBlock x:Name="Customized_Theme_Warning" TextWrapping="WrapWithOverflow" Margin="0, 0, 0, 8" Text="{x:Static local:AdvancedOptionPageStrings.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}"/> <TextBlock x:Name="Custom_VS_Theme_Warning" TextWrapping="WrapWithOverflow" Margin="0, 0, 0, 8" Text="{x:Static local:AdvancedOptionPageStrings.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}"/> </StackPanel> </GroupBox> <GroupBox x:Uid="ExtractMethodGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_ExtractMethod}"> <StackPanel> <CheckBox x:Name="DontPutOutOrRefOnStruct" Content="{x:Static local:AdvancedOptionPageStrings.Option_DontPutOutOrRefOnStruct}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="Implement_Interface_or_Abstract_Class_GroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Implement_Interface_or_Abstract_Class}"> <StackPanel Margin="0, -5, 0, 5"> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_When_inserting_properties_events_and_methods_place_them}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Insertion_behavior" x:Name="with_other_members_of_the_same_kind" Content="{x:Static local:AdvancedOptionPageStrings.Option_with_other_members_of_the_same_kind}"/> <RadioButton GroupName="Insertion_behavior" x:Name="at_the_end" Content="{x:Static local:AdvancedOptionPageStrings.Option_at_the_end}"/> </StackPanel> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_When_generating_properties}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Property_generation_behavior" x:Name="prefer_throwing_properties" Content="{x:Static local:AdvancedOptionPageStrings.Option_prefer_throwing_properties}"/> <RadioButton GroupName="Property_generation_behavior" x:Name="prefer_auto_properties" Content="{x:Static local:AdvancedOptionPageStrings.Option_prefer_auto_properties}"/> </StackPanel> </StackPanel> </GroupBox> <GroupBox x:Uid="InlineHintsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Inline_Hints}"> <StackPanel> <CheckBox x:Name="DisplayAllHintsWhilePressingAltF1" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_all_hints_while_pressing_Alt_F1}" /> <CheckBox x:Name="ColorHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_hints}" /> <CheckBox x:Name="DisplayInlineParameterNameHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_parameter_name_hints}" Checked="DisplayInlineParameterNameHints_Checked" Unchecked="DisplayInlineParameterNameHints_Unchecked"/> <StackPanel Margin="15, 0, 0, 0"> <CheckBox x:Uid="ShowHintsForLiterals" x:Name="ShowHintsForLiterals" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_literals}" /> <CheckBox x:Uid="ShowHintsForNewExpressions" x:Name="ShowHintsForNewExpressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_new_expressions}" /> <CheckBox x:Uid="ShowHintsForEverythingElse" x:Name="ShowHintsForEverythingElse" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_everything_else}" /> <CheckBox x:Uid="ShowHintsForIndexers" x:Name="ShowHintsForIndexers" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_indexers}" /> <CheckBox x:Uid="SuppressHintsWhenParameterNameMatchesTheMethodsIntent" x:Name="SuppressHintsWhenParameterNameMatchesTheMethodsIntent" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suppress_hints_when_parameter_name_matches_the_method_s_intent}" /> <CheckBox x:Uid="SuppressHintsWhenParameterNamesDifferOnlyBySuffix" x:Name="SuppressHintsWhenParameterNamesDifferOnlyBySuffix" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suppress_hints_when_parameter_names_differ_only_by_suffix}" /> </StackPanel> <CheckBox x:Name="DisplayInlineTypeHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_type_hints}" Checked="DisplayInlineTypeHints_Checked" Unchecked="DisplayInlineTypeHints_Unchecked"/> <StackPanel Margin="15, 0, 0, 0"> <CheckBox x:Uid="ShowHintsForVariablesWithInferredTypes" x:Name="ShowHintsForVariablesWithInferredTypes" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_variables_with_inferred_types}" /> <CheckBox x:Uid="ShowHintsForLambdaParameterTypes" x:Name="ShowHintsForLambdaParameterTypes" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_lambda_parameter_types}" /> <CheckBox x:Uid="ShowHintsForImplicitObjectCreation" x:Name="ShowHintsForImplicitObjectCreation" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_implicit_object_creation}" /> </StackPanel> </StackPanel> </GroupBox> <GroupBox x:Uid="InheritanceMarginGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Inheritance_Margin_experimental}"> <StackPanel> <CheckBox x:Uid="ShowInheritanceMargin" x:Name="ShowInheritanceMargin" Content="{x:Static local:AdvancedOptionPageStrings.Show_inheritance_margin}"/> </StackPanel> </GroupBox> </StackPanel> </ScrollViewer> </options:AbstractOptionPageControl>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageStrings.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.ColorSchemes; namespace Microsoft.VisualStudio.LanguageServices.CSharp.Options { internal static class AdvancedOptionPageStrings { public static string Option_Analysis => ServicesVSResources.Analysis; public static string Option_Background_analysis_scope => ServicesVSResources.Background_analysis_scope_colon; public static string Option_Background_Analysis_Scope_Active_File => ServicesVSResources.Current_document; public static string Option_Background_Analysis_Scope_Open_Files_And_Projects => ServicesVSResources.Open_documents; public static string Option_Background_Analysis_Scope_Full_Solution => ServicesVSResources.Entire_solution; public static string Option_Enable_navigation_to_decompiled_sources => ServicesVSResources.Enable_navigation_to_decompiled_sources; public static string Option_Enable_pull_diagnostics_experimental_requires_restart => ServicesVSResources.Enable_pull_diagnostics_experimental_requires_restart; public static string Option_Enable_Razor_pull_diagnostics_experimental_requires_restart => ServicesVSResources.Enable_Razor_pull_diagnostics_experimental_requires_restart; public static string Option_run_code_analysis_in_separate_process => ServicesVSResources.Run_code_analysis_in_separate_process_requires_restart; public static string Option_Inline_Hints_experimental => ServicesVSResources.Inline_Hints_experimental; public static string Option_Display_all_hints_while_pressing_Alt_F1 => ServicesVSResources.Display_all_hints_while_pressing_Alt_F1; public static string Option_Color_hints => ServicesVSResources.Color_hints; public static string Option_Display_inline_parameter_name_hints => ServicesVSResources.Display_inline_parameter_name_hints; public static string Option_Show_hints_for_literals => ServicesVSResources.Show_hints_for_literals; public static string Option_Show_hints_for_new_expressions => CSharpVSResources.Show_hints_for_new_expressions; public static string Option_Show_hints_for_everything_else => ServicesVSResources.Show_hints_for_everything_else; public static string Option_Show_hints_for_indexers => ServicesVSResources.Show_hints_for_indexers; public static string Option_Suppress_hints_when_parameter_name_matches_the_method_s_intent => ServicesVSResources.Suppress_hints_when_parameter_name_matches_the_method_s_intent; public static string Option_Suppress_hints_when_parameter_names_differ_only_by_suffix => ServicesVSResources.Suppress_hints_when_parameter_names_differ_only_by_suffix; public static string Option_Display_inline_type_hints => ServicesVSResources.Display_inline_type_hints; public static string Option_Show_hints_for_variables_with_inferred_types => ServicesVSResources.Show_hints_for_variables_with_inferred_types; public static string Option_Show_hints_for_lambda_parameter_types => ServicesVSResources.Show_hints_for_lambda_parameter_types; public static string Option_Show_hints_for_implicit_object_creation => ServicesVSResources.Show_hints_for_implicit_object_creation; public static string Option_RenameTrackingPreview => CSharpVSResources.Show_preview_for_rename_tracking; public static string Option_Split_string_literals_on_enter => CSharpVSResources.Split_string_literals_on_enter; public static string Option_DisplayLineSeparators => CSharpVSResources.Show_procedure_line_separators; public static string Option_Underline_reassigned_variables => ServicesVSResources.Underline_reassigned_variables; public static string Option_DontPutOutOrRefOnStruct => CSharpVSResources.Don_t_put_ref_or_out_on_custom_struct; public static string Option_EditorHelp => CSharpVSResources.Editor_Help; public static string Option_EnableHighlightKeywords { get { return CSharpVSResources.Highlight_related_keywords_under_cursor; } } public static string Option_EnableHighlightReferences { get { return CSharpVSResources.Highlight_references_to_symbol_under_cursor; } } public static string Option_EnterOutliningMode => CSharpVSResources.Enter_outlining_mode_when_files_open; public static string Option_ExtractMethod => CSharpVSResources.Extract_Method; public static string Option_Implement_Interface_or_Abstract_Class => ServicesVSResources.Implement_Interface_or_Abstract_Class; public static string Option_When_inserting_properties_events_and_methods_place_them => ServicesVSResources.When_inserting_properties_events_and_methods_place_them; public static string Option_with_other_members_of_the_same_kind => ServicesVSResources.with_other_members_of_the_same_kind; public static string Option_at_the_end => ServicesVSResources.at_the_end; public static string Option_When_generating_properties => ServicesVSResources.When_generating_properties; public static string Option_prefer_auto_properties => ServicesVSResources.codegen_prefer_auto_properties; public static string Option_prefer_throwing_properties => ServicesVSResources.prefer_throwing_properties; public static string Option_Comments => ServicesVSResources.Comments; public static string Option_GenerateXmlDocCommentsForTripleSlash => CSharpVSResources.Generate_XML_documentation_comments_for; public static string Option_InsertSlashSlashAtTheStartOfNewLinesWhenWritingSingleLineComments => CSharpVSResources.Insert_slash_slash_at_the_start_of_new_lines_when_writing_slash_slash_comments; public static string Option_InsertAsteriskAtTheStartOfNewLinesWhenWritingBlockComments => CSharpVSResources.Insert_at_the_start_of_new_lines_when_writing_comments; public static string Option_ShowRemarksInQuickInfo => CSharpVSResources.Show_remarks_in_Quick_Info; public static string Option_Highlighting { get { return CSharpVSResources.Highlighting; } } public static string Option_OptimizeForSolutionSize { get { return CSharpVSResources.Optimize_for_solution_size; } } public static string Option_OptimizeForSolutionSize_Large => CSharpVSResources.Large; public static string Option_OptimizeForSolutionSize_Regular => CSharpVSResources.Regular; public static string Option_OptimizeForSolutionSize_Small => CSharpVSResources.Small; public static string Option_Quick_Actions => ServicesVSResources.Quick_Actions; public static string Option_Compute_Quick_Actions_asynchronously_experimental => ServicesVSResources.Compute_Quick_Actions_asynchronously_experimental; public static string Option_Outlining => ServicesVSResources.Outlining; public static string Option_Show_outlining_for_declaration_level_constructs => ServicesVSResources.Show_outlining_for_declaration_level_constructs; public static string Option_Show_outlining_for_code_level_constructs => ServicesVSResources.Show_outlining_for_code_level_constructs; public static string Option_Show_outlining_for_comments_and_preprocessor_regions => ServicesVSResources.Show_outlining_for_comments_and_preprocessor_regions; public static string Option_Collapse_regions_when_collapsing_to_definitions => ServicesVSResources.Collapse_regions_when_collapsing_to_definitions; public static string Option_Block_Structure_Guides => ServicesVSResources.Block_Structure_Guides; public static string Option_Show_guides_for_declaration_level_constructs => ServicesVSResources.Show_guides_for_declaration_level_constructs; public static string Option_Show_guides_for_code_level_constructs => ServicesVSResources.Show_guides_for_code_level_constructs; public static string Option_Fading => ServicesVSResources.Fading; public static string Option_Fade_out_unused_usings => CSharpVSResources.Fade_out_unused_usings; public static string Option_Fade_out_unreachable_code => ServicesVSResources.Fade_out_unreachable_code; public static string Option_Performance => CSharpVSResources.Performance; public static string Option_PlaceSystemNamespaceFirst => CSharpVSResources.Place_System_directives_first_when_sorting_usings; public static string Option_SeparateImportGroups => CSharpVSResources.Separate_using_directive_groups; public static string Option_Using_Directives => CSharpVSResources.Using_Directives; public static string Option_Suggest_usings_for_types_in_reference_assemblies => CSharpVSResources.Suggest_usings_for_types_in_dotnet_framework_assemblies; public static string Option_Suggest_usings_for_types_in_NuGet_packages => CSharpVSResources.Suggest_usings_for_types_in_NuGet_packages; public static string Option_Add_missing_using_directives_on_paste => CSharpVSResources.Add_missing_using_directives_on_paste; public static string Option_Report_invalid_placeholders_in_string_dot_format_calls => CSharpVSResources.Report_invalid_placeholders_in_string_dot_format_calls; public static string Option_Regular_Expressions => ServicesVSResources.Regular_Expressions; public static string Option_Colorize_regular_expressions => ServicesVSResources.Colorize_regular_expressions; public static string Option_Report_invalid_regular_expressions => ServicesVSResources.Report_invalid_regular_expressions; public static string Option_Highlight_related_components_under_cursor => ServicesVSResources.Highlight_related_components_under_cursor; public static string Option_Show_completion_list => ServicesVSResources.Show_completion_list; public static string Option_Editor_Color_Scheme => ServicesVSResources.Editor_Color_Scheme; public static string 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 => ServicesVSResources.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; public static string 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 => ServicesVSResources.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; public static string Edit_color_scheme => ServicesVSResources.Editor_Color_Scheme; public static string Option_Color_Scheme_VisualStudio2019 => ServicesVSResources.Visual_Studio_2019; public static string Option_Color_Scheme_VisualStudio2017 => ServicesVSResources.Visual_Studio_2017; public static SchemeName Color_Scheme_VisualStudio2019_Tag => SchemeName.VisualStudio2019; public static SchemeName Color_Scheme_VisualStudio2017_Tag => SchemeName.VisualStudio2017; public static string Option_Show_Remove_Unused_References_command_in_Solution_Explorer_experimental => ServicesVSResources.Show_Remove_Unused_References_command_in_Solution_Explorer_experimental; public static string Enable_all_features_in_opened_files_from_source_generators_experimental => ServicesVSResources.Enable_all_features_in_opened_files_from_source_generators_experimental; public static string Option_Enable_file_logging_for_diagnostics => ServicesVSResources.Enable_file_logging_for_diagnostics; public static string Option_Skip_analyzers_for_implicitly_triggered_builds => ServicesVSResources.Skip_analyzers_for_implicitly_triggered_builds; public static string Show_inheritance_margin => ServicesVSResources.Show_inheritance_margin; public static string Inheritance_Margin_experimental => ServicesVSResources.Inheritance_Margin_experimental; } }
// Licensed to the .NET Foundation under one or more 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.ColorSchemes; namespace Microsoft.VisualStudio.LanguageServices.CSharp.Options { internal static class AdvancedOptionPageStrings { public static string Option_Analysis => ServicesVSResources.Analysis; public static string Option_Background_analysis_scope => ServicesVSResources.Background_analysis_scope_colon; public static string Option_Background_Analysis_Scope_Active_File => ServicesVSResources.Current_document; public static string Option_Background_Analysis_Scope_Open_Files_And_Projects => ServicesVSResources.Open_documents; public static string Option_Background_Analysis_Scope_Full_Solution => ServicesVSResources.Entire_solution; public static string Option_Enable_navigation_to_decompiled_sources => ServicesVSResources.Enable_navigation_to_decompiled_sources; public static string Option_Enable_pull_diagnostics_experimental_requires_restart => ServicesVSResources.Enable_pull_diagnostics_experimental_requires_restart; public static string Option_Enable_Razor_pull_diagnostics_experimental_requires_restart => ServicesVSResources.Enable_Razor_pull_diagnostics_experimental_requires_restart; public static string Option_run_code_analysis_in_separate_process => ServicesVSResources.Run_code_analysis_in_separate_process_requires_restart; public static string Option_Inline_Hints => ServicesVSResources.Inline_Hints; public static string Option_Display_all_hints_while_pressing_Alt_F1 => ServicesVSResources.Display_all_hints_while_pressing_Alt_F1; public static string Option_Color_hints => ServicesVSResources.Color_hints; public static string Option_Display_inline_parameter_name_hints => ServicesVSResources.Display_inline_parameter_name_hints; public static string Option_Show_hints_for_literals => ServicesVSResources.Show_hints_for_literals; public static string Option_Show_hints_for_new_expressions => CSharpVSResources.Show_hints_for_new_expressions; public static string Option_Show_hints_for_everything_else => ServicesVSResources.Show_hints_for_everything_else; public static string Option_Show_hints_for_indexers => ServicesVSResources.Show_hints_for_indexers; public static string Option_Suppress_hints_when_parameter_name_matches_the_method_s_intent => ServicesVSResources.Suppress_hints_when_parameter_name_matches_the_method_s_intent; public static string Option_Suppress_hints_when_parameter_names_differ_only_by_suffix => ServicesVSResources.Suppress_hints_when_parameter_names_differ_only_by_suffix; public static string Option_Display_inline_type_hints => ServicesVSResources.Display_inline_type_hints; public static string Option_Show_hints_for_variables_with_inferred_types => ServicesVSResources.Show_hints_for_variables_with_inferred_types; public static string Option_Show_hints_for_lambda_parameter_types => ServicesVSResources.Show_hints_for_lambda_parameter_types; public static string Option_Show_hints_for_implicit_object_creation => ServicesVSResources.Show_hints_for_implicit_object_creation; public static string Option_RenameTrackingPreview => CSharpVSResources.Show_preview_for_rename_tracking; public static string Option_Split_string_literals_on_enter => CSharpVSResources.Split_string_literals_on_enter; public static string Option_DisplayLineSeparators => CSharpVSResources.Show_procedure_line_separators; public static string Option_Underline_reassigned_variables => ServicesVSResources.Underline_reassigned_variables; public static string Option_DontPutOutOrRefOnStruct => CSharpVSResources.Don_t_put_ref_or_out_on_custom_struct; public static string Option_EditorHelp => CSharpVSResources.Editor_Help; public static string Option_EnableHighlightKeywords { get { return CSharpVSResources.Highlight_related_keywords_under_cursor; } } public static string Option_EnableHighlightReferences { get { return CSharpVSResources.Highlight_references_to_symbol_under_cursor; } } public static string Option_EnterOutliningMode => CSharpVSResources.Enter_outlining_mode_when_files_open; public static string Option_ExtractMethod => CSharpVSResources.Extract_Method; public static string Option_Implement_Interface_or_Abstract_Class => ServicesVSResources.Implement_Interface_or_Abstract_Class; public static string Option_When_inserting_properties_events_and_methods_place_them => ServicesVSResources.When_inserting_properties_events_and_methods_place_them; public static string Option_with_other_members_of_the_same_kind => ServicesVSResources.with_other_members_of_the_same_kind; public static string Option_at_the_end => ServicesVSResources.at_the_end; public static string Option_When_generating_properties => ServicesVSResources.When_generating_properties; public static string Option_prefer_auto_properties => ServicesVSResources.codegen_prefer_auto_properties; public static string Option_prefer_throwing_properties => ServicesVSResources.prefer_throwing_properties; public static string Option_Comments => ServicesVSResources.Comments; public static string Option_GenerateXmlDocCommentsForTripleSlash => CSharpVSResources.Generate_XML_documentation_comments_for; public static string Option_InsertSlashSlashAtTheStartOfNewLinesWhenWritingSingleLineComments => CSharpVSResources.Insert_slash_slash_at_the_start_of_new_lines_when_writing_slash_slash_comments; public static string Option_InsertAsteriskAtTheStartOfNewLinesWhenWritingBlockComments => CSharpVSResources.Insert_at_the_start_of_new_lines_when_writing_comments; public static string Option_ShowRemarksInQuickInfo => CSharpVSResources.Show_remarks_in_Quick_Info; public static string Option_Highlighting { get { return CSharpVSResources.Highlighting; } } public static string Option_OptimizeForSolutionSize { get { return CSharpVSResources.Optimize_for_solution_size; } } public static string Option_OptimizeForSolutionSize_Large => CSharpVSResources.Large; public static string Option_OptimizeForSolutionSize_Regular => CSharpVSResources.Regular; public static string Option_OptimizeForSolutionSize_Small => CSharpVSResources.Small; public static string Option_Quick_Actions => ServicesVSResources.Quick_Actions; public static string Option_Compute_Quick_Actions_asynchronously_experimental => ServicesVSResources.Compute_Quick_Actions_asynchronously_experimental; public static string Option_Outlining => ServicesVSResources.Outlining; public static string Option_Show_outlining_for_declaration_level_constructs => ServicesVSResources.Show_outlining_for_declaration_level_constructs; public static string Option_Show_outlining_for_code_level_constructs => ServicesVSResources.Show_outlining_for_code_level_constructs; public static string Option_Show_outlining_for_comments_and_preprocessor_regions => ServicesVSResources.Show_outlining_for_comments_and_preprocessor_regions; public static string Option_Collapse_regions_when_collapsing_to_definitions => ServicesVSResources.Collapse_regions_when_collapsing_to_definitions; public static string Option_Block_Structure_Guides => ServicesVSResources.Block_Structure_Guides; public static string Option_Show_guides_for_declaration_level_constructs => ServicesVSResources.Show_guides_for_declaration_level_constructs; public static string Option_Show_guides_for_code_level_constructs => ServicesVSResources.Show_guides_for_code_level_constructs; public static string Option_Fading => ServicesVSResources.Fading; public static string Option_Fade_out_unused_usings => CSharpVSResources.Fade_out_unused_usings; public static string Option_Fade_out_unreachable_code => ServicesVSResources.Fade_out_unreachable_code; public static string Option_Performance => CSharpVSResources.Performance; public static string Option_PlaceSystemNamespaceFirst => CSharpVSResources.Place_System_directives_first_when_sorting_usings; public static string Option_SeparateImportGroups => CSharpVSResources.Separate_using_directive_groups; public static string Option_Using_Directives => CSharpVSResources.Using_Directives; public static string Option_Suggest_usings_for_types_in_reference_assemblies => CSharpVSResources.Suggest_usings_for_types_in_dotnet_framework_assemblies; public static string Option_Suggest_usings_for_types_in_NuGet_packages => CSharpVSResources.Suggest_usings_for_types_in_NuGet_packages; public static string Option_Add_missing_using_directives_on_paste => CSharpVSResources.Add_missing_using_directives_on_paste; public static string Option_Report_invalid_placeholders_in_string_dot_format_calls => CSharpVSResources.Report_invalid_placeholders_in_string_dot_format_calls; public static string Option_Regular_Expressions => ServicesVSResources.Regular_Expressions; public static string Option_Colorize_regular_expressions => ServicesVSResources.Colorize_regular_expressions; public static string Option_Report_invalid_regular_expressions => ServicesVSResources.Report_invalid_regular_expressions; public static string Option_Highlight_related_components_under_cursor => ServicesVSResources.Highlight_related_components_under_cursor; public static string Option_Show_completion_list => ServicesVSResources.Show_completion_list; public static string Option_Editor_Color_Scheme => ServicesVSResources.Editor_Color_Scheme; public static string 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 => ServicesVSResources.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; public static string 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 => ServicesVSResources.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; public static string Edit_color_scheme => ServicesVSResources.Editor_Color_Scheme; public static string Option_Color_Scheme_VisualStudio2019 => ServicesVSResources.Visual_Studio_2019; public static string Option_Color_Scheme_VisualStudio2017 => ServicesVSResources.Visual_Studio_2017; public static SchemeName Color_Scheme_VisualStudio2019_Tag => SchemeName.VisualStudio2019; public static SchemeName Color_Scheme_VisualStudio2017_Tag => SchemeName.VisualStudio2017; public static string Option_Show_Remove_Unused_References_command_in_Solution_Explorer_experimental => ServicesVSResources.Show_Remove_Unused_References_command_in_Solution_Explorer_experimental; public static string Enable_all_features_in_opened_files_from_source_generators_experimental => ServicesVSResources.Enable_all_features_in_opened_files_from_source_generators_experimental; public static string Option_Enable_file_logging_for_diagnostics => ServicesVSResources.Enable_file_logging_for_diagnostics; public static string Option_Skip_analyzers_for_implicitly_triggered_builds => ServicesVSResources.Skip_analyzers_for_implicitly_triggered_builds; public static string Show_inheritance_margin => ServicesVSResources.Show_inheritance_margin; public static string Inheritance_Margin_experimental => ServicesVSResources.Inheritance_Margin_experimental; } }
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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_experimental" xml:space="preserve"> <value>Inline Hints (experimental)</value> </data> <data name="Show_hints_for_everything_else" xml:space="preserve"> <value>Show hints for everything else</value> </data> <data name="Show_hints_for_literals" xml:space="preserve"> <value>Show hints for literals</value> </data> <data name="Suppress_hints_when_parameter_name_matches_the_method_s_intent" xml:space="preserve"> <value>Suppress hints when parameter name matches the method's intent</value> </data> <data name="Suppress_hints_when_parameter_names_differ_only_by_suffix" xml:space="preserve"> <value>Suppress hints when parameter names differ only by suffix</value> </data> <data name="Display_inline_type_hints" xml:space="preserve"> <value>Display inline type hints</value> </data> <data name="Show_hints_for_lambda_parameter_types" xml:space="preserve"> <value>Show hints for lambda parameter types</value> </data> <data name="Show_hints_for_implicit_object_creation" xml:space="preserve"> <value>Show hints for implicit object creation</value> </data> <data name="Show_hints_for_variables_with_inferred_types" xml:space="preserve"> <value>Show hints for variables with inferred types</value> </data> <data name="Color_hints" xml:space="preserve"> <value>Color hints</value> </data> <data name="Display_all_hints_while_pressing_Alt_F1" xml:space="preserve"> <value>Display all hints while pressing Alt+F1</value> </data> <data name="Enable_pull_diagnostics_experimental_requires_restart" xml:space="preserve"> <value>Enable 'pull' diagnostics (experimental, requires restart)</value> </data> <data name="Enable_Razor_pull_diagnostics_experimental_requires_restart" xml:space="preserve"> <value>Enable Razor 'pull' diagnostics (experimental, requires restart)</value> </data> <data name="CSharp_Visual_Basic_Diagnostics_Language_Client" xml:space="preserve"> <value>C#/Visual Basic Diagnostics Language Client</value> </data> <data name="New_Type_Name_colon" xml:space="preserve"> <value>New Type Name:</value> </data> <data name="Format_document" xml:space="preserve"> <value>Format document</value> </data> <data name="New_line_preferences_experimental_colon" xml:space="preserve"> <value>New line preferences (experimental):</value> </data> <data name="Require_colon" xml:space="preserve"> <value>Require:</value> </data> <data name="Allow_multiple_blank_lines" xml:space="preserve"> <value>Allow multiple blank lines</value> </data> <data name="Allow_statement_immediately_after_block" xml:space="preserve"> <value>Allow statement immediately after block</value> </data> <data name="Symbols_without_references" xml:space="preserve"> <value>Symbols without references</value> </data> <data name="Tab_twice_to_insert_arguments" xml:space="preserve"> <value>Tab twice to insert arguments (experimental)</value> </data> <data name="Apply" xml:space="preserve"> <value>Apply</value> </data> <data name="Remove_All" xml:space="preserve"> <value>Remove All</value> </data> <data name="Action" xml:space="preserve"> <value>Action</value> <comment>Action to perform on an unused reference, such as remove or keep</comment> </data> <data name="Assemblies" xml:space="preserve"> <value>Assemblies</value> </data> <data name="Choose_which_action_you_would_like_to_perform_on_the_unused_references" xml:space="preserve"> <value>Choose which action you would like to perform on the unused references.</value> </data> <data name="Keep" xml:space="preserve"> <value>Keep</value> </data> <data name="Packages" xml:space="preserve"> <value>Packages</value> </data> <data name="Projects" xml:space="preserve"> <value>Projects</value> </data> <data name="Reference" xml:space="preserve"> <value>Reference</value> </data> <data name="Enable_all_features_in_opened_files_from_source_generators_experimental" xml:space="preserve"> <value>Enable all features in opened files from source generators (experimental)</value> </data> <data name="Remove_Unused_References" xml:space="preserve"> <value>Remove Unused References</value> </data> <data name="Analyzing_project_references" xml:space="preserve"> <value>Analyzing project references...</value> </data> <data name="Updating_project_references" xml:space="preserve"> <value>Updating project references...</value> </data> <data name="No_unused_references_were_found" xml:space="preserve"> <value>No unused references were found.</value> </data> <data name="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental" xml:space="preserve"> <value>Show "Remove Unused References" command in Solution Explorer (experimental)</value> </data> <data name="Enable_file_logging_for_diagnostics" xml:space="preserve"> <value>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</value> </data> <data name="Skip_analyzers_for_implicitly_triggered_builds" xml:space="preserve"> <value>Skip analyzers for implicitly triggered builds</value> </data> <data name="This_action_cannot_be_undone_Do_you_wish_to_continue" xml:space="preserve"> <value>This action cannot be undone. Do you wish to continue?</value> </data> <data name="Show_inheritance_margin" xml:space="preserve"> <value>Show inheritance margin</value> </data> <data name="Inheritance_Margin_experimental" xml:space="preserve"> <value>Inheritance Margin (experimental)</value> </data> <data name="Analyzers" xml:space="preserve"> <value>Analyzers</value> </data> <data name="Carriage_Return_Newline_rn" xml:space="preserve"> <value>Carriage Return + Newline (\r\n)</value> </data> <data name="Carriage_Return_r" xml:space="preserve"> <value>Carriage Return (\r)</value> </data> <data name="Category" xml:space="preserve"> <value>Category</value> </data> <data name="Code_Style" xml:space="preserve"> <value>Code Style</value> </data> <data name="Disabled" xml:space="preserve"> <value>Disabled</value> </data> <data name="Enabled" xml:space="preserve"> <value>Enabled</value> </data> <data name="Error" xml:space="preserve"> <value>Error</value> </data> <data name="Whitespace" xml:space="preserve"> <value>Whitespace</value> </data> <data name="Id" xml:space="preserve"> <value>Id</value> </data> <data name="Newline_n" xml:space="preserve"> <value>Newline (\\n)</value> </data> <data name="Refactoring_Only" xml:space="preserve"> <value>Refactoring Only</value> </data> <data name="Suggestion" xml:space="preserve"> <value>Suggestion</value> </data> <data name="Title" xml:space="preserve"> <value>Title</value> </data> <data name="Value" xml:space="preserve"> <value>Value</value> </data> <data name="Warning" xml:space="preserve"> <value>Warning</value> </data> <data name="Search_Settings" xml:space="preserve"> <value>Search Settings</value> </data> <data name="Multiple_members_are_inherited" xml:space="preserve"> <value>Multiple members are inherited</value> </data> <data name="_0_is_inherited" xml:space="preserve"> <value>'{0}' is inherited</value> </data> <data name="Navigate_to_0" xml:space="preserve"> <value>Navigate to '{0}'</value> </data> <data name="Multiple_members_are_inherited_on_line_0" xml:space="preserve"> <value>Multiple members are inherited on line {0}</value> <comment>Line number info is needed for accessibility purpose.</comment> </data> <data name="Implemented_members" xml:space="preserve"> <value>Implemented members</value> </data> <data name="Implementing_members" xml:space="preserve"> <value>Implementing members</value> </data> <data name="Overriding_members" xml:space="preserve"> <value>Overriding members</value> </data> <data name="Overridden_members" xml:space="preserve"> <value>Overridden members</value> </data> <data name="Value_Tracking" xml:space="preserve"> <value>Value Tracking</value> <comment>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</comment> </data> <data name="Calculating" xml:space="preserve"> <value>Calculating...</value> <comment>Used in UI to represent progress in the context of loading items. </comment> </data> <data name="Derived_types" xml:space="preserve"> <value>Derived types</value> </data> <data name="Implemented_interfaces" xml:space="preserve"> <value>Implemented interfaces</value> </data> <data name="Implementing_types" xml:space="preserve"> <value>Implementing types</value> </data> <data name="Inherited_interfaces" xml:space="preserve"> <value>Inherited interfaces</value> </data> <data name="Select_an_appropriate_symbol_to_start_value_tracking" xml:space="preserve"> <value>Select an appropriate symbol to start value tracking</value> </data> <data name="Namespace_declarations" xml:space="preserve"> <value>Namespace declarations</value> </data> <data name="Error_updating_suppressions_0" xml:space="preserve"> <value>Error updating suppressions: {0}</value> </data> <data name="Underline_reassigned_variables" xml:space="preserve"> <value>Underline reassigned variables</value> </data> <data name="Analyzer_Defaults" xml:space="preserve"> <value>Analyzer Defaults</value> </data> <data name="Location" xml:space="preserve"> <value>Location</value> </data> <data name="Visual_Studio_Settings" xml:space="preserve"> <value>Visual Studio Settings</value> </data> <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="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_experimental" xml:space="preserve"> <value>Inheritance Margin (experimental)</value> </data> <data name="Analyzers" xml:space="preserve"> <value>Analyzers</value> </data> <data name="Carriage_Return_Newline_rn" xml:space="preserve"> <value>Carriage Return + Newline (\r\n)</value> </data> <data name="Carriage_Return_r" xml:space="preserve"> <value>Carriage Return (\r)</value> </data> <data name="Category" xml:space="preserve"> <value>Category</value> </data> <data name="Code_Style" xml:space="preserve"> <value>Code Style</value> </data> <data name="Disabled" xml:space="preserve"> <value>Disabled</value> </data> <data name="Enabled" xml:space="preserve"> <value>Enabled</value> </data> <data name="Error" xml:space="preserve"> <value>Error</value> </data> <data name="Whitespace" xml:space="preserve"> <value>Whitespace</value> </data> <data name="Id" xml:space="preserve"> <value>Id</value> </data> <data name="Newline_n" xml:space="preserve"> <value>Newline (\\n)</value> </data> <data name="Refactoring_Only" xml:space="preserve"> <value>Refactoring Only</value> </data> <data name="Suggestion" xml:space="preserve"> <value>Suggestion</value> </data> <data name="Title" xml:space="preserve"> <value>Title</value> </data> <data name="Value" xml:space="preserve"> <value>Value</value> </data> <data name="Warning" xml:space="preserve"> <value>Warning</value> </data> <data name="Search_Settings" xml:space="preserve"> <value>Search Settings</value> </data> <data name="Multiple_members_are_inherited" xml:space="preserve"> <value>Multiple members are inherited</value> </data> <data name="_0_is_inherited" xml:space="preserve"> <value>'{0}' is inherited</value> </data> <data name="Navigate_to_0" xml:space="preserve"> <value>Navigate to '{0}'</value> </data> <data name="Multiple_members_are_inherited_on_line_0" xml:space="preserve"> <value>Multiple members are inherited on line {0}</value> <comment>Line number info is needed for accessibility purpose.</comment> </data> <data name="Implemented_members" xml:space="preserve"> <value>Implemented members</value> </data> <data name="Implementing_members" xml:space="preserve"> <value>Implementing members</value> </data> <data name="Overriding_members" xml:space="preserve"> <value>Overriding members</value> </data> <data name="Overridden_members" xml:space="preserve"> <value>Overridden members</value> </data> <data name="Value_Tracking" xml:space="preserve"> <value>Value Tracking</value> <comment>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</comment> </data> <data name="Calculating" xml:space="preserve"> <value>Calculating...</value> <comment>Used in UI to represent progress in the context of loading items. </comment> </data> <data name="Derived_types" xml:space="preserve"> <value>Derived types</value> </data> <data name="Implemented_interfaces" xml:space="preserve"> <value>Implemented interfaces</value> </data> <data name="Implementing_types" xml:space="preserve"> <value>Implementing types</value> </data> <data name="Inherited_interfaces" xml:space="preserve"> <value>Inherited interfaces</value> </data> <data name="Select_an_appropriate_symbol_to_start_value_tracking" xml:space="preserve"> <value>Select an appropriate symbol to start value tracking</value> </data> <data name="Namespace_declarations" xml:space="preserve"> <value>Namespace declarations</value> </data> <data name="Error_updating_suppressions_0" xml:space="preserve"> <value>Error updating suppressions: {0}</value> </data> <data name="Underline_reassigned_variables" xml:space="preserve"> <value>Underline reassigned variables</value> </data> <data name="Analyzer_Defaults" xml:space="preserve"> <value>Analyzer Defaults</value> </data> <data name="Location" xml:space="preserve"> <value>Location</value> </data> <data name="Visual_Studio_Settings" xml:space="preserve"> <value>Visual Studio Settings</value> </data> <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="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
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Míra dědičnosti (experimentální)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Vložené nápovědy (experimentální)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Vkládá se hodnota lokality volání {0}.</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Nainstalujte Microsoftem doporučené analyzátory Roslyn, které poskytují další diagnostiku a opravy pro běžné problémy s návrhem, zabezpečením, výkonem a spolehlivostí rozhraní API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Rozhraní nemůže mít pole.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Zaveďte nedefinované proměnné TODO.</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Původ položky</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Zachovat</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Zachovat všechny závorky v:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Druh</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Míra dědičnosti (experimentální)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Vererbungsrand (experimentell)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Inlinehinweise (experimentell)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Der Wert der Aufrufsite "{0}" wird eingefügt.</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installieren Sie von Microsoft empfohlene Roslyn-Analysetools, die zusätzliche Diagnosen und Fixes für allgemeine Design-, Sicherheits-, Leistungs- und Zuverlässigkeitsprobleme bei APIs bereitstellen.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Die Schnittstelle kann kein Feld aufweisen.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Nicht definierte TODO-Variablen einführen</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Elementursprung</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Beibehalten</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Alle Klammern beibehalten in:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Art</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Vererbungsrand (experimentell)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margen de herencia (experimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Sugerencias en línea (experimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Insertando el valor del sitio de llamada "{0}"</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Instale los analizadores de Roslyn recomendados por Microsoft, que proporcionan diagnósticos y correcciones adicionales para problemas comunes de confiabilidad, rendimiento, seguridad y diseño de API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">La interfaz no puede tener campos.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introducir variables TODO sin definir</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origen del elemento</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Mantener</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantener todos los paréntesis en:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margen de herencia (experimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Marge d’héritage (expérimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Indicateurs inline (expérimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Insertion de la valeur de site d'appel '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installer les analyseurs Roslyn recommandés par Microsoft, qui fournissent des diagnostics et des correctifs supplémentaires pour les problèmes usuels liés à la conception, à la sécurité, au niveau de performance et à la fiabilité des API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">L'interface ne peut pas avoir de champ.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduire des variables TODO non définies</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origine de l'élément</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Conserver</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Conserver toutes les parenthèses dans :</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Genre</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Marge d’héritage (expérimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margine di ereditarietà (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Suggerimenti inline (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Inserimento del valore '{0}' del sito di chiamata</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installare gli analizzatori Roslyn consigliati da Microsoft, che offrono ulteriori funzionalità di diagnostica e correzioni per problemi comuni di sicurezza, prestazioni, affidabilità e progettazione di API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">L'interfaccia non può contenere il campo.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduci variabili TODO non definite</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origine dell'elemento</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Mantieni</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantieni tutte le parentesi in:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margine di ereditarietà (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">継承の余白 (試験段階)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">インラインのヒント (試験段階)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">呼び出しサイトの値 "{0}" を挿入しています</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Microsoft で推奨されている Roslyn アナライザーをインストールします。これにより、一般的な API の設計、セキュリティ、パフォーマンス、信頼性の問題に対する追加の診断と修正が提供されます</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">インターフェイスにフィールドを含めることはできません。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">未定義の TODO 変数の導入</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">項目の送信元</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保持</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">すべてのかっこを保持:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">種類</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">継承の余白 (試験段階)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">상속 여백(실험용)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">인라인 힌트(실험적)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">호출 사이트 값 '{0}'을(를) 삽입하는 중</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">일반적인 API 디자인, 보안, 성능 및 안정성 문제에 대한 추가 진단 및 수정을 제공하는 Microsoft 권장 Roslyn 분석기를 설치합니다.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">인터페이스에는 필드가 포함될 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">정의되지 않은 TODO 변수 소개</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">항목 원본</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">유지</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">모든 괄호 유지:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">종류</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">상속 여백(실험용)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margines dziedziczenia (eksperymentalny)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Wskazówki w tekście (eksperymentalne)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Wstawianie wartości miejsca wywołania „{0}”</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Zainstaluj analizatory Roslyn rekomendowane przez firmę Microsoft, które oferują dodatkową diagnostykę i poprawki w zakresie typowego projektu interfejsu API, zabezpieczeń, wydajności i niezawodności</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Interfejs nie może mieć pola.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Wprowadź niezdefiniowane zmienne TODO</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Źródło elementu</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Zachowaj</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Zachowaj wszystkie nawiasy w:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Rodzaj</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margines dziedziczenia (eksperymentalny)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margem de Herança (experimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Dicas Embutidas (experimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Inserindo o valor do site de chamada '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Instale os analisadores Roslyn recomendados pela Microsoft, que fornecem diagnósticos adicionais e correções para problemas comuns de confiabilidade, desempenho, segurança e design de API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">A interface não pode ter campo.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduzir variáveis de TODO indefinidas</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origem do item</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Manter</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantenha todos os parênteses em:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margem de Herança (experimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Граница наследования (экспериментальная)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Встроенные подсказки (экспериментальная функция)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Вставка значения "{0}" места вызова</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Установите рекомендуемые корпорацией Майкрософт анализаторы Roslyn, которые предоставляют дополнительные средства диагностики и исправления для распространенных проблем, связанных с разработкой, безопасностью, производительностью и надежностью API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Интерфейс не может содержать поле.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Ввести неопределенные переменные TODO</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Источник элемента</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Сохранить</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Сохранять все круглые скобки в:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Вид</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Граница наследования (экспериментальная)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Devralma Marjı (deneysel)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Satır İçi İpuçları (deneysel)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Çağırma yeri değeri '{0}' ekleniyor</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Microsoft'un önerdiği, genel API tasarımı, güvenlik, performans ve güvenilirlik sorunları için ek tanılama ve düzeltmeler sağlayan Roslyn çözümleyicilerini yükleyin</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Arabirimde alan olamaz.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Tanımsız TODO değişkenlerini tanıtın</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Öğe çıkış noktası</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Koru</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Şunun içindeki tüm parantezleri tut:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tür</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Devralma Marjı (deneysel)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">继承边距(实验性)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">内联提示(实验性)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">正在插入调用站点值 "{0}"</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">安装 Microsoft 推荐的 Roslyn 分析器,它提供了针对常见 API 设计、安全性、性能和可靠性问题的额外诊断和修补程序</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">接口不可具有字段。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">引入未定义的 TODO 变量</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">项来源</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保留</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">保留所有括号:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">种类</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">继承边距(实验性)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">繼承邊界 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">內嵌提示 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">正在插入呼叫網站值 '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">安裝 Microsoft 建議的 Roslyn 分析器,其可為一般 API 設計、安全性、效能及可靠性問題提供額外的診斷與修正</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">介面不得具有欄位。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">引入未定義的 TODO 變數</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">項目原點</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保留</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">以下情況保留所有括號:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">種類</target> <note /> </trans-unit> <trans-unit id="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="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_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">繼承邊界 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints"> <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>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageControl.xaml
<options:AbstractOptionPageControl x:Class="Microsoft.VisualStudio.LanguageServices.VisualBasic.Options.AdvancedOptionPageControl" x:ClassModifier="Friend" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:options="clr-namespace:Microsoft.VisualStudio.LanguageServices.Implementation.Options;assembly=Microsoft.VisualStudio.LanguageServices.Implementation" xmlns:local="clr-namespace:Microsoft.VisualStudio.LanguageServices.VisualBasic.Options" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <ScrollViewer VerticalScrollBarVisibility="Auto"> <!-- We have a Margin here, to get some distance to the Scrollbar See: https://github.com/dotnet/roslyn/issues/14979--> <StackPanel Margin="0,0,3,0"> <GroupBox x:Uid="AnalysisGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Analysis}"> <StackPanel> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_analysis_scope}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_active_file" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Active_File}"/> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_open_files" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Open_Files_And_Projects}"/> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_full_solution" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Full_Solution}"/> </StackPanel> <CheckBox x:Name="Run_code_analysis_in_separate_process" Content="{x:Static local:AdvancedOptionPageStrings.Option_run_code_analysis_in_separate_process}" /> <CheckBox x:Name="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_Remove_Unused_References_command_in_Solution_Explorer_experimental}" /> <CheckBox x:Name="Enable_file_logging_for_diagnostics" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_file_logging_for_diagnostics}" /> <CheckBox x:Name="Skip_analyzers_for_implicitly_triggered_builds" Content="{x:Static local:AdvancedOptionPageStrings.Option_Skip_analyzers_for_implicitly_triggered_builds}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="ImportDirectivesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Import_Directives}"> <StackPanel> <CheckBox x:Name="PlaceSystemNamespaceFirst" x:Uid="SortImports_PlaceSystemFirst" Content="{x:Static local:AdvancedOptionPageStrings.Option_PlaceSystemNamespaceFirst}" /> <CheckBox x:Name="SeparateImportGroups" x:Uid="SeparateImportGroups" Content="{x:Static local:AdvancedOptionPageStrings.Option_SeparateImportGroups}" /> <CheckBox x:Name="SuggestForTypesInReferenceAssemblies" x:Uid="AddImport_SuggestForTypesInReferenceAssemblies" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suggest_imports_for_types_in_reference_assemblies}" /> <CheckBox x:Name="SuggestForTypesInNuGetPackages" x:Uid="AddImport_SuggestForTypesInNuGetPackages" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suggest_imports_for_types_in_NuGet_packages}" /> <CheckBox x:Name="AddMissingImportsOnPaste" x:Uid="AddMissingImportsOnPaste" Content="{x:Static local:AdvancedOptionPageStrings.Option_Add_missing_imports_on_paste}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="QuickActionsBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Quick_Actions}"> <StackPanel> <CheckBox x:Name="ComputeQuickActionsAsynchronouslyExperimental" Content="{x:Static local:AdvancedOptionPageStrings.Option_Compute_Quick_Actions_asynchronously_experimental}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="HighlightingGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Highlighting}"> <StackPanel> <CheckBox x:Name="EnableHighlightReferences" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableHighlightReferences}" /> <CheckBox x:Name="EnableHighlightKeywords" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableHighlightKeywords}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="OutliningGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Outlining}"> <StackPanel> <CheckBox x:Name="EnableOutlining" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableOutlining}" /> <CheckBox x:Name="DisplayLineSeparators" Content="{x:Static local:AdvancedOptionPageStrings.Option_DisplayLineSeparators}" /> <CheckBox x:Name="Show_outlining_for_declaration_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_declaration_level_constructs}" /> <CheckBox x:Name="Show_outlining_for_code_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_code_level_constructs}" /> <CheckBox x:Name="Show_outlining_for_comments_and_preprocessor_regions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_comments_and_preprocessor_regions}" /> <CheckBox x:Name="Collapse_regions_when_collapsing_to_definitions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Collapse_regions_when_collapsing_to_definitions}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="FadingGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Fading}"> <StackPanel> <CheckBox x:Name="Fade_out_unused_imports" Content="{x:Static local:AdvancedOptionPageStrings.Option_Fade_out_unused_imports}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="BlockStructureGuidesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Block_Structure_Guides}"> <StackPanel> <CheckBox x:Name="Show_guides_for_declaration_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_guides_for_declaration_level_constructs}" /> <CheckBox x:Name="Show_guides_for_code_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_guides_for_code_level_constructs}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="CommentsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Comments}"> <StackPanel> <CheckBox x:Name="GenerateXmlDocCommentsForTripleApostrophes" Content="{x:Static local:AdvancedOptionPageStrings.Option_GenerateXmlDocCommentsForTripleApostrophes}" /> <CheckBox x:Name="InsertApostropheAtTheStartOfNewLinesWhenWritingApostropheComments" Content="{x:Static local:AdvancedOptionPageStrings.Option_InsertApostropheAtTheStartOfNewLinesWhenWritingApostropheComments}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="EditorHelpGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_EditorHelp}"> <StackPanel> <CheckBox x:Name="EnableLineCommit" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableLineCommit}" /> <CheckBox x:Name="EnableEndConstruct" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableEndConstruct}" /> <CheckBox x:Name="AutomaticInsertionOfInterfaceAndMustOverrideMembers" Content="{x:Static local:AdvancedOptionPageStrings.Option_AutomaticInsertionOfInterfaceAndMustOverrideMembers}" /> <CheckBox x:Name="ShowRemarksInQuickInfo" Content="{x:Static local:AdvancedOptionPageStrings.Option_ShowRemarksInQuickInfo}" /> <CheckBox x:Name="RenameTrackingPreview" Content="{x:Static local:AdvancedOptionPageStrings.Option_RenameTrackingPreview}" /> <CheckBox x:Name="Report_invalid_placeholders_in_string_dot_format_calls" Content="{x:Static local:AdvancedOptionPageStrings.Option_Report_invalid_placeholders_in_string_dot_format_calls}" /> <CheckBox x:Name="Underline_reassigned_variables" Content="{x:Static local:AdvancedOptionPageStrings.Option_Underline_reassigned_variables}" /> <CheckBox x:Name="Enable_all_features_in_opened_files_from_source_generators" Content="{x:Static local:AdvancedOptionPageStrings.Enable_all_features_in_opened_files_from_source_generators_experimental}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="GoToDefinitionGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_GoToDefinition}"> <StackPanel> <CheckBox x:Name="NavigateToObjectBrowser" Content="{x:Static local:AdvancedOptionPageStrings.Option_NavigateToObjectBrowser}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="RegularExpressionsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Regular_Expressions}"> <StackPanel> <CheckBox x:Name="Colorize_regular_expressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Colorize_regular_expressions}" /> <CheckBox x:Name="Report_invalid_regular_expressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Report_invalid_regular_expressions}" /> <CheckBox x:Name="Highlight_related_components_under_cursor" Content="{x:Static local:AdvancedOptionPageStrings.Option_Highlight_related_components_under_cursor}" /> <CheckBox x:Name="Show_completion_list" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_completion_list}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="EditorColorSchemeGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Editor_Color_Scheme}"> <StackPanel> <ComboBox x:Name="Editor_color_scheme" IsEditable="false"> <ComboBoxItem Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_Scheme_VisualStudio2019}" Tag="{x:Static local:AdvancedOptionPageStrings.Color_Scheme_VisualStudio2019_Tag}" /> <ComboBoxItem Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_Scheme_VisualStudio2017}" Tag="{x:Static local:AdvancedOptionPageStrings.Color_Scheme_VisualStudio2017_Tag}" /> </ComboBox> <TextBlock x:Name="Customized_Theme_Warning" TextWrapping="WrapWithOverflow" Margin="0, 0, 0, 8" Text="{x:Static local:AdvancedOptionPageStrings.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}"/> <TextBlock x:Name="Custom_VS_Theme_Warning" TextWrapping="WrapWithOverflow" Margin="0, 0, 0, 8" Text="{x:Static local:AdvancedOptionPageStrings.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}"/> </StackPanel> </GroupBox> <GroupBox x:Uid="ExtractMethodGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_ExtractMethod}"> <StackPanel> <CheckBox x:Name="DontPutOutOrRefOnStruct" Content="{x:Static local:AdvancedOptionPageStrings.Option_DontPutOutOrRefOnStruct}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="Implement_Interface_or_Abstract_Class_GroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Implement_Interface_or_Abstract_Class}"> <StackPanel Margin="0, -5, 0, 5"> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_When_inserting_properties_events_and_methods_place_them}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Insertion_behavior" x:Name="with_other_members_of_the_same_kind" Content="{x:Static local:AdvancedOptionPageStrings.Option_with_other_members_of_the_same_kind}"/> <RadioButton GroupName="Insertion_behavior" x:Name="at_the_end" Content="{x:Static local:AdvancedOptionPageStrings.Option_at_the_end}"/> </StackPanel> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_When_generating_properties}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Property_generation_behavior" x:Name="prefer_throwing_properties" Content="{x:Static local:AdvancedOptionPageStrings.Option_prefer_throwing_properties}"/> <RadioButton GroupName="Property_generation_behavior" x:Name="prefer_auto_properties" Content="{x:Static local:AdvancedOptionPageStrings.Option_prefer_auto_properties}"/> </StackPanel> </StackPanel> </GroupBox> <GroupBox x:Uid="InlineHintsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Inline_Hints_experimental}"> <StackPanel> <CheckBox x:Name="DisplayAllHintsWhilePressingAltF1" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_all_hints_while_pressing_Alt_F1}" /> <CheckBox x:Name="ColorHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_hints}" /> <CheckBox x:Name="DisplayInlineParameterNameHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_parameter_name_hints}" Checked="DisplayInlineParameterNameHints_Checked" Unchecked="DisplayInlineParameterNameHints_Unchecked"/> <StackPanel Margin="15, 0, 0, 0"> <CheckBox x:Uid="ShowHintsForLiterals" x:Name="ShowHintsForLiterals" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_literals}" /> <CheckBox x:Uid="ShowHintsForNewExpressions" x:Name="ShowHintsForNewExpressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_New_expressions}" /> <CheckBox x:Uid="ShowHintsForEverythingElse" x:Name="ShowHintsForEverythingElse" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_everything_else}" /> <CheckBox x:Uid="ShowHintsForIndexers" x:Name="ShowHintsForIndexers" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_indexers}" /> <CheckBox x:Uid="SuppressHintsWhenParameterNameMatchesTheMethodsIntent" x:Name="SuppressHintsWhenParameterNameMatchesTheMethodsIntent" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suppress_hints_when_parameter_name_matches_the_method_s_intent}" /> <CheckBox x:Uid="SuppressHintsWhenParameterNamesDifferOnlyBySuffix" x:Name="SuppressHintsWhenParameterNamesDifferOnlyBySuffix" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suppress_hints_when_parameter_names_differ_only_by_suffix}" /> </StackPanel> </StackPanel> </GroupBox> <GroupBox x:Name="InheritanceMarginGroupbox" Header="{x:Static local:AdvancedOptionPageStrings.Inheritance_Margin_experimental}"> <StackPanel> <CheckBox x:Uid="ShowInheritanceMargin" x:Name="ShowInheritanceMargin" Content="{x:Static local:AdvancedOptionPageStrings.Show_inheritance_margin}"/> </StackPanel> </GroupBox> </StackPanel> </ScrollViewer> </options:AbstractOptionPageControl>
<options:AbstractOptionPageControl x:Class="Microsoft.VisualStudio.LanguageServices.VisualBasic.Options.AdvancedOptionPageControl" x:ClassModifier="Friend" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:options="clr-namespace:Microsoft.VisualStudio.LanguageServices.Implementation.Options;assembly=Microsoft.VisualStudio.LanguageServices.Implementation" xmlns:local="clr-namespace:Microsoft.VisualStudio.LanguageServices.VisualBasic.Options" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <ScrollViewer VerticalScrollBarVisibility="Auto"> <!-- We have a Margin here, to get some distance to the Scrollbar See: https://github.com/dotnet/roslyn/issues/14979--> <StackPanel Margin="0,0,3,0"> <GroupBox x:Uid="AnalysisGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Analysis}"> <StackPanel> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_analysis_scope}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_active_file" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Active_File}"/> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_open_files" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Open_Files_And_Projects}"/> <RadioButton GroupName="Background_analysis_scope" x:Name="Background_analysis_scope_full_solution" Content="{x:Static local:AdvancedOptionPageStrings.Option_Background_Analysis_Scope_Full_Solution}"/> </StackPanel> <CheckBox x:Name="Run_code_analysis_in_separate_process" Content="{x:Static local:AdvancedOptionPageStrings.Option_run_code_analysis_in_separate_process}" /> <CheckBox x:Name="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_Remove_Unused_References_command_in_Solution_Explorer_experimental}" /> <CheckBox x:Name="Enable_file_logging_for_diagnostics" Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_file_logging_for_diagnostics}" /> <CheckBox x:Name="Skip_analyzers_for_implicitly_triggered_builds" Content="{x:Static local:AdvancedOptionPageStrings.Option_Skip_analyzers_for_implicitly_triggered_builds}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="ImportDirectivesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Import_Directives}"> <StackPanel> <CheckBox x:Name="PlaceSystemNamespaceFirst" x:Uid="SortImports_PlaceSystemFirst" Content="{x:Static local:AdvancedOptionPageStrings.Option_PlaceSystemNamespaceFirst}" /> <CheckBox x:Name="SeparateImportGroups" x:Uid="SeparateImportGroups" Content="{x:Static local:AdvancedOptionPageStrings.Option_SeparateImportGroups}" /> <CheckBox x:Name="SuggestForTypesInReferenceAssemblies" x:Uid="AddImport_SuggestForTypesInReferenceAssemblies" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suggest_imports_for_types_in_reference_assemblies}" /> <CheckBox x:Name="SuggestForTypesInNuGetPackages" x:Uid="AddImport_SuggestForTypesInNuGetPackages" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suggest_imports_for_types_in_NuGet_packages}" /> <CheckBox x:Name="AddMissingImportsOnPaste" x:Uid="AddMissingImportsOnPaste" Content="{x:Static local:AdvancedOptionPageStrings.Option_Add_missing_imports_on_paste}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="QuickActionsBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Quick_Actions}"> <StackPanel> <CheckBox x:Name="ComputeQuickActionsAsynchronouslyExperimental" Content="{x:Static local:AdvancedOptionPageStrings.Option_Compute_Quick_Actions_asynchronously_experimental}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="HighlightingGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Highlighting}"> <StackPanel> <CheckBox x:Name="EnableHighlightReferences" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableHighlightReferences}" /> <CheckBox x:Name="EnableHighlightKeywords" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableHighlightKeywords}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="OutliningGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Outlining}"> <StackPanel> <CheckBox x:Name="EnableOutlining" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableOutlining}" /> <CheckBox x:Name="DisplayLineSeparators" Content="{x:Static local:AdvancedOptionPageStrings.Option_DisplayLineSeparators}" /> <CheckBox x:Name="Show_outlining_for_declaration_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_declaration_level_constructs}" /> <CheckBox x:Name="Show_outlining_for_code_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_code_level_constructs}" /> <CheckBox x:Name="Show_outlining_for_comments_and_preprocessor_regions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_outlining_for_comments_and_preprocessor_regions}" /> <CheckBox x:Name="Collapse_regions_when_collapsing_to_definitions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Collapse_regions_when_collapsing_to_definitions}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="FadingGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Fading}"> <StackPanel> <CheckBox x:Name="Fade_out_unused_imports" Content="{x:Static local:AdvancedOptionPageStrings.Option_Fade_out_unused_imports}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="BlockStructureGuidesGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Block_Structure_Guides}"> <StackPanel> <CheckBox x:Name="Show_guides_for_declaration_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_guides_for_declaration_level_constructs}" /> <CheckBox x:Name="Show_guides_for_code_level_constructs" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_guides_for_code_level_constructs}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="CommentsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Comments}"> <StackPanel> <CheckBox x:Name="GenerateXmlDocCommentsForTripleApostrophes" Content="{x:Static local:AdvancedOptionPageStrings.Option_GenerateXmlDocCommentsForTripleApostrophes}" /> <CheckBox x:Name="InsertApostropheAtTheStartOfNewLinesWhenWritingApostropheComments" Content="{x:Static local:AdvancedOptionPageStrings.Option_InsertApostropheAtTheStartOfNewLinesWhenWritingApostropheComments}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="EditorHelpGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_EditorHelp}"> <StackPanel> <CheckBox x:Name="EnableLineCommit" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableLineCommit}" /> <CheckBox x:Name="EnableEndConstruct" Content="{x:Static local:AdvancedOptionPageStrings.Option_EnableEndConstruct}" /> <CheckBox x:Name="AutomaticInsertionOfInterfaceAndMustOverrideMembers" Content="{x:Static local:AdvancedOptionPageStrings.Option_AutomaticInsertionOfInterfaceAndMustOverrideMembers}" /> <CheckBox x:Name="ShowRemarksInQuickInfo" Content="{x:Static local:AdvancedOptionPageStrings.Option_ShowRemarksInQuickInfo}" /> <CheckBox x:Name="RenameTrackingPreview" Content="{x:Static local:AdvancedOptionPageStrings.Option_RenameTrackingPreview}" /> <CheckBox x:Name="Report_invalid_placeholders_in_string_dot_format_calls" Content="{x:Static local:AdvancedOptionPageStrings.Option_Report_invalid_placeholders_in_string_dot_format_calls}" /> <CheckBox x:Name="Underline_reassigned_variables" Content="{x:Static local:AdvancedOptionPageStrings.Option_Underline_reassigned_variables}" /> <CheckBox x:Name="Enable_all_features_in_opened_files_from_source_generators" Content="{x:Static local:AdvancedOptionPageStrings.Enable_all_features_in_opened_files_from_source_generators_experimental}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="GoToDefinitionGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_GoToDefinition}"> <StackPanel> <CheckBox x:Name="NavigateToObjectBrowser" Content="{x:Static local:AdvancedOptionPageStrings.Option_NavigateToObjectBrowser}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="RegularExpressionsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Regular_Expressions}"> <StackPanel> <CheckBox x:Name="Colorize_regular_expressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Colorize_regular_expressions}" /> <CheckBox x:Name="Report_invalid_regular_expressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Report_invalid_regular_expressions}" /> <CheckBox x:Name="Highlight_related_components_under_cursor" Content="{x:Static local:AdvancedOptionPageStrings.Option_Highlight_related_components_under_cursor}" /> <CheckBox x:Name="Show_completion_list" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_completion_list}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="EditorColorSchemeGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Editor_Color_Scheme}"> <StackPanel> <ComboBox x:Name="Editor_color_scheme" IsEditable="false"> <ComboBoxItem Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_Scheme_VisualStudio2019}" Tag="{x:Static local:AdvancedOptionPageStrings.Color_Scheme_VisualStudio2019_Tag}" /> <ComboBoxItem Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_Scheme_VisualStudio2017}" Tag="{x:Static local:AdvancedOptionPageStrings.Color_Scheme_VisualStudio2017_Tag}" /> </ComboBox> <TextBlock x:Name="Customized_Theme_Warning" TextWrapping="WrapWithOverflow" Margin="0, 0, 0, 8" Text="{x:Static local:AdvancedOptionPageStrings.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}"/> <TextBlock x:Name="Custom_VS_Theme_Warning" TextWrapping="WrapWithOverflow" Margin="0, 0, 0, 8" Text="{x:Static local:AdvancedOptionPageStrings.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}"/> </StackPanel> </GroupBox> <GroupBox x:Uid="ExtractMethodGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_ExtractMethod}"> <StackPanel> <CheckBox x:Name="DontPutOutOrRefOnStruct" Content="{x:Static local:AdvancedOptionPageStrings.Option_DontPutOutOrRefOnStruct}" /> </StackPanel> </GroupBox> <GroupBox x:Uid="Implement_Interface_or_Abstract_Class_GroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Implement_Interface_or_Abstract_Class}"> <StackPanel Margin="0, -5, 0, 5"> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_When_inserting_properties_events_and_methods_place_them}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Insertion_behavior" x:Name="with_other_members_of_the_same_kind" Content="{x:Static local:AdvancedOptionPageStrings.Option_with_other_members_of_the_same_kind}"/> <RadioButton GroupName="Insertion_behavior" x:Name="at_the_end" Content="{x:Static local:AdvancedOptionPageStrings.Option_at_the_end}"/> </StackPanel> <Label Content="{x:Static local:AdvancedOptionPageStrings.Option_When_generating_properties}"/> <StackPanel Margin="15, 0, 0, 0"> <RadioButton GroupName="Property_generation_behavior" x:Name="prefer_throwing_properties" Content="{x:Static local:AdvancedOptionPageStrings.Option_prefer_throwing_properties}"/> <RadioButton GroupName="Property_generation_behavior" x:Name="prefer_auto_properties" Content="{x:Static local:AdvancedOptionPageStrings.Option_prefer_auto_properties}"/> </StackPanel> </StackPanel> </GroupBox> <GroupBox x:Uid="InlineHintsGroupBox" Header="{x:Static local:AdvancedOptionPageStrings.Option_Inline_Hints}"> <StackPanel> <CheckBox x:Name="DisplayAllHintsWhilePressingAltF1" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_all_hints_while_pressing_Alt_F1}" /> <CheckBox x:Name="ColorHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Color_hints}" /> <CheckBox x:Name="DisplayInlineParameterNameHints" Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_parameter_name_hints}" Checked="DisplayInlineParameterNameHints_Checked" Unchecked="DisplayInlineParameterNameHints_Unchecked"/> <StackPanel Margin="15, 0, 0, 0"> <CheckBox x:Uid="ShowHintsForLiterals" x:Name="ShowHintsForLiterals" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_literals}" /> <CheckBox x:Uid="ShowHintsForNewExpressions" x:Name="ShowHintsForNewExpressions" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_New_expressions}" /> <CheckBox x:Uid="ShowHintsForEverythingElse" x:Name="ShowHintsForEverythingElse" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_everything_else}" /> <CheckBox x:Uid="ShowHintsForIndexers" x:Name="ShowHintsForIndexers" Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_indexers}" /> <CheckBox x:Uid="SuppressHintsWhenParameterNameMatchesTheMethodsIntent" x:Name="SuppressHintsWhenParameterNameMatchesTheMethodsIntent" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suppress_hints_when_parameter_name_matches_the_method_s_intent}" /> <CheckBox x:Uid="SuppressHintsWhenParameterNamesDifferOnlyBySuffix" x:Name="SuppressHintsWhenParameterNamesDifferOnlyBySuffix" Content="{x:Static local:AdvancedOptionPageStrings.Option_Suppress_hints_when_parameter_names_differ_only_by_suffix}" /> </StackPanel> </StackPanel> </GroupBox> <GroupBox x:Name="InheritanceMarginGroupbox" Header="{x:Static local:AdvancedOptionPageStrings.Inheritance_Margin_experimental}"> <StackPanel> <CheckBox x:Uid="ShowInheritanceMargin" x:Name="ShowInheritanceMargin" Content="{x:Static local:AdvancedOptionPageStrings.Show_inheritance_margin}"/> </StackPanel> </GroupBox> </StackPanel> </ScrollViewer> </options:AbstractOptionPageControl>
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageStrings.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.ColorSchemes Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.Options Friend Module AdvancedOptionPageStrings Public ReadOnly Property Option_AutomaticInsertionOfInterfaceAndMustOverrideMembers As String Get Return BasicVSResources.Automatic_insertion_of_Interface_and_MustOverride_members End Get End Property Public ReadOnly Property Option_Analysis As String = ServicesVSResources.Analysis Public ReadOnly Property Option_Background_analysis_scope As String = ServicesVSResources.Background_analysis_scope_colon Public ReadOnly Property Option_Background_Analysis_Scope_Active_File As String = ServicesVSResources.Current_document Public ReadOnly Property Option_Background_Analysis_Scope_Open_Files_And_Projects As String = ServicesVSResources.Open_documents Public ReadOnly Property Option_Background_Analysis_Scope_Full_Solution As String = ServicesVSResources.Entire_solution Public ReadOnly Property Option_run_code_analysis_in_separate_process As String = ServicesVSResources.Run_code_analysis_in_separate_process_requires_restart Public ReadOnly Property Option_DisplayLineSeparators As String = BasicVSResources.Show_procedure_line_separators Public ReadOnly Property Option_Underline_reassigned_variables As String = ServicesVSResources.Underline_reassigned_variables Public ReadOnly Property Option_Display_all_hints_while_pressing_Alt_F1 As String = ServicesVSResources.Display_all_hints_while_pressing_Alt_F1 Public ReadOnly Property Option_Color_hints As String = ServicesVSResources.Color_hints Public ReadOnly Property Option_Inline_Hints_experimental As String = ServicesVSResources.Inline_Hints_experimental Public ReadOnly Property Option_Display_inline_parameter_name_hints As String = ServicesVSResources.Display_inline_parameter_name_hints Public ReadOnly Property Option_Show_hints_for_literals As String = ServicesVSResources.Show_hints_for_literals Public ReadOnly Property Option_Show_hints_for_New_expressions As String = BasicVSResources.Show_hints_for_New_expressions Public ReadOnly Property Option_Show_hints_for_everything_else As String = ServicesVSResources.Show_hints_for_everything_else Public ReadOnly Property Option_Show_hints_for_indexers As String = ServicesVSResources.Show_hints_for_indexers Public ReadOnly Property Option_Suppress_hints_when_parameter_name_matches_the_method_s_intent As String = ServicesVSResources.Suppress_hints_when_parameter_name_matches_the_method_s_intent Public ReadOnly Property Option_Suppress_hints_when_parameter_names_differ_only_by_suffix As String = ServicesVSResources.Suppress_hints_when_parameter_names_differ_only_by_suffix Public ReadOnly Property Option_DontPutOutOrRefOnStruct As String = BasicVSResources.Don_t_put_ByRef_on_custom_structure Public ReadOnly Property Option_EditorHelp As String = BasicVSResources.Editor_Help Public ReadOnly Property Option_EnableEndConstruct As String = BasicVSResources.A_utomatic_insertion_of_end_constructs Public ReadOnly Property Option_EnableHighlightKeywords As String = BasicVSResources.Highlight_related_keywords_under_cursor Public ReadOnly Property Option_EnableHighlightReferences As String = BasicVSResources.Highlight_references_to_symbol_under_cursor Public ReadOnly Property Option_Quick_Actions As String = ServicesVSResources.Quick_Actions Public ReadOnly Property Option_Compute_Quick_Actions_asynchronously_experimental As String = ServicesVSResources.Compute_Quick_Actions_asynchronously_experimental Public ReadOnly Property Option_EnableLineCommit As String Get Return BasicVSResources.Pretty_listing_reformatting_of_code End Get End Property Public ReadOnly Property Option_EnableOutlining As String Get Return BasicVSResources.Enter_outlining_mode_when_files_open End Get End Property Public ReadOnly Property Option_ExtractMethod As String Get Return BasicVSResources.Extract_Method End Get End Property Public ReadOnly Property Option_Implement_Interface_or_Abstract_Class As String = ServicesVSResources.Implement_Interface_or_Abstract_Class Public ReadOnly Property Option_When_inserting_properties_events_and_methods_place_them As String = ServicesVSResources.When_inserting_properties_events_and_methods_place_them Public ReadOnly Property Option_with_other_members_of_the_same_kind As String = ServicesVSResources.with_other_members_of_the_same_kind Public ReadOnly Property Option_When_generating_properties As String = ServicesVSResources.When_generating_properties Public ReadOnly Property Option_prefer_auto_properties As String = ServicesVSResources.codegen_prefer_auto_properties Public ReadOnly Property Option_prefer_throwing_properties As String = ServicesVSResources.prefer_throwing_properties Public ReadOnly Property Option_at_the_end As String = ServicesVSResources.at_the_end Public ReadOnly Property Option_GenerateXmlDocCommentsForTripleApostrophes As String = BasicVSResources.Generate_XML_documentation_comments_for Public ReadOnly Property Option_InsertApostropheAtTheStartOfNewLinesWhenWritingApostropheComments As String = BasicVSResources.Insert_apostrophe_at_the_start_of_new_lines_when_writing_apostrophe_comments Public ReadOnly Property Option_ShowRemarksInQuickInfo As String Get Return BasicVSResources.Show_remarks_in_Quick_Info End Get End Property Public ReadOnly Property Option_GoToDefinition As String Get Return BasicVSResources.Go_to_Definition End Get End Property Public ReadOnly Property Option_Highlighting As String Get Return BasicVSResources.Highlighting End Get End Property Public ReadOnly Property Option_NavigateToObjectBrowser As String Get Return BasicVSResources.Navigate_to_Object_Browser_for_symbols_defined_in_metadata End Get End Property Public ReadOnly Property Option_OptimizeForSolutionSize As String Get Return BasicVSResources.Optimize_for_solution_size End Get End Property Public ReadOnly Property Option_OptimizeForSolutionSize_Small As String Get Return BasicVSResources.Small End Get End Property Public ReadOnly Property Option_OptimizeForSolutionSize_Regular As String Get Return BasicVSResources.Regular End Get End Property Public ReadOnly Property Option_OptimizeForSolutionSize_Large As String Get Return BasicVSResources.Large End Get End Property Public ReadOnly Property Option_Outlining As String = ServicesVSResources.Outlining Public ReadOnly Property Option_Show_outlining_for_declaration_level_constructs As String = ServicesVSResources.Show_outlining_for_declaration_level_constructs Public ReadOnly Property Option_Show_outlining_for_code_level_constructs As String = ServicesVSResources.Show_outlining_for_code_level_constructs Public ReadOnly Property Option_Show_outlining_for_comments_and_preprocessor_regions As String = ServicesVSResources.Show_outlining_for_comments_and_preprocessor_regions Public ReadOnly Property Option_Collapse_regions_when_collapsing_to_definitions As String = ServicesVSResources.Collapse_regions_when_collapsing_to_definitions Public ReadOnly Property Option_Block_Structure_Guides As String = ServicesVSResources.Block_Structure_Guides Public ReadOnly Property Option_Comments As String = ServicesVSResources.Comments Public ReadOnly Property Option_Show_guides_for_declaration_level_constructs As String = ServicesVSResources.Show_guides_for_declaration_level_constructs Public ReadOnly Property Option_Show_guides_for_code_level_constructs As String = ServicesVSResources.Show_guides_for_code_level_constructs Public ReadOnly Property Option_Fading As String = ServicesVSResources.Fading Public ReadOnly Property Option_Fade_out_unused_imports As String = BasicVSResources.Fade_out_unused_imports Public ReadOnly Property Option_Performance As String Get Return BasicVSResources.Performance End Get End Property Public ReadOnly Property Option_Report_invalid_placeholders_in_string_dot_format_calls As String Get Return BasicVSResources.Report_invalid_placeholders_in_string_dot_format_calls End Get End Property Public ReadOnly Property Option_RenameTrackingPreview As String Get Return BasicVSResources.Show_preview_for_rename_tracking End Get End Property Public ReadOnly Property Option_Import_Directives As String = BasicVSResources.Import_Directives Public ReadOnly Property Option_PlaceSystemNamespaceFirst As String = BasicVSResources.Place_System_directives_first_when_sorting_imports Public ReadOnly Property Option_SeparateImportGroups As String = BasicVSResources.Separate_import_directive_groups Public ReadOnly Property Option_Suggest_imports_for_types_in_reference_assemblies As String = BasicVSResources.Suggest_imports_for_types_in_reference_assemblies Public ReadOnly Property Option_Suggest_imports_for_types_in_NuGet_packages As String = BasicVSResources.Suggest_imports_for_types_in_NuGet_packages Public ReadOnly Property Option_Add_missing_imports_on_paste As String = BasicVSResources.Add_missing_imports_on_paste Public ReadOnly Property Option_Regular_Expressions As String = ServicesVSResources.Regular_Expressions Public ReadOnly Property Option_Colorize_regular_expressions As String = ServicesVSResources.Colorize_regular_expressions Public ReadOnly Property Option_Report_invalid_regular_expressions As String = ServicesVSResources.Report_invalid_regular_expressions Public ReadOnly Property Option_Highlight_related_components_under_cursor As String = ServicesVSResources.Highlight_related_components_under_cursor Public ReadOnly Property Option_Show_completion_list As String = ServicesVSResources.Show_completion_list Public ReadOnly Property Option_Editor_Color_Scheme As String = ServicesVSResources.Editor_Color_Scheme Public ReadOnly Property 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 As String = ServicesVSResources.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 Public ReadOnly Property 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 As String = ServicesVSResources.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 Public ReadOnly Property Option_Color_Scheme_VisualStudio2019 As String = ServicesVSResources.Visual_Studio_2019 Public ReadOnly Property Option_Color_Scheme_VisualStudio2017 As String = ServicesVSResources.Visual_Studio_2017 Public ReadOnly Property Color_Scheme_VisualStudio2019_Tag As SchemeName = SchemeName.VisualStudio2019 Public ReadOnly Property Color_Scheme_VisualStudio2017_Tag As SchemeName = SchemeName.VisualStudio2017 Public ReadOnly Property Option_Show_Remove_Unused_References_command_in_Solution_Explorer_experimental As String = ServicesVSResources.Show_Remove_Unused_References_command_in_Solution_Explorer_experimental Public ReadOnly Property Enable_all_features_in_opened_files_from_source_generators_experimental As String = ServicesVSResources.Enable_all_features_in_opened_files_from_source_generators_experimental Public ReadOnly Property Option_Enable_file_logging_for_diagnostics As String = ServicesVSResources.Enable_file_logging_for_diagnostics Public ReadOnly Property Option_Skip_analyzers_for_implicitly_triggered_builds As String = ServicesVSResources.Skip_analyzers_for_implicitly_triggered_builds Public ReadOnly Property Show_inheritance_margin As String = ServicesVSResources.Show_inheritance_margin Public ReadOnly Property Inheritance_Margin_experimental As String = ServicesVSResources.Inheritance_Margin_experimental 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 Microsoft.CodeAnalysis.Editor.ColorSchemes Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.Options Friend Module AdvancedOptionPageStrings Public ReadOnly Property Option_AutomaticInsertionOfInterfaceAndMustOverrideMembers As String Get Return BasicVSResources.Automatic_insertion_of_Interface_and_MustOverride_members End Get End Property Public ReadOnly Property Option_Analysis As String = ServicesVSResources.Analysis Public ReadOnly Property Option_Background_analysis_scope As String = ServicesVSResources.Background_analysis_scope_colon Public ReadOnly Property Option_Background_Analysis_Scope_Active_File As String = ServicesVSResources.Current_document Public ReadOnly Property Option_Background_Analysis_Scope_Open_Files_And_Projects As String = ServicesVSResources.Open_documents Public ReadOnly Property Option_Background_Analysis_Scope_Full_Solution As String = ServicesVSResources.Entire_solution Public ReadOnly Property Option_run_code_analysis_in_separate_process As String = ServicesVSResources.Run_code_analysis_in_separate_process_requires_restart Public ReadOnly Property Option_DisplayLineSeparators As String = BasicVSResources.Show_procedure_line_separators Public ReadOnly Property Option_Underline_reassigned_variables As String = ServicesVSResources.Underline_reassigned_variables Public ReadOnly Property Option_Display_all_hints_while_pressing_Alt_F1 As String = ServicesVSResources.Display_all_hints_while_pressing_Alt_F1 Public ReadOnly Property Option_Color_hints As String = ServicesVSResources.Color_hints Public ReadOnly Property Option_Inline_Hints As String = ServicesVSResources.Inline_Hints Public ReadOnly Property Option_Display_inline_parameter_name_hints As String = ServicesVSResources.Display_inline_parameter_name_hints Public ReadOnly Property Option_Show_hints_for_literals As String = ServicesVSResources.Show_hints_for_literals Public ReadOnly Property Option_Show_hints_for_New_expressions As String = BasicVSResources.Show_hints_for_New_expressions Public ReadOnly Property Option_Show_hints_for_everything_else As String = ServicesVSResources.Show_hints_for_everything_else Public ReadOnly Property Option_Show_hints_for_indexers As String = ServicesVSResources.Show_hints_for_indexers Public ReadOnly Property Option_Suppress_hints_when_parameter_name_matches_the_method_s_intent As String = ServicesVSResources.Suppress_hints_when_parameter_name_matches_the_method_s_intent Public ReadOnly Property Option_Suppress_hints_when_parameter_names_differ_only_by_suffix As String = ServicesVSResources.Suppress_hints_when_parameter_names_differ_only_by_suffix Public ReadOnly Property Option_DontPutOutOrRefOnStruct As String = BasicVSResources.Don_t_put_ByRef_on_custom_structure Public ReadOnly Property Option_EditorHelp As String = BasicVSResources.Editor_Help Public ReadOnly Property Option_EnableEndConstruct As String = BasicVSResources.A_utomatic_insertion_of_end_constructs Public ReadOnly Property Option_EnableHighlightKeywords As String = BasicVSResources.Highlight_related_keywords_under_cursor Public ReadOnly Property Option_EnableHighlightReferences As String = BasicVSResources.Highlight_references_to_symbol_under_cursor Public ReadOnly Property Option_Quick_Actions As String = ServicesVSResources.Quick_Actions Public ReadOnly Property Option_Compute_Quick_Actions_asynchronously_experimental As String = ServicesVSResources.Compute_Quick_Actions_asynchronously_experimental Public ReadOnly Property Option_EnableLineCommit As String Get Return BasicVSResources.Pretty_listing_reformatting_of_code End Get End Property Public ReadOnly Property Option_EnableOutlining As String Get Return BasicVSResources.Enter_outlining_mode_when_files_open End Get End Property Public ReadOnly Property Option_ExtractMethod As String Get Return BasicVSResources.Extract_Method End Get End Property Public ReadOnly Property Option_Implement_Interface_or_Abstract_Class As String = ServicesVSResources.Implement_Interface_or_Abstract_Class Public ReadOnly Property Option_When_inserting_properties_events_and_methods_place_them As String = ServicesVSResources.When_inserting_properties_events_and_methods_place_them Public ReadOnly Property Option_with_other_members_of_the_same_kind As String = ServicesVSResources.with_other_members_of_the_same_kind Public ReadOnly Property Option_When_generating_properties As String = ServicesVSResources.When_generating_properties Public ReadOnly Property Option_prefer_auto_properties As String = ServicesVSResources.codegen_prefer_auto_properties Public ReadOnly Property Option_prefer_throwing_properties As String = ServicesVSResources.prefer_throwing_properties Public ReadOnly Property Option_at_the_end As String = ServicesVSResources.at_the_end Public ReadOnly Property Option_GenerateXmlDocCommentsForTripleApostrophes As String = BasicVSResources.Generate_XML_documentation_comments_for Public ReadOnly Property Option_InsertApostropheAtTheStartOfNewLinesWhenWritingApostropheComments As String = BasicVSResources.Insert_apostrophe_at_the_start_of_new_lines_when_writing_apostrophe_comments Public ReadOnly Property Option_ShowRemarksInQuickInfo As String Get Return BasicVSResources.Show_remarks_in_Quick_Info End Get End Property Public ReadOnly Property Option_GoToDefinition As String Get Return BasicVSResources.Go_to_Definition End Get End Property Public ReadOnly Property Option_Highlighting As String Get Return BasicVSResources.Highlighting End Get End Property Public ReadOnly Property Option_NavigateToObjectBrowser As String Get Return BasicVSResources.Navigate_to_Object_Browser_for_symbols_defined_in_metadata End Get End Property Public ReadOnly Property Option_OptimizeForSolutionSize As String Get Return BasicVSResources.Optimize_for_solution_size End Get End Property Public ReadOnly Property Option_OptimizeForSolutionSize_Small As String Get Return BasicVSResources.Small End Get End Property Public ReadOnly Property Option_OptimizeForSolutionSize_Regular As String Get Return BasicVSResources.Regular End Get End Property Public ReadOnly Property Option_OptimizeForSolutionSize_Large As String Get Return BasicVSResources.Large End Get End Property Public ReadOnly Property Option_Outlining As String = ServicesVSResources.Outlining Public ReadOnly Property Option_Show_outlining_for_declaration_level_constructs As String = ServicesVSResources.Show_outlining_for_declaration_level_constructs Public ReadOnly Property Option_Show_outlining_for_code_level_constructs As String = ServicesVSResources.Show_outlining_for_code_level_constructs Public ReadOnly Property Option_Show_outlining_for_comments_and_preprocessor_regions As String = ServicesVSResources.Show_outlining_for_comments_and_preprocessor_regions Public ReadOnly Property Option_Collapse_regions_when_collapsing_to_definitions As String = ServicesVSResources.Collapse_regions_when_collapsing_to_definitions Public ReadOnly Property Option_Block_Structure_Guides As String = ServicesVSResources.Block_Structure_Guides Public ReadOnly Property Option_Comments As String = ServicesVSResources.Comments Public ReadOnly Property Option_Show_guides_for_declaration_level_constructs As String = ServicesVSResources.Show_guides_for_declaration_level_constructs Public ReadOnly Property Option_Show_guides_for_code_level_constructs As String = ServicesVSResources.Show_guides_for_code_level_constructs Public ReadOnly Property Option_Fading As String = ServicesVSResources.Fading Public ReadOnly Property Option_Fade_out_unused_imports As String = BasicVSResources.Fade_out_unused_imports Public ReadOnly Property Option_Performance As String Get Return BasicVSResources.Performance End Get End Property Public ReadOnly Property Option_Report_invalid_placeholders_in_string_dot_format_calls As String Get Return BasicVSResources.Report_invalid_placeholders_in_string_dot_format_calls End Get End Property Public ReadOnly Property Option_RenameTrackingPreview As String Get Return BasicVSResources.Show_preview_for_rename_tracking End Get End Property Public ReadOnly Property Option_Import_Directives As String = BasicVSResources.Import_Directives Public ReadOnly Property Option_PlaceSystemNamespaceFirst As String = BasicVSResources.Place_System_directives_first_when_sorting_imports Public ReadOnly Property Option_SeparateImportGroups As String = BasicVSResources.Separate_import_directive_groups Public ReadOnly Property Option_Suggest_imports_for_types_in_reference_assemblies As String = BasicVSResources.Suggest_imports_for_types_in_reference_assemblies Public ReadOnly Property Option_Suggest_imports_for_types_in_NuGet_packages As String = BasicVSResources.Suggest_imports_for_types_in_NuGet_packages Public ReadOnly Property Option_Add_missing_imports_on_paste As String = BasicVSResources.Add_missing_imports_on_paste Public ReadOnly Property Option_Regular_Expressions As String = ServicesVSResources.Regular_Expressions Public ReadOnly Property Option_Colorize_regular_expressions As String = ServicesVSResources.Colorize_regular_expressions Public ReadOnly Property Option_Report_invalid_regular_expressions As String = ServicesVSResources.Report_invalid_regular_expressions Public ReadOnly Property Option_Highlight_related_components_under_cursor As String = ServicesVSResources.Highlight_related_components_under_cursor Public ReadOnly Property Option_Show_completion_list As String = ServicesVSResources.Show_completion_list Public ReadOnly Property Option_Editor_Color_Scheme As String = ServicesVSResources.Editor_Color_Scheme Public ReadOnly Property 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 As String = ServicesVSResources.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 Public ReadOnly Property 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 As String = ServicesVSResources.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 Public ReadOnly Property Option_Color_Scheme_VisualStudio2019 As String = ServicesVSResources.Visual_Studio_2019 Public ReadOnly Property Option_Color_Scheme_VisualStudio2017 As String = ServicesVSResources.Visual_Studio_2017 Public ReadOnly Property Color_Scheme_VisualStudio2019_Tag As SchemeName = SchemeName.VisualStudio2019 Public ReadOnly Property Color_Scheme_VisualStudio2017_Tag As SchemeName = SchemeName.VisualStudio2017 Public ReadOnly Property Option_Show_Remove_Unused_References_command_in_Solution_Explorer_experimental As String = ServicesVSResources.Show_Remove_Unused_References_command_in_Solution_Explorer_experimental Public ReadOnly Property Enable_all_features_in_opened_files_from_source_generators_experimental As String = ServicesVSResources.Enable_all_features_in_opened_files_from_source_generators_experimental Public ReadOnly Property Option_Enable_file_logging_for_diagnostics As String = ServicesVSResources.Enable_file_logging_for_diagnostics Public ReadOnly Property Option_Skip_analyzers_for_implicitly_triggered_builds As String = ServicesVSResources.Skip_analyzers_for_implicitly_triggered_builds Public ReadOnly Property Show_inheritance_margin As String = ServicesVSResources.Show_inheritance_margin Public ReadOnly Property Inheritance_Margin_experimental As String = ServicesVSResources.Inheritance_Margin_experimental End Module End Namespace
1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicClassification.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; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.IntegrationTest.Utilities; using Roslyn.Test.Utilities; using Xunit; using Xunit.Abstractions; namespace Roslyn.VisualStudio.IntegrationTests.VisualBasic { [Collection(nameof(SharedIntegrationHostFixture))] public class BasicClassification : AbstractEditorTest { protected override string LanguageName => LanguageNames.VisualBasic; public BasicClassification(VisualStudioInstanceFactory instanceFactory) : base(instanceFactory, nameof(BasicClassification)) { } [WpfFact, Trait(Traits.Feature, Traits.Features.Classification)] public void Verify_Color_Of_Some_Tokens() { VisualStudio.Editor.SetText(@"Imports System Imports MathAlias = System.Math Namespace Acme ''' <summary>innertext ''' </summary> ''' <!--comment--> ''' <![CDATA[cdata]]> ''' <typeparam name=""attribute"" /> Public Class Program Public Shared Sub Main(args As String()) Console.WriteLine(""Hello World"") 'comment End Sub End Class End Namespace"); VisualStudio.Editor.PlaceCaret("MathAlias"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "identifier"); VisualStudio.Editor.PlaceCaret("Namespace"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "keyword"); VisualStudio.Editor.PlaceCaret("summary"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - name"); VisualStudio.Editor.PlaceCaret("innertext"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - text"); VisualStudio.Editor.PlaceCaret("!--"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - delimiter"); VisualStudio.Editor.PlaceCaret("comment"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - comment"); VisualStudio.Editor.PlaceCaret("CDATA"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - delimiter"); VisualStudio.Editor.PlaceCaret("cdata"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - cdata section"); VisualStudio.Editor.PlaceCaret("attribute"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "identifier"); VisualStudio.Editor.PlaceCaret("Class"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "keyword"); VisualStudio.Editor.PlaceCaret("Program"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); VisualStudio.Editor.PlaceCaret("Hello"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "string"); VisualStudio.Editor.PlaceCaret("comment"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "comment"); } [WpfFact, Trait(Traits.Feature, Traits.Features.Classification)] public void Semantic_Classification() { VisualStudio.Editor.SetText(@" Imports System Class Goo Inherits Attribute End Class"); VisualStudio.Editor.PlaceCaret("Goo"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); VisualStudio.Editor.PlaceCaret("Attribute"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "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 Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.IntegrationTest.Utilities; using Roslyn.Test.Utilities; using Xunit; using Xunit.Abstractions; namespace Roslyn.VisualStudio.IntegrationTests.VisualBasic { [Collection(nameof(SharedIntegrationHostFixture))] public class BasicClassification : AbstractEditorTest { protected override string LanguageName => LanguageNames.VisualBasic; public BasicClassification(VisualStudioInstanceFactory instanceFactory) : base(instanceFactory, nameof(BasicClassification)) { } [WpfFact, Trait(Traits.Feature, Traits.Features.Classification)] public void Verify_Color_Of_Some_Tokens() { VisualStudio.Editor.SetText(@"Imports System Imports MathAlias = System.Math Namespace Acme ''' <summary>innertext ''' </summary> ''' <!--comment--> ''' <![CDATA[cdata]]> ''' <typeparam name=""attribute"" /> Public Class Program Public Shared Sub Main(args As String()) Console.WriteLine(""Hello World"") 'comment End Sub End Class End Namespace"); VisualStudio.Editor.PlaceCaret("MathAlias"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "identifier"); VisualStudio.Editor.PlaceCaret("Namespace"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "keyword"); VisualStudio.Editor.PlaceCaret("summary"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - name"); VisualStudio.Editor.PlaceCaret("innertext"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - text"); VisualStudio.Editor.PlaceCaret("!--"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - delimiter"); VisualStudio.Editor.PlaceCaret("comment"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - comment"); VisualStudio.Editor.PlaceCaret("CDATA"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - delimiter"); VisualStudio.Editor.PlaceCaret("cdata"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "xml doc comment - cdata section"); VisualStudio.Editor.PlaceCaret("attribute"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "identifier"); VisualStudio.Editor.PlaceCaret("Class"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "keyword"); VisualStudio.Editor.PlaceCaret("Program"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); VisualStudio.Editor.PlaceCaret("Hello"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "string"); VisualStudio.Editor.PlaceCaret("comment"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "comment"); } [WpfFact, Trait(Traits.Feature, Traits.Features.Classification)] public void Semantic_Classification() { VisualStudio.Editor.SetText(@" Imports System Class Goo Inherits Attribute End Class"); VisualStudio.Editor.PlaceCaret("Goo"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); VisualStudio.Editor.PlaceCaret("Attribute"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/Core/Portable/Workspace/Solution/AnalyzerConfigDocument.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 { public sealed class AnalyzerConfigDocument : TextDocument { internal AnalyzerConfigDocument(Project project, AnalyzerConfigDocumentState state) : base(project, state, TextDocumentKind.AnalyzerConfigDocument) { } } }
// Licensed to the .NET Foundation under one or more 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 { public sealed class AnalyzerConfigDocument : TextDocument { internal AnalyzerConfigDocument(Project project, AnalyzerConfigDocumentState state) : base(project, state, TextDocumentKind.AnalyzerConfigDocument) { } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/Core/CommandHandlers/GoToAdjacentMemberCommandHandler.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.ComponentModel.Composition; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.Commanding; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor.Commanding; using Microsoft.VisualStudio.Text.Editor.Commanding.Commands; using Microsoft.VisualStudio.Text.Outlining; using Microsoft.VisualStudio.Utilities; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.CommandHandlers { [Export(typeof(ICommandHandler))] [ContentType(ContentTypeNames.RoslynContentType)] [Name(PredefinedCommandHandlerNames.GoToAdjacentMember)] internal class GoToAdjacentMemberCommandHandler : ICommandHandler<GoToNextMemberCommandArgs>, ICommandHandler<GoToPreviousMemberCommandArgs> { private readonly IOutliningManagerService _outliningManagerService; public string DisplayName => EditorFeaturesResources.Go_To_Adjacent_Member; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public GoToAdjacentMemberCommandHandler(IOutliningManagerService outliningManagerService) => _outliningManagerService = outliningManagerService; public CommandState GetCommandState(GoToNextMemberCommandArgs args) => GetCommandStateImpl(args); public bool ExecuteCommand(GoToNextMemberCommandArgs args, CommandExecutionContext context) => ExecuteCommandImpl(args, gotoNextMember: true, context); public CommandState GetCommandState(GoToPreviousMemberCommandArgs args) => GetCommandStateImpl(args); public bool ExecuteCommand(GoToPreviousMemberCommandArgs args, CommandExecutionContext context) => ExecuteCommandImpl(args, gotoNextMember: false, context); private static CommandState GetCommandStateImpl(EditorCommandArgs args) { var subjectBuffer = args.SubjectBuffer; var caretPoint = args.TextView.GetCaretPoint(subjectBuffer); if (!caretPoint.HasValue || !subjectBuffer.SupportsNavigationToAnyPosition()) { return CommandState.Unspecified; } var document = subjectBuffer.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges(); if (document?.SupportsSyntaxTree != true) { return CommandState.Unspecified; } return CommandState.Available; } private bool ExecuteCommandImpl(EditorCommandArgs args, bool gotoNextMember, CommandExecutionContext context) { var subjectBuffer = args.SubjectBuffer; var caretPoint = args.TextView.GetCaretPoint(subjectBuffer); if (!caretPoint.HasValue || !subjectBuffer.SupportsNavigationToAnyPosition()) { return false; } var document = subjectBuffer.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges(); if (document?.SupportsSyntaxTree != true) { return false; } int? targetPosition = null; using (context.OperationContext.AddScope(allowCancellation: true, description: EditorFeaturesResources.Navigating)) { var task = GetTargetPositionAsync(document, caretPoint.Value.Position, gotoNextMember, context.OperationContext.UserCancellationToken); targetPosition = task.WaitAndGetResult(context.OperationContext.UserCancellationToken); } if (targetPosition != null) { args.TextView.TryMoveCaretToAndEnsureVisible(new SnapshotPoint(subjectBuffer.CurrentSnapshot, targetPosition.Value), _outliningManagerService); } return true; } /// <summary> /// Internal for testing purposes. /// </summary> internal static async Task<int?> GetTargetPositionAsync(Document document, int caretPosition, bool next, CancellationToken cancellationToken) { var syntaxFactsService = document.GetLanguageService<ISyntaxFactsService>(); if (syntaxFactsService == null) { return null; } var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(true); var members = syntaxFactsService.GetMethodLevelMembers(root); if (members.Count == 0) { return null; } var starts = members.Select(m => MemberStart(m)).ToArray(); var index = Array.BinarySearch(starts, caretPosition); if (index >= 0) { // We're actually contained in a member, go to the next or previous. index = next ? index + 1 : index - 1; } else { // We're in between to members, ~index gives us the member we're before, so we'll just // advance to the start of it index = next ? ~index : ~index - 1; } // Wrap if necessary if (index >= members.Count) { index = 0; } else if (index < 0) { index = members.Count - 1; } return MemberStart(members[index]); } private static int MemberStart(SyntaxNode node) { // TODO: Better position within the node (e.g. attributes?) return node.SpanStart; } } }
// Licensed to the .NET Foundation under one or more 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.ComponentModel.Composition; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.Commanding; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor.Commanding; using Microsoft.VisualStudio.Text.Editor.Commanding.Commands; using Microsoft.VisualStudio.Text.Outlining; using Microsoft.VisualStudio.Utilities; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.CommandHandlers { [Export(typeof(ICommandHandler))] [ContentType(ContentTypeNames.RoslynContentType)] [Name(PredefinedCommandHandlerNames.GoToAdjacentMember)] internal class GoToAdjacentMemberCommandHandler : ICommandHandler<GoToNextMemberCommandArgs>, ICommandHandler<GoToPreviousMemberCommandArgs> { private readonly IOutliningManagerService _outliningManagerService; public string DisplayName => EditorFeaturesResources.Go_To_Adjacent_Member; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public GoToAdjacentMemberCommandHandler(IOutliningManagerService outliningManagerService) => _outliningManagerService = outliningManagerService; public CommandState GetCommandState(GoToNextMemberCommandArgs args) => GetCommandStateImpl(args); public bool ExecuteCommand(GoToNextMemberCommandArgs args, CommandExecutionContext context) => ExecuteCommandImpl(args, gotoNextMember: true, context); public CommandState GetCommandState(GoToPreviousMemberCommandArgs args) => GetCommandStateImpl(args); public bool ExecuteCommand(GoToPreviousMemberCommandArgs args, CommandExecutionContext context) => ExecuteCommandImpl(args, gotoNextMember: false, context); private static CommandState GetCommandStateImpl(EditorCommandArgs args) { var subjectBuffer = args.SubjectBuffer; var caretPoint = args.TextView.GetCaretPoint(subjectBuffer); if (!caretPoint.HasValue || !subjectBuffer.SupportsNavigationToAnyPosition()) { return CommandState.Unspecified; } var document = subjectBuffer.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges(); if (document?.SupportsSyntaxTree != true) { return CommandState.Unspecified; } return CommandState.Available; } private bool ExecuteCommandImpl(EditorCommandArgs args, bool gotoNextMember, CommandExecutionContext context) { var subjectBuffer = args.SubjectBuffer; var caretPoint = args.TextView.GetCaretPoint(subjectBuffer); if (!caretPoint.HasValue || !subjectBuffer.SupportsNavigationToAnyPosition()) { return false; } var document = subjectBuffer.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges(); if (document?.SupportsSyntaxTree != true) { return false; } int? targetPosition = null; using (context.OperationContext.AddScope(allowCancellation: true, description: EditorFeaturesResources.Navigating)) { var task = GetTargetPositionAsync(document, caretPoint.Value.Position, gotoNextMember, context.OperationContext.UserCancellationToken); targetPosition = task.WaitAndGetResult(context.OperationContext.UserCancellationToken); } if (targetPosition != null) { args.TextView.TryMoveCaretToAndEnsureVisible(new SnapshotPoint(subjectBuffer.CurrentSnapshot, targetPosition.Value), _outliningManagerService); } return true; } /// <summary> /// Internal for testing purposes. /// </summary> internal static async Task<int?> GetTargetPositionAsync(Document document, int caretPosition, bool next, CancellationToken cancellationToken) { var syntaxFactsService = document.GetLanguageService<ISyntaxFactsService>(); if (syntaxFactsService == null) { return null; } var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(true); var members = syntaxFactsService.GetMethodLevelMembers(root); if (members.Count == 0) { return null; } var starts = members.Select(m => MemberStart(m)).ToArray(); var index = Array.BinarySearch(starts, caretPosition); if (index >= 0) { // We're actually contained in a member, go to the next or previous. index = next ? index + 1 : index - 1; } else { // We're in between to members, ~index gives us the member we're before, so we'll just // advance to the start of it index = next ? ~index : ~index - 1; } // Wrap if necessary if (index >= members.Count) { index = 0; } else if (index < 0) { index = members.Count - 1; } return MemberStart(members[index]); } private static int MemberStart(SyntaxNode node) { // TODO: Better position within the node (e.g. attributes?) return node.SpanStart; } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/CSharp/Impl/Progression/CSharpGraphProvider.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.ComponentModel.Composition; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.VisualStudio.GraphModel; using Microsoft.VisualStudio.Language.Intellisense; using Microsoft.VisualStudio.LanguageServices.Implementation.Progression; using Microsoft.VisualStudio.Shell; namespace Microsoft.VisualStudio.LanguageServices.CSharp.Progression { [GraphProvider(Name = "CSharpRoslynProvider", ProjectCapability = "CSharp")] internal sealed class CSharpGraphProvider : AbstractGraphProvider { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CSharpGraphProvider( IThreadingContext threadingContext, IGlyphService glyphService, SVsServiceProvider serviceProvider, VisualStudioWorkspace workspace, IAsynchronousOperationListenerProvider listenerProvider) : base(threadingContext, glyphService, serviceProvider, workspace, listenerProvider) { } } }
// Licensed to the .NET Foundation under one or more 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.ComponentModel.Composition; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.VisualStudio.GraphModel; using Microsoft.VisualStudio.Language.Intellisense; using Microsoft.VisualStudio.LanguageServices.Implementation.Progression; using Microsoft.VisualStudio.Shell; namespace Microsoft.VisualStudio.LanguageServices.CSharp.Progression { [GraphProvider(Name = "CSharpRoslynProvider", ProjectCapability = "CSharp")] internal sealed class CSharpGraphProvider : AbstractGraphProvider { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CSharpGraphProvider( IThreadingContext threadingContext, IGlyphService glyphService, SVsServiceProvider serviceProvider, VisualStudioWorkspace workspace, IAsynchronousOperationListenerProvider listenerProvider) : base(threadingContext, glyphService, serviceProvider, workspace, listenerProvider) { } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Features/VisualBasic/Portable/GoToDefinition/VisualBasicGoToDefinitionSymbolService.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Composition Imports Microsoft.CodeAnalysis.GoToDefinition Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.VisualBasic.ExtractMethod Imports Microsoft.CodeAnalysis.VisualBasic.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.GoToDefinition <ExportLanguageService(GetType(IGoToDefinitionSymbolService), LanguageNames.VisualBasic), [Shared]> Friend Class VisualBasicGoToDefinitionSymbolService Inherits AbstractGoToDefinitionSymbolService <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New() End Sub Protected Overrides Function FindRelatedExplicitlyDeclaredSymbol(symbol As ISymbol, compilation As Compilation) As ISymbol Return symbol.FindRelatedExplicitlyDeclaredSymbol(compilation) End Function Protected Overrides Function GetTargetPositionIfControlFlow(semanticModel As SemanticModel, token As SyntaxToken) As Integer? Dim node = token.GetRequiredParent() If token.IsKind(SyntaxKind.ReturnKeyword, SyntaxKind.YieldKeyword) Then Return FindContainingReturnableConstruct(node).GetFirstToken().Span.Start End If Dim continueTarget = TryGetContinueTarget(node) If continueTarget IsNot Nothing Then Return continueTarget.GetFirstToken().Span.Start End If Dim exitTarget = TryGetExitTarget(node) If exitTarget IsNot Nothing Then Select Case node.Kind() Case SyntaxKind.ExitSubStatement Case SyntaxKind.ExitFunctionStatement Case SyntaxKind.ExitPropertyStatement Dim Symbol = semanticModel.GetDeclaredSymbol(exitTarget) Return Symbol.Locations.FirstOrNone().SourceSpan.Start End Select ' Exit Select, Exit While, Exit For, Exit ForEach, ... Return exitTarget.GetLastToken().Span.End End If Return Nothing End Function Private Shared Function TryGetExitTarget(node As SyntaxNode) As SyntaxNode Select Case node.Kind() Case SyntaxKind.ExitSelectStatement Return FindContainingSelect(node) Case SyntaxKind.ExitWhileStatement Return FindContainingWhile(node) Case SyntaxKind.ExitForStatement Return FindContainingFor(node) Case SyntaxKind.ExitDoStatement Return FindContainingDoLoop(node) Case SyntaxKind.ExitTryStatement Return FindContainingTry(node) Case SyntaxKind.ExitPropertyStatement Return FindContainingReturnableConstruct(node) Case SyntaxKind.ExitSubStatement Return FindContainingReturnableConstruct(node) Case SyntaxKind.ExitFunctionStatement Return FindContainingReturnableConstruct(node) End Select Return Nothing End Function Private Shared Function TryGetContinueTarget(node As SyntaxNode) As SyntaxNode Select Case node.Kind() Case SyntaxKind.ContinueWhileStatement Return FindContainingWhile(node) Case SyntaxKind.ContinueForStatement Return FindContainingFor(node) Case SyntaxKind.ContinueDoStatement Return FindContainingDoLoop(node) End Select Return Nothing End Function Private Shared Function FindContainingSelect(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.SelectBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingWhile(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.WhileBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingFor(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.ForBlock, SyntaxKind.ForEachBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingDoLoop(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.DoLoopUntilBlock, SyntaxKind.DoLoopWhileBlock, SyntaxKind.DoUntilLoopBlock, SyntaxKind.DoWhileLoopBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingTry(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.TryBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingReturnableConstruct(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsReturnableConstruct() node = node.Parent If node.IsKind(SyntaxKind.ClassBlock, SyntaxKind.StructureBlock, SyntaxKind.InterfaceBlock) Then Return Nothing End If End While Return node End Function End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Composition Imports Microsoft.CodeAnalysis.GoToDefinition Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.VisualBasic.ExtractMethod Imports Microsoft.CodeAnalysis.VisualBasic.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.GoToDefinition <ExportLanguageService(GetType(IGoToDefinitionSymbolService), LanguageNames.VisualBasic), [Shared]> Friend Class VisualBasicGoToDefinitionSymbolService Inherits AbstractGoToDefinitionSymbolService <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New() End Sub Protected Overrides Function FindRelatedExplicitlyDeclaredSymbol(symbol As ISymbol, compilation As Compilation) As ISymbol Return symbol.FindRelatedExplicitlyDeclaredSymbol(compilation) End Function Protected Overrides Function GetTargetPositionIfControlFlow(semanticModel As SemanticModel, token As SyntaxToken) As Integer? Dim node = token.GetRequiredParent() If token.IsKind(SyntaxKind.ReturnKeyword, SyntaxKind.YieldKeyword) Then Return FindContainingReturnableConstruct(node).GetFirstToken().Span.Start End If Dim continueTarget = TryGetContinueTarget(node) If continueTarget IsNot Nothing Then Return continueTarget.GetFirstToken().Span.Start End If Dim exitTarget = TryGetExitTarget(node) If exitTarget IsNot Nothing Then Select Case node.Kind() Case SyntaxKind.ExitSubStatement Case SyntaxKind.ExitFunctionStatement Case SyntaxKind.ExitPropertyStatement Dim Symbol = semanticModel.GetDeclaredSymbol(exitTarget) Return Symbol.Locations.FirstOrNone().SourceSpan.Start End Select ' Exit Select, Exit While, Exit For, Exit ForEach, ... Return exitTarget.GetLastToken().Span.End End If Return Nothing End Function Private Shared Function TryGetExitTarget(node As SyntaxNode) As SyntaxNode Select Case node.Kind() Case SyntaxKind.ExitSelectStatement Return FindContainingSelect(node) Case SyntaxKind.ExitWhileStatement Return FindContainingWhile(node) Case SyntaxKind.ExitForStatement Return FindContainingFor(node) Case SyntaxKind.ExitDoStatement Return FindContainingDoLoop(node) Case SyntaxKind.ExitTryStatement Return FindContainingTry(node) Case SyntaxKind.ExitPropertyStatement Return FindContainingReturnableConstruct(node) Case SyntaxKind.ExitSubStatement Return FindContainingReturnableConstruct(node) Case SyntaxKind.ExitFunctionStatement Return FindContainingReturnableConstruct(node) End Select Return Nothing End Function Private Shared Function TryGetContinueTarget(node As SyntaxNode) As SyntaxNode Select Case node.Kind() Case SyntaxKind.ContinueWhileStatement Return FindContainingWhile(node) Case SyntaxKind.ContinueForStatement Return FindContainingFor(node) Case SyntaxKind.ContinueDoStatement Return FindContainingDoLoop(node) End Select Return Nothing End Function Private Shared Function FindContainingSelect(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.SelectBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingWhile(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.WhileBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingFor(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.ForBlock, SyntaxKind.ForEachBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingDoLoop(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.DoLoopUntilBlock, SyntaxKind.DoLoopWhileBlock, SyntaxKind.DoUntilLoopBlock, SyntaxKind.DoWhileLoopBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingTry(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsKind(SyntaxKind.TryBlock) node = node.Parent If node.IsReturnableConstruct() Then Return Nothing End If End While Return node End Function Private Shared Function FindContainingReturnableConstruct(node As SyntaxNode) As SyntaxNode While node IsNot Nothing AndAlso Not node.IsReturnableConstruct() node = node.Parent If node.IsKind(SyntaxKind.ClassBlock, SyntaxKind.StructureBlock, SyntaxKind.InterfaceBlock) Then Return Nothing End If End While Return node End Function End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/VisualBasicTest/ExtractMethod/ExtractMethodTests.TriviaProcessor.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.ExtractMethod Partial Public Class ExtractMethodTests <[UseExportProvider]> Public Class TriviaProcessor <WorkItem(539281, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539281")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function TestCommentBeforeCode() As Threading.Tasks.Task Dim code = <text>Class C Sub M() [|'comment Console.Write(10)|] End Sub End Class</text> Dim expected = <text>Class C Sub M() NewMethod() End Sub Private Shared Sub NewMethod() 'comment Console.Write(10) End Sub End Class</text> Await TestExtractMethodAsync(code, expected) End Function <WorkItem(545173, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545173")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function LineContinuation() As Threading.Tasks.Task Dim code = <text>Module Program Sub Main Dim x = [|1. _ ToString|] End Sub End Module</text> Dim expected = <text>Module Program Sub Main Dim x = GetX() End Sub Private Function GetX() As String Return 1. _ ToString End Function End Module</text> Await TestExtractMethodAsync(code, expected) End Function <WorkItem(544568, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544568")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function LineContinuation2() As Threading.Tasks.Task Dim code = <text>Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub Main(args As String()) Dim x1 = Function(num _ As _ Integer ) Return [|num _ + 1|] End Function End Sub End Module</text> Dim expected = <text>Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub Main(args As String()) Dim x1 = Function(num _ As _ Integer ) Return NewMethod(num) End Function End Sub Private Function NewMethod(num As Integer) As Integer Return num _ + 1 End Function End Module</text> Await TestExtractMethodAsync(code, expected) End Function <WorkItem(529797, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529797")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function ImplicitLineContinuation() As Threading.Tasks.Task Dim code = <text>Imports System.Linq Module A Sub Main() Dim q = [|From x In "" Distinct|] ' Extract Method .ToString() End Sub End Module</text> Dim expected = <text>Imports System.Linq Module A Sub Main() Dim q = NewMethod() ' Extract Method .ToString() End Sub Private Function NewMethod() As System.Collections.Generic.IEnumerable(Of Char) Return From x In "" Distinct End Function End Module</text> Await TestExtractMethodAsync(code, expected) End Function <WorkItem(529797, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529797")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function ImplicitLineContinuation2() As Threading.Tasks.Task Dim code = <text>Imports System.Linq Module A Sub Main() Dim q = [|From x In "" Distinct|] .ToString() End Sub End Module</text> Dim expected = <text>Imports System.Linq Module A Sub Main() Dim q = NewMethod() .ToString() End Sub Private Function NewMethod() As System.Collections.Generic.IEnumerable(Of Char) Return From x In "" Distinct End Function End Module</text> Await TestExtractMethodAsync(code, expected) 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. Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.ExtractMethod Partial Public Class ExtractMethodTests <[UseExportProvider]> Public Class TriviaProcessor <WorkItem(539281, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539281")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function TestCommentBeforeCode() As Threading.Tasks.Task Dim code = <text>Class C Sub M() [|'comment Console.Write(10)|] End Sub End Class</text> Dim expected = <text>Class C Sub M() NewMethod() End Sub Private Shared Sub NewMethod() 'comment Console.Write(10) End Sub End Class</text> Await TestExtractMethodAsync(code, expected) End Function <WorkItem(545173, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545173")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function LineContinuation() As Threading.Tasks.Task Dim code = <text>Module Program Sub Main Dim x = [|1. _ ToString|] End Sub End Module</text> Dim expected = <text>Module Program Sub Main Dim x = GetX() End Sub Private Function GetX() As String Return 1. _ ToString End Function End Module</text> Await TestExtractMethodAsync(code, expected) End Function <WorkItem(544568, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544568")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function LineContinuation2() As Threading.Tasks.Task Dim code = <text>Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub Main(args As String()) Dim x1 = Function(num _ As _ Integer ) Return [|num _ + 1|] End Function End Sub End Module</text> Dim expected = <text>Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub Main(args As String()) Dim x1 = Function(num _ As _ Integer ) Return NewMethod(num) End Function End Sub Private Function NewMethod(num As Integer) As Integer Return num _ + 1 End Function End Module</text> Await TestExtractMethodAsync(code, expected) End Function <WorkItem(529797, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529797")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function ImplicitLineContinuation() As Threading.Tasks.Task Dim code = <text>Imports System.Linq Module A Sub Main() Dim q = [|From x In "" Distinct|] ' Extract Method .ToString() End Sub End Module</text> Dim expected = <text>Imports System.Linq Module A Sub Main() Dim q = NewMethod() ' Extract Method .ToString() End Sub Private Function NewMethod() As System.Collections.Generic.IEnumerable(Of Char) Return From x In "" Distinct End Function End Module</text> Await TestExtractMethodAsync(code, expected) End Function <WorkItem(529797, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529797")> <Fact, Trait(Traits.Feature, Traits.Features.ExtractMethod)> Public Async Function ImplicitLineContinuation2() As Threading.Tasks.Task Dim code = <text>Imports System.Linq Module A Sub Main() Dim q = [|From x In "" Distinct|] .ToString() End Sub End Module</text> Dim expected = <text>Imports System.Linq Module A Sub Main() Dim q = NewMethod() .ToString() End Sub Private Function NewMethod() As System.Collections.Generic.IEnumerable(Of Char) Return From x In "" Distinct End Function End Module</text> Await TestExtractMethodAsync(code, expected) End Function End Class End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/CSharpTest/UseNamedArguments/UseNamedArgumentsTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.CSharp.UseNamedArguments; using Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeRefactorings; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.UseNamedArguments { public class UseNamedArgumentsTests : AbstractCSharpCodeActionTest { private static readonly ParseOptions CSharp72 = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2); protected override CodeRefactoringProvider CreateCodeRefactoringProvider(Workspace workspace, TestParameters parameters) => new CSharpUseNamedArgumentsCodeRefactoringProvider(); private Task TestWithCSharp7(string initialMarkup, string expectedMarkup) { return TestAsync( initialMarkup, expectedMarkup, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7)); } private Task TestWithCSharp7_2(string initialMarkup, string expectedMarkup, int index = 0) { return TestAsync( initialMarkup, expectedMarkup, index: index, parseOptions: CSharp72); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestFirstArgument() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M([||]1, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestFirstArgument_CSharp7_2_FirstOption() { // First option only adds the named argument to the specific parameter you're on. await TestWithCSharp7_2( @"class C { void M(int arg1, int arg2) => M([||]1, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1, 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestFirstArgument_CSharp7_2_SecondOption() { // Second option only adds the named argument to parameter you're on and all trailing parameters. await TestWithCSharp7_2( @"class C { void M(int arg1, int arg2) => M([||]1, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1, arg2: 2); }", index: 1); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNonFirstArgument() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M(1, [||]2); }", @"class C { void M(int arg1, int arg2) => M(1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNonFirstArgument_CSharp_7_2() { // Because we're on the last argument, we should only offer one refactoring to the user. var initialMarkup = @"class C { void M(int arg1, int arg2) => M(1, [||]2); }"; await TestActionCountAsync(initialMarkup, count: 1, parameters: new TestParameters(parseOptions: CSharp72)); await TestWithCSharp7_2( initialMarkup, @"class C { void M(int arg1, int arg2) => M(1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestDelegate() { await TestWithCSharp7( @"class C { void M(System.Action<int> f) => f([||]1); }", @"class C { void M(System.Action<int> f) => f(obj: 1); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestConditionalMethod() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => this?.M([||]1, 2); }", @"class C { void M(int arg1, int arg2) => this?.M(arg1: 1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestConditionalIndexer() { await TestWithCSharp7( @"class C { int? this[int arg1, int arg2] => this?[[||]1, 2]; }", @"class C { int? this[int arg1, int arg2] => this?[arg1: 1, arg2: 2]; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestThisConstructorInitializer() { await TestWithCSharp7( @"class C { C(int arg1, int arg2) {} C() : this([||]1, 2) {} }", @"class C { C(int arg1, int arg2) {} C() : this(arg1: 1, arg2: 2) {} }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestBaseConstructorInitializer() { await TestWithCSharp7( @"class C { public C(int arg1, int arg2) {} } class D : C { D() : base([||]1, 2) {} }", @"class C { public C(int arg1, int arg2) {} } class D : C { D() : base(arg1: 1, arg2: 2) {} }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestConstructor() { await TestWithCSharp7( @"class C { C(int arg1, int arg2) { new C([||]1, 2); } }", @"class C { C(int arg1, int arg2) { new C(arg1: 1, arg2: 2); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestIndexer() { await TestWithCSharp7( @"class C { char M(string arg1) => arg1[[||]0]; }", @"class C { char M(string arg1) => arg1[index: 0]; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnArrayIndexer() { await TestMissingInRegularAndScriptAsync( @"class C { int M(int[] arg1) => arg1[[||]0]; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnConditionalArrayIndexer() { await TestMissingInRegularAndScriptAsync( @"class C { int? M(int[] arg1) => arg1?[[||]0]; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnEmptyArgumentList() { await TestMissingInRegularAndScriptAsync( @"class C { void M() => M([||]); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnExistingArgumentName() { await TestMissingInRegularAndScriptAsync( @"class C { void M(int arg) => M([||]arg: 1); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestEmptyParams() { await TestWithCSharp7( @"class C { void M(int arg1, params int[] arg2) => M([||]1); }", @"class C { void M(int arg1, params int[] arg2) => M(arg1: 1); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestSingleParams() { await TestWithCSharp7( @"class C { void M(int arg1, params int[] arg2) => M([||]1, 2); }", @"class C { void M(int arg1, params int[] arg2) => M(arg1: 1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNamedParams() { await TestWithCSharp7( @"class C { void M(int arg1, params int[] arg2) => M([||]1, arg2: new int[0]); }", @"class C { void M(int arg1, params int[] arg2) => M(arg1: 1, arg2: new int[0]); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestExistingArgumentNames() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M([||]1, arg2: 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestExistingUnorderedArgumentNames() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2, int arg3) => M([||]1, arg3: 3, arg2: 2); }", @"class C { void M(int arg1, int arg2, int arg3) => M(arg1: 1, arg3: 3, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestPreserveTrivia() { await TestWithCSharp7( @"class C { void M(int arg1, ref int arg2) => M( [||]1, ref arg1 ); }", @"class C { void M(int arg1, ref int arg2) => M( arg1: 1, arg2: ref arg1 ); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnNameOf() { await TestMissingInRegularAndScriptAsync( @"class C { string M() => nameof([||]M); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAttribute() { await TestWithCSharp7( @"[C([||]1, 2)] class C : System.Attribute { public C(int arg1, int arg2) {} }", @"[C(arg1: 1, arg2: 2)] class C : System.Attribute { public C(int arg1, int arg2) {} }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAttributeWithNamedProperties() { await TestWithCSharp7( @"[C([||]1, P = 2)] class C : System.Attribute { public C(int arg1) {} public int P { get; set; } }", @"[C(arg1: 1, P = 2)] class C : System.Attribute { public C(int arg1) {} public int P { get; set; } }"); } [WorkItem(35525, "https://github.com/dotnet/roslyn/issues/35525")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAvailableOnSelectionOfArgument1() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M([|1 + 2|], 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAvailableOnFirstTokenOfArgument1() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M([||]1 + 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAvailableOnFirstTokenOfArgument2() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M(1[||] + 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument1() { await TestWithCSharp7( @" using System; class C { void M(Action arg1, int arg2) => M([||]() => { }, 2); }", @" using System; class C { void M(Action arg1, int arg2) => M(arg1: () => { }, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument2_CSharp7() { await TestInRegularAndScript1Async( @"class C { void M(int arg1, int arg2) => M(1 [||]+ 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }", parameters: new TestParameters(parseOptions: TestOptions.Regular7)); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument2() { await TestInRegularAndScript1Async( @"class C { void M(int arg1, int arg2) => M(1 [||]+ 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, 2); }", parameters: new TestParameters(parseOptions: TestOptions.Regular7_3)); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument3() { await TestWithCSharp7( @" using System; class C { void M(Action arg1, int arg2) => M(() => { [||] }, 2); }", @" using System; class C { void M(Action arg1, int arg2) => M(arg1: () => { }, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument4() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M(1 [||]+ 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingNotOnStartingLineOfArgument1() { await TestMissingAsync( @" using System; class C { void M(Action arg1, int arg2) => M(() => { [||] }, 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingWithSelection() { await TestMissingAsync( @" using System; class C { void M(Action arg1, int arg2) => M([|1 + 2|], 3); }"); } [WorkItem(19175, "https://github.com/dotnet/roslyn/issues/19175")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestCaretPositionAtTheEnd1() { await TestWithCSharp7( @"class C { void M(int arg1) => M(arg1[||]); }", @"class C { void M(int arg1) => M(arg1: arg1); }"); } [WorkItem(19175, "https://github.com/dotnet/roslyn/issues/19175")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestCaretPositionAtTheEnd2() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M(arg1[||], arg2); }", @"class C { void M(int arg1, int arg2) => M(arg1: arg1, arg2: arg2); }"); } [WorkItem(19758, "https://github.com/dotnet/roslyn/issues/19758")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestOnTuple() { await TestInRegularAndScript1Async( @"using System.Linq; class C { void M(int[] arr) => arr.Zip(arr, (p1, p2) => ([||]p1, p2)); } ", @"using System.Linq; class C { void M(int[] arr) => arr.Zip(arr, resultSelector: (p1, p2) => (p1, p2)); } "); } [WorkItem(23269, "https://github.com/dotnet/roslyn/issues/23269")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestCharacterEscape1() { await TestWithCSharp7( @"class C { void M(int @default, int @params) => M([||]1, 2); }", @"class C { void M(int @default, int @params) => M(@default: 1, @params: 2); }"); } [WorkItem(23269, "https://github.com/dotnet/roslyn/issues/23269")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestCharacterEscape2() { await TestWithCSharp7( @"[C([||]1, 2)] class C : System.Attribute { public C(int @default, int @params) {} }", @"[C(@default: 1, @params: 2)] class C : System.Attribute { public C(int @default, int @params) {} }"); } [Fact, WorkItem(39852, "https://github.com/dotnet/roslyn/issues/39852")] public async Task TestMissingForImplicitRangeIndexer() { await TestMissingInRegularAndScriptAsync( @"class C { string M(string arg1) => arg1[[||]1..^1]; }" + TestSources.Range + TestSources.Index); } [Fact, WorkItem(39852, "https://github.com/dotnet/roslyn/issues/39852")] public async Task TestMissingForImplicitIndexIndexer() { await TestMissingInRegularAndScriptAsync( @"class C { string M(string arg1) => arg1[[||]^1]; }" + TestSources.Index); } [Fact, WorkItem(39852, "https://github.com/dotnet/roslyn/issues/39852")] public async Task TestForRealRangeIndexer() { await TestInRegularAndScriptAsync( @"using System; class C { int this[Range range] => default; int M(C arg1) => arg1[[||]1..^1]; }" + TestSources.Range + TestSources.Index, @"using System; class C { int this[Range range] => default; int M(C arg1) => arg1[range: 1..^1]; }" + TestSources.Range + TestSources.Index); } [Fact, WorkItem(39852, "https://github.com/dotnet/roslyn/issues/39852")] public async Task TestForRealIndexIndexer() { await TestInRegularAndScriptAsync( @"using System; class C { int this[Index index] => default; int M(C arg1) => arg1[[||]^1]; }" + TestSources.Index, @"using System; class C { int this[Index index] => default; int M(C arg1) => arg1[index: ^1]; }" + TestSources.Index); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNoTrailingArgumentsToName() { // Because we're on the last argument that doesn't have a name, we should only offer one refactoring to the user. var initialMarkup = @"class C { void M(int arg1, int arg2, int arg3) => M(1, [||]2, arg3: 3); }"; await TestActionCountAsync(initialMarkup, count: 1); await TestInRegularAndScriptAsync( initialMarkup, @"class C { void M(int arg1, int arg2, int arg3) => M(1, arg2: 2, arg3: 3); }"); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.CSharp.UseNamedArguments; using Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeRefactorings; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.UseNamedArguments { public class UseNamedArgumentsTests : AbstractCSharpCodeActionTest { private static readonly ParseOptions CSharp72 = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2); protected override CodeRefactoringProvider CreateCodeRefactoringProvider(Workspace workspace, TestParameters parameters) => new CSharpUseNamedArgumentsCodeRefactoringProvider(); private Task TestWithCSharp7(string initialMarkup, string expectedMarkup) { return TestAsync( initialMarkup, expectedMarkup, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7)); } private Task TestWithCSharp7_2(string initialMarkup, string expectedMarkup, int index = 0) { return TestAsync( initialMarkup, expectedMarkup, index: index, parseOptions: CSharp72); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestFirstArgument() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M([||]1, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestFirstArgument_CSharp7_2_FirstOption() { // First option only adds the named argument to the specific parameter you're on. await TestWithCSharp7_2( @"class C { void M(int arg1, int arg2) => M([||]1, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1, 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestFirstArgument_CSharp7_2_SecondOption() { // Second option only adds the named argument to parameter you're on and all trailing parameters. await TestWithCSharp7_2( @"class C { void M(int arg1, int arg2) => M([||]1, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1, arg2: 2); }", index: 1); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNonFirstArgument() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M(1, [||]2); }", @"class C { void M(int arg1, int arg2) => M(1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNonFirstArgument_CSharp_7_2() { // Because we're on the last argument, we should only offer one refactoring to the user. var initialMarkup = @"class C { void M(int arg1, int arg2) => M(1, [||]2); }"; await TestActionCountAsync(initialMarkup, count: 1, parameters: new TestParameters(parseOptions: CSharp72)); await TestWithCSharp7_2( initialMarkup, @"class C { void M(int arg1, int arg2) => M(1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestDelegate() { await TestWithCSharp7( @"class C { void M(System.Action<int> f) => f([||]1); }", @"class C { void M(System.Action<int> f) => f(obj: 1); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestConditionalMethod() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => this?.M([||]1, 2); }", @"class C { void M(int arg1, int arg2) => this?.M(arg1: 1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestConditionalIndexer() { await TestWithCSharp7( @"class C { int? this[int arg1, int arg2] => this?[[||]1, 2]; }", @"class C { int? this[int arg1, int arg2] => this?[arg1: 1, arg2: 2]; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestThisConstructorInitializer() { await TestWithCSharp7( @"class C { C(int arg1, int arg2) {} C() : this([||]1, 2) {} }", @"class C { C(int arg1, int arg2) {} C() : this(arg1: 1, arg2: 2) {} }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestBaseConstructorInitializer() { await TestWithCSharp7( @"class C { public C(int arg1, int arg2) {} } class D : C { D() : base([||]1, 2) {} }", @"class C { public C(int arg1, int arg2) {} } class D : C { D() : base(arg1: 1, arg2: 2) {} }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestConstructor() { await TestWithCSharp7( @"class C { C(int arg1, int arg2) { new C([||]1, 2); } }", @"class C { C(int arg1, int arg2) { new C(arg1: 1, arg2: 2); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestIndexer() { await TestWithCSharp7( @"class C { char M(string arg1) => arg1[[||]0]; }", @"class C { char M(string arg1) => arg1[index: 0]; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnArrayIndexer() { await TestMissingInRegularAndScriptAsync( @"class C { int M(int[] arg1) => arg1[[||]0]; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnConditionalArrayIndexer() { await TestMissingInRegularAndScriptAsync( @"class C { int? M(int[] arg1) => arg1?[[||]0]; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnEmptyArgumentList() { await TestMissingInRegularAndScriptAsync( @"class C { void M() => M([||]); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnExistingArgumentName() { await TestMissingInRegularAndScriptAsync( @"class C { void M(int arg) => M([||]arg: 1); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestEmptyParams() { await TestWithCSharp7( @"class C { void M(int arg1, params int[] arg2) => M([||]1); }", @"class C { void M(int arg1, params int[] arg2) => M(arg1: 1); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestSingleParams() { await TestWithCSharp7( @"class C { void M(int arg1, params int[] arg2) => M([||]1, 2); }", @"class C { void M(int arg1, params int[] arg2) => M(arg1: 1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNamedParams() { await TestWithCSharp7( @"class C { void M(int arg1, params int[] arg2) => M([||]1, arg2: new int[0]); }", @"class C { void M(int arg1, params int[] arg2) => M(arg1: 1, arg2: new int[0]); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestExistingArgumentNames() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M([||]1, arg2: 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestExistingUnorderedArgumentNames() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2, int arg3) => M([||]1, arg3: 3, arg2: 2); }", @"class C { void M(int arg1, int arg2, int arg3) => M(arg1: 1, arg3: 3, arg2: 2); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestPreserveTrivia() { await TestWithCSharp7( @"class C { void M(int arg1, ref int arg2) => M( [||]1, ref arg1 ); }", @"class C { void M(int arg1, ref int arg2) => M( arg1: 1, arg2: ref arg1 ); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingOnNameOf() { await TestMissingInRegularAndScriptAsync( @"class C { string M() => nameof([||]M); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAttribute() { await TestWithCSharp7( @"[C([||]1, 2)] class C : System.Attribute { public C(int arg1, int arg2) {} }", @"[C(arg1: 1, arg2: 2)] class C : System.Attribute { public C(int arg1, int arg2) {} }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAttributeWithNamedProperties() { await TestWithCSharp7( @"[C([||]1, P = 2)] class C : System.Attribute { public C(int arg1) {} public int P { get; set; } }", @"[C(arg1: 1, P = 2)] class C : System.Attribute { public C(int arg1) {} public int P { get; set; } }"); } [WorkItem(35525, "https://github.com/dotnet/roslyn/issues/35525")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAvailableOnSelectionOfArgument1() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M([|1 + 2|], 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAvailableOnFirstTokenOfArgument1() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M([||]1 + 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestAvailableOnFirstTokenOfArgument2() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M(1[||] + 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument1() { await TestWithCSharp7( @" using System; class C { void M(Action arg1, int arg2) => M([||]() => { }, 2); }", @" using System; class C { void M(Action arg1, int arg2) => M(arg1: () => { }, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument2_CSharp7() { await TestInRegularAndScript1Async( @"class C { void M(int arg1, int arg2) => M(1 [||]+ 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }", parameters: new TestParameters(parseOptions: TestOptions.Regular7)); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument2() { await TestInRegularAndScript1Async( @"class C { void M(int arg1, int arg2) => M(1 [||]+ 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, 2); }", parameters: new TestParameters(parseOptions: TestOptions.Regular7_3)); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument3() { await TestWithCSharp7( @" using System; class C { void M(Action arg1, int arg2) => M(() => { [||] }, 2); }", @" using System; class C { void M(Action arg1, int arg2) => M(arg1: () => { }, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNotMissingWhenInsideSingleLineArgument4() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M(1 [||]+ 2, 2); }", @"class C { void M(int arg1, int arg2) => M(arg1: 1 + 2, arg2: 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingNotOnStartingLineOfArgument1() { await TestMissingAsync( @" using System; class C { void M(Action arg1, int arg2) => M(() => { [||] }, 2); }"); } [WorkItem(18848, "https://github.com/dotnet/roslyn/issues/18848")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestMissingWithSelection() { await TestMissingAsync( @" using System; class C { void M(Action arg1, int arg2) => M([|1 + 2|], 3); }"); } [WorkItem(19175, "https://github.com/dotnet/roslyn/issues/19175")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestCaretPositionAtTheEnd1() { await TestWithCSharp7( @"class C { void M(int arg1) => M(arg1[||]); }", @"class C { void M(int arg1) => M(arg1: arg1); }"); } [WorkItem(19175, "https://github.com/dotnet/roslyn/issues/19175")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestCaretPositionAtTheEnd2() { await TestWithCSharp7( @"class C { void M(int arg1, int arg2) => M(arg1[||], arg2); }", @"class C { void M(int arg1, int arg2) => M(arg1: arg1, arg2: arg2); }"); } [WorkItem(19758, "https://github.com/dotnet/roslyn/issues/19758")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestOnTuple() { await TestInRegularAndScript1Async( @"using System.Linq; class C { void M(int[] arr) => arr.Zip(arr, (p1, p2) => ([||]p1, p2)); } ", @"using System.Linq; class C { void M(int[] arr) => arr.Zip(arr, resultSelector: (p1, p2) => (p1, p2)); } "); } [WorkItem(23269, "https://github.com/dotnet/roslyn/issues/23269")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestCharacterEscape1() { await TestWithCSharp7( @"class C { void M(int @default, int @params) => M([||]1, 2); }", @"class C { void M(int @default, int @params) => M(@default: 1, @params: 2); }"); } [WorkItem(23269, "https://github.com/dotnet/roslyn/issues/23269")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestCharacterEscape2() { await TestWithCSharp7( @"[C([||]1, 2)] class C : System.Attribute { public C(int @default, int @params) {} }", @"[C(@default: 1, @params: 2)] class C : System.Attribute { public C(int @default, int @params) {} }"); } [Fact, WorkItem(39852, "https://github.com/dotnet/roslyn/issues/39852")] public async Task TestMissingForImplicitRangeIndexer() { await TestMissingInRegularAndScriptAsync( @"class C { string M(string arg1) => arg1[[||]1..^1]; }" + TestSources.Range + TestSources.Index); } [Fact, WorkItem(39852, "https://github.com/dotnet/roslyn/issues/39852")] public async Task TestMissingForImplicitIndexIndexer() { await TestMissingInRegularAndScriptAsync( @"class C { string M(string arg1) => arg1[[||]^1]; }" + TestSources.Index); } [Fact, WorkItem(39852, "https://github.com/dotnet/roslyn/issues/39852")] public async Task TestForRealRangeIndexer() { await TestInRegularAndScriptAsync( @"using System; class C { int this[Range range] => default; int M(C arg1) => arg1[[||]1..^1]; }" + TestSources.Range + TestSources.Index, @"using System; class C { int this[Range range] => default; int M(C arg1) => arg1[range: 1..^1]; }" + TestSources.Range + TestSources.Index); } [Fact, WorkItem(39852, "https://github.com/dotnet/roslyn/issues/39852")] public async Task TestForRealIndexIndexer() { await TestInRegularAndScriptAsync( @"using System; class C { int this[Index index] => default; int M(C arg1) => arg1[[||]^1]; }" + TestSources.Index, @"using System; class C { int this[Index index] => default; int M(C arg1) => arg1[index: ^1]; }" + TestSources.Index); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNamedArguments)] public async Task TestNoTrailingArgumentsToName() { // Because we're on the last argument that doesn't have a name, we should only offer one refactoring to the user. var initialMarkup = @"class C { void M(int arg1, int arg2, int arg3) => M(1, [||]2, arg3: 3); }"; await TestActionCountAsync(initialMarkup, count: 1); await TestInRegularAndScriptAsync( initialMarkup, @"class C { void M(int arg1, int arg2, int arg3) => M(1, arg2: 2, arg3: 3); }"); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/VisualBasic/Portable/Operations/VisualBasicOperationFactory_Methods.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Symbols.AnonymousTypeManager Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.Operations Partial Friend NotInheritable Class VisualBasicOperationFactory Private Shared Function IsMidStatement(node As BoundNode) As Boolean If node.Kind = BoundKind.Conversion Then node = DirectCast(node, BoundConversion).Operand If node.Kind = BoundKind.UserDefinedConversion Then node = DirectCast(node, BoundUserDefinedConversion).Operand End If End If Return node.Kind = BoundKind.MidResult End Function Friend Function CreateCompoundAssignmentRightOperand(boundAssignment As BoundAssignmentOperator) As IOperation Dim binaryOperator As BoundExpression = Nothing Select Case boundAssignment.Right.Kind Case BoundKind.Conversion Dim inConversionNode = DirectCast(boundAssignment.Right, BoundConversion) binaryOperator = GetConversionOperand(inConversionNode) Case BoundKind.UserDefinedBinaryOperator, BoundKind.BinaryOperator binaryOperator = boundAssignment.Right Case Else Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) End Select Dim operatorInfo As BinaryOperatorInfo Select Case binaryOperator.Kind Case BoundKind.BinaryOperator operatorInfo = GetBinaryOperatorInfo(DirectCast(binaryOperator, BoundBinaryOperator)) Return Create(operatorInfo.RightOperand) Case BoundKind.UserDefinedBinaryOperator Dim userDefinedOperator = DirectCast(binaryOperator, BoundUserDefinedBinaryOperator) operatorInfo = GetUserDefinedBinaryOperatorInfo(userDefinedOperator) Return GetUserDefinedBinaryOperatorChild(userDefinedOperator, operatorInfo.RightOperand) Case Else Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) End Select End Function Private Function CreateCompoundAssignment(boundAssignment As BoundAssignmentOperator) As ICompoundAssignmentOperation Debug.Assert(boundAssignment.LeftOnTheRightOpt IsNot Nothing) Dim inConversion = New Conversion(Conversions.Identity) Dim outConversion As Conversion = inConversion Dim binaryOperator As BoundExpression = Nothing Select Case boundAssignment.Right.Kind Case BoundKind.Conversion Dim inConversionNode = DirectCast(boundAssignment.Right, BoundConversion) outConversion = CreateConversion(inConversionNode) binaryOperator = GetConversionOperand(inConversionNode) Case BoundKind.UserDefinedBinaryOperator, BoundKind.BinaryOperator binaryOperator = boundAssignment.Right Case Else Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) End Select Dim operatorInfo As BinaryOperatorInfo Select Case binaryOperator.Kind Case BoundKind.BinaryOperator operatorInfo = GetBinaryOperatorInfo(DirectCast(binaryOperator, BoundBinaryOperator)) Case BoundKind.UserDefinedBinaryOperator Dim userDefinedOperator = DirectCast(binaryOperator, BoundUserDefinedBinaryOperator) operatorInfo = GetUserDefinedBinaryOperatorInfo(userDefinedOperator) Case Else Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) End Select Dim leftOnTheRight As BoundExpression = operatorInfo.LeftOperand If leftOnTheRight.Kind = BoundKind.Conversion Then Dim outConversionNode = DirectCast(leftOnTheRight, BoundConversion) inConversion = CreateConversion(outConversionNode) leftOnTheRight = GetConversionOperand(outConversionNode) End If Debug.Assert(leftOnTheRight Is boundAssignment.LeftOnTheRightOpt) Dim target As IOperation = Create(boundAssignment.Left) Dim value As IOperation = CreateCompoundAssignmentRightOperand(boundAssignment) Dim syntax As SyntaxNode = boundAssignment.Syntax Dim type As ITypeSymbol = boundAssignment.Type Dim isImplicit As Boolean = boundAssignment.WasCompilerGenerated Return New CompoundAssignmentOperation(inConversion, outConversion, operatorInfo.OperatorKind, operatorInfo.IsLifted, operatorInfo.IsChecked, operatorInfo.OperatorMethod, target, value, _semanticModel, syntax, type, isImplicit) End Function Private Structure BinaryOperatorInfo Public Sub New(leftOperand As BoundExpression, rightOperand As BoundExpression, binaryOperatorKind As BinaryOperatorKind, operatorMethod As MethodSymbol, isLifted As Boolean, isChecked As Boolean, isCompareText As Boolean) Me.LeftOperand = leftOperand Me.RightOperand = rightOperand Me.OperatorKind = binaryOperatorKind Me.OperatorMethod = operatorMethod Me.IsLifted = isLifted Me.IsChecked = isChecked Me.IsCompareText = isCompareText End Sub Public ReadOnly LeftOperand As BoundExpression Public ReadOnly RightOperand As BoundExpression Public ReadOnly OperatorKind As BinaryOperatorKind Public ReadOnly OperatorMethod As MethodSymbol Public ReadOnly IsLifted As Boolean Public ReadOnly IsChecked As Boolean Public ReadOnly IsCompareText As Boolean End Structure Private Shared Function GetBinaryOperatorInfo(boundBinaryOperator As BoundBinaryOperator) As BinaryOperatorInfo Return New BinaryOperatorInfo( leftOperand:=boundBinaryOperator.Left, rightOperand:=boundBinaryOperator.Right, binaryOperatorKind:=Helper.DeriveBinaryOperatorKind(boundBinaryOperator.OperatorKind, boundBinaryOperator.Left), operatorMethod:=Nothing, isLifted:=(boundBinaryOperator.OperatorKind And VisualBasic.BinaryOperatorKind.Lifted) <> 0, isChecked:=boundBinaryOperator.Checked, isCompareText:=(boundBinaryOperator.OperatorKind And VisualBasic.BinaryOperatorKind.CompareText) <> 0) End Function Private Shared Function GetUserDefinedBinaryOperatorInfo(boundUserDefinedBinaryOperator As BoundUserDefinedBinaryOperator) As BinaryOperatorInfo Return New BinaryOperatorInfo( leftOperand:=GetUserDefinedBinaryOperatorChildBoundNode(boundUserDefinedBinaryOperator, 0), rightOperand:=GetUserDefinedBinaryOperatorChildBoundNode(boundUserDefinedBinaryOperator, 1), binaryOperatorKind:=Helper.DeriveBinaryOperatorKind(boundUserDefinedBinaryOperator.OperatorKind, leftOpt:=Nothing), operatorMethod:=If(boundUserDefinedBinaryOperator.UnderlyingExpression.Kind = BoundKind.Call, boundUserDefinedBinaryOperator.Call.Method, Nothing), isLifted:=(boundUserDefinedBinaryOperator.OperatorKind And VisualBasic.BinaryOperatorKind.Lifted) <> 0, isChecked:=boundUserDefinedBinaryOperator.Checked, isCompareText:=False) End Function Private Function GetUserDefinedBinaryOperatorChild([operator] As BoundUserDefinedBinaryOperator, child As BoundExpression) As IOperation If child IsNot Nothing Then Return Create(child) End If Dim isImplicit As Boolean = [operator].UnderlyingExpression.WasCompilerGenerated Return OperationFactory.CreateInvalidOperation(_semanticModel, [operator].UnderlyingExpression.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit) End Function Private Shared Function GetUserDefinedBinaryOperatorChildBoundNode([operator] As BoundUserDefinedBinaryOperator, index As Integer) As BoundExpression If [operator].UnderlyingExpression.Kind = BoundKind.Call Then If index = 0 Then Return [operator].Left ElseIf index = 1 Then Return [operator].Right Else Throw ExceptionUtilities.UnexpectedValue(index) End If End If Return GetChildOfBadExpressionBoundNode([operator].UnderlyingExpression, index) End Function Friend Function DeriveArguments(boundNode As BoundNode) As ImmutableArray(Of IArgumentOperation) Select Case boundNode.Kind Case BoundKind.Call Dim boundCall = DirectCast(boundNode, BoundCall) Return DeriveArguments(boundCall.Arguments, boundCall.Method.Parameters, boundCall.DefaultArguments) Case BoundKind.ObjectCreationExpression Dim boundCreation = DirectCast(boundNode, BoundObjectCreationExpression) If boundCreation.Arguments.IsDefault Then Return ImmutableArray(Of IArgumentOperation).Empty End If Return If(boundCreation.ConstructorOpt Is Nothing, ImmutableArray(Of IArgumentOperation).Empty, DeriveArguments(boundCreation.Arguments, boundCreation.ConstructorOpt.Parameters, boundCreation.DefaultArguments)) Case BoundKind.PropertyAccess Dim boundProperty = DirectCast(boundNode, BoundPropertyAccess) Return If(boundProperty.Arguments.Length = 0, ImmutableArray(Of IArgumentOperation).Empty, DeriveArguments(boundProperty.Arguments, boundProperty.PropertySymbol.Parameters, boundProperty.DefaultArguments)) Case BoundKind.RaiseEventStatement Dim boundRaiseEvent = DirectCast(boundNode, BoundRaiseEventStatement) Return DeriveArguments(DirectCast(boundRaiseEvent.EventInvocation, BoundCall)) Case Else Throw ExceptionUtilities.UnexpectedValue(boundNode.Kind) End Select End Function Friend Function DeriveArguments(boundArguments As ImmutableArray(Of BoundExpression), parameters As ImmutableArray(Of VisualBasic.Symbols.ParameterSymbol), ByRef defaultArguments As BitVector) As ImmutableArray(Of IArgumentOperation) Dim argumentsLength As Integer = boundArguments.Length Debug.Assert(argumentsLength = parameters.Length) Dim arguments As ArrayBuilder(Of IArgumentOperation) = ArrayBuilder(Of IArgumentOperation).GetInstance(argumentsLength) For index As Integer = 0 To argumentsLength - 1 Step 1 arguments.Add(DeriveArgument(index, boundArguments(index), parameters, defaultArguments(index))) Next Return arguments.ToImmutableAndFree() End Function Private Function DeriveArgument( index As Integer, argument As BoundExpression, parameters As ImmutableArray(Of VisualBasic.Symbols.ParameterSymbol), isDefault As Boolean ) As IArgumentOperation Dim isImplicit As Boolean = argument.WasCompilerGenerated AndAlso argument.Syntax.Kind <> SyntaxKind.OmittedArgument Select Case argument.Kind Case BoundKind.ByRefArgumentWithCopyBack Dim byRefArgument = DirectCast(argument, BoundByRefArgumentWithCopyBack) Dim parameter = parameters(index) Return CreateArgumentOperation( ArgumentKind.Explicit, parameter, byRefArgument.OriginalArgument, CreateConversion(byRefArgument.InConversion), CreateConversion(byRefArgument.OutConversion), isImplicit) Case Else Dim lastParameterIndex = parameters.Length - 1 Dim kind As ArgumentKind = ArgumentKind.Explicit If argument.WasCompilerGenerated Then If isDefault Then kind = ArgumentKind.DefaultValue ElseIf argument.Kind = BoundKind.ArrayCreation AndAlso DirectCast(argument, BoundArrayCreation).IsParamArrayArgument Then kind = ArgumentKind.ParamArray End If End If Return CreateArgumentOperation( kind, parameters(index), argument, New Conversion(Conversions.Identity), New Conversion(Conversions.Identity), isImplicit) End Select End Function Private Function CreateArgumentOperation( kind As ArgumentKind, parameter As IParameterSymbol, valueNode As BoundNode, inConversion As Conversion, outConversion As Conversion, isImplicit As Boolean) As IArgumentOperation ' put argument syntax to argument operation Dim syntax = If(valueNode.Syntax.Kind = SyntaxKind.OmittedArgument, valueNode.Syntax, TryCast(valueNode.Syntax?.Parent, ArgumentSyntax)) Dim value = Create(valueNode) If syntax Is Nothing Then syntax = value.Syntax isImplicit = True End If Return New ArgumentOperation( kind, parameter, value, inConversion, outConversion, _semanticModel, syntax, isImplicit) End Function Friend Function CreateReceiverOperation(node As BoundNode, symbol As ISymbol) As IOperation If node Is Nothing OrElse node.Kind = BoundKind.TypeExpression Then Return Nothing End If If symbol IsNot Nothing AndAlso node.WasCompilerGenerated AndAlso symbol.IsStatic AndAlso (node.Kind = BoundKind.MeReference OrElse node.Kind = BoundKind.WithLValueExpressionPlaceholder OrElse node.Kind = BoundKind.WithRValueExpressionPlaceholder) Then Return Nothing End If Return Create(node) End Function Private Shared Function ParameterIsParamArray(parameter As VisualBasic.Symbols.ParameterSymbol) As Boolean Return If(parameter.IsParamArray AndAlso parameter.Type.Kind = SymbolKind.ArrayType, DirectCast(parameter.Type, VisualBasic.Symbols.ArrayTypeSymbol).IsSZArray, False) End Function Private Function GetChildOfBadExpression(parent As BoundNode, index As Integer) As IOperation Dim child = Create(GetChildOfBadExpressionBoundNode(parent, index)) If child IsNot Nothing Then Return child End If Dim isImplicit As Boolean = parent.WasCompilerGenerated Return OperationFactory.CreateInvalidOperation(_semanticModel, parent.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit) End Function Private Shared Function GetChildOfBadExpressionBoundNode(parent As BoundNode, index As Integer) As BoundExpression Dim badParent As BoundBadExpression = TryCast(parent, BoundBadExpression) If badParent?.ChildBoundNodes.Length > index Then Return badParent.ChildBoundNodes(index) End If Return Nothing End Function Private Function GetObjectCreationInitializers(expression As BoundObjectCreationExpression) As ImmutableArray(Of IOperation) Return If(expression.InitializerOpt IsNot Nothing, expression.InitializerOpt.Initializers.SelectAsArray(Function(n) Create(n)), ImmutableArray(Of IOperation).Empty) End Function Friend Function GetAnonymousTypeCreationInitializers(expression As BoundAnonymousTypeCreationExpression) As ImmutableArray(Of IOperation) ' For error cases and non-assignment initializers, the binder generates only the argument. Debug.Assert(expression.Arguments.Length >= expression.Declarations.Length) Dim properties = DirectCast(expression.Type, AnonymousTypePublicSymbol).Properties Debug.Assert(properties.Length = expression.Arguments.Length) Dim builder = ArrayBuilder(Of IOperation).GetInstance(expression.Arguments.Length) Dim currentDeclarationIndex = 0 For i As Integer = 0 To expression.Arguments.Length - 1 Dim value As IOperation = Create(expression.Arguments(i)) Dim target As IOperation Dim isImplicitAssignment As Boolean ' Find matching declaration for the current argument If currentDeclarationIndex >= expression.Declarations.Length OrElse i <> expression.Declarations(currentDeclarationIndex).PropertyIndex Then ' No matching declaration, synthesize a property reference with an implicit receiver to be assigned. Dim [property] As IPropertySymbol = properties(i) Dim instance As IInstanceReferenceOperation = CreateAnonymousTypePropertyAccessImplicitReceiverOperation([property], expression.Syntax) target = New PropertyReferenceOperation( [property], ImmutableArray(Of IArgumentOperation).Empty, instance, _semanticModel, value.Syntax, [property].Type, isImplicit:=True) isImplicitAssignment = True Else Debug.Assert(i = expression.Declarations(currentDeclarationIndex).PropertyIndex) target = CreateBoundAnonymousTypePropertyAccessOperation(expression.Declarations(currentDeclarationIndex)) currentDeclarationIndex = currentDeclarationIndex + 1 isImplicitAssignment = expression.WasCompilerGenerated End If Dim isRef As Boolean = False Dim syntax As SyntaxNode = If(value.Syntax?.Parent, expression.Syntax) Dim type As ITypeSymbol = target.Type Dim constantValue As ConstantValue = value.GetConstantValue() Dim assignment = New SimpleAssignmentOperation(isRef, target, value, _semanticModel, syntax, type, constantValue, isImplicitAssignment) builder.Add(assignment) Next i Debug.Assert(currentDeclarationIndex = expression.Declarations.Length) Return builder.ToImmutableAndFree() End Function Private Shared Function GetSingleValueCaseClauseValue(clause As BoundSingleValueCaseClause) As BoundExpression Return GetCaseClauseValue(clause.ValueOpt, clause.ConditionOpt) End Function Friend Shared Function GetCaseClauseValue(valueOpt As BoundExpression, conditionOpt As BoundExpression) As BoundExpression If valueOpt IsNot Nothing Then Return valueOpt End If Select Case conditionOpt.Kind Case BoundKind.BinaryOperator Dim binaryOp As BoundBinaryOperator = DirectCast(conditionOpt, BoundBinaryOperator) Return binaryOp.Right Case BoundKind.UserDefinedBinaryOperator Dim binaryOp As BoundUserDefinedBinaryOperator = DirectCast(conditionOpt, BoundUserDefinedBinaryOperator) Return GetUserDefinedBinaryOperatorChildBoundNode(binaryOp, 1) Case Else Throw ExceptionUtilities.UnexpectedValue(conditionOpt.Kind) End Select End Function Friend Function GetVariableDeclarationStatementVariables(declarations As ImmutableArray(Of BoundLocalDeclarationBase)) As ImmutableArray(Of IVariableDeclarationOperation) ' Group the declarations by their VariableDeclaratorSyntaxes. The issue we're compensating for here is that the ' the declarations that are BoundLocalDeclaration nodes have a ModifiedIdentifierSyntax as their syntax nodes, ' not a VariableDeclaratorSyntax. We want to group BoundLocalDeclarations by their parent VariableDeclaratorSyntax ' nodes, and deduplicate based on that. As an example: ' ' Dim x, y = 1 ' ' This is an error scenario, but if we just use the BoundLocalDeclaration.Syntax.Parent directly, without deduplicating, ' we'll end up with two IVariableDeclarators that have the same syntax node. So, we group by VariableDeclaratorSyntax ' to put x and y in the same IMultiVariableDeclaration Dim groupedDeclarations = declarations.GroupBy(Function(declaration) If declaration.Kind = BoundKind.LocalDeclaration AndAlso declaration.Syntax.IsKind(SyntaxKind.ModifiedIdentifier) Then Debug.Assert(declaration.Syntax.Parent.IsKind(SyntaxKind.VariableDeclarator)) Return declaration.Syntax.Parent Else Return declaration.Syntax End If End Function) Dim builder = ArrayBuilder(Of IVariableDeclarationOperation).GetInstance() For Each declarationGroup In groupedDeclarations Dim first = declarationGroup.First() Dim declarators As ImmutableArray(Of IVariableDeclaratorOperation) = Nothing Dim initializer As IVariableInitializerOperation = Nothing If first.Kind = BoundKind.LocalDeclaration Then declarators = declarationGroup.Cast(Of BoundLocalDeclaration).SelectAsArray(AddressOf GetVariableDeclarator) ' The initializer we use for this group is the initializer attached to the last declaration in this declarator, as that's ' where it will be parsed in an error case. ' Initializer is only created if it's not the array initializer for the variable. That initializer is the initializer ' of the VariableDeclarator child. Dim last = DirectCast(declarationGroup.Last(), BoundLocalDeclaration) If last.DeclarationInitializerOpt IsNot Nothing Then Debug.Assert(last.Syntax.IsKind(SyntaxKind.ModifiedIdentifier)) Dim declaratorSyntax = DirectCast(last.Syntax.Parent, VariableDeclaratorSyntax) Dim initializerSyntax As SyntaxNode = declaratorSyntax.Initializer ' As New clauses with a single variable are bound as BoundLocalDeclarations, so adjust appropriately Dim isImplicit As Boolean = False If last.InitializedByAsNew Then initializerSyntax = declaratorSyntax.AsClause ElseIf initializerSyntax Is Nothing Then ' There is no explicit syntax for the initializer, so we use the initializerValue's syntax and mark the operation as implicit. initializerSyntax = last.InitializerOpt.Syntax isImplicit = True End If Debug.Assert(last.InitializerOpt IsNot Nothing) Dim value = Create(last.InitializerOpt) initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, initializerSyntax, isImplicit) End If Else Dim asNewDeclarations = DirectCast(first, BoundAsNewLocalDeclarations) declarators = asNewDeclarations.LocalDeclarations.SelectAsArray(AddressOf GetVariableDeclarator) Dim initializerSyntax As AsClauseSyntax = DirectCast(asNewDeclarations.Syntax, VariableDeclaratorSyntax).AsClause Dim initializerValue As IOperation = Create(asNewDeclarations.Initializer) Debug.Assert(asNewDeclarations.Initializer IsNot Nothing) Dim value = Create(asNewDeclarations.Initializer) initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, initializerSyntax, isImplicit:=False) End If builder.Add(New VariableDeclarationOperation(declarators, initializer, ImmutableArray(Of IOperation).Empty, _semanticModel, declarationGroup.Key, isImplicit:=False)) Next Return builder.ToImmutableAndFree() End Function Private Function GetVariableDeclarator(boundLocalDeclaration As BoundLocalDeclaration) As IVariableDeclaratorOperation Dim initializer As IVariableInitializerOperation = Nothing If boundLocalDeclaration.IdentifierInitializerOpt IsNot Nothing Then Dim syntax = boundLocalDeclaration.Syntax Dim initializerValue As IOperation = Create(boundLocalDeclaration.IdentifierInitializerOpt) initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, initializerValue, _semanticModel, syntax, isImplicit:=True) End If Dim ignoredArguments = ImmutableArray(Of IOperation).Empty Return New VariableDeclaratorOperation(boundLocalDeclaration.LocalSymbol, initializer, ignoredArguments, _semanticModel, boundLocalDeclaration.Syntax, isImplicit:=boundLocalDeclaration.WasCompilerGenerated) End Function Private Function GetUsingStatementDeclaration(resourceList As ImmutableArray(Of BoundLocalDeclarationBase), syntax As SyntaxNode) As IVariableDeclarationGroupOperation Return New VariableDeclarationGroupOperation( GetVariableDeclarationStatementVariables(resourceList), _semanticModel, syntax, isImplicit:=False) ' Declaration is always explicit End Function Friend Function GetAddRemoveHandlerStatementExpression(statement As BoundAddRemoveHandlerStatement) As IOperation Dim eventReference As IOperation = Create(statement.EventAccess) Dim handlerValue As IOperation = Create(statement.Handler) Dim adds = statement.Kind = BoundKind.AddHandlerStatement Return New EventAssignmentOperation(eventReference, handlerValue, adds, _semanticModel, statement.Syntax, type:=Nothing, isImplicit:=True) End Function #Region "Conversions" ''' <summary> ''' Creates the Lazy IOperation from a delegate creation operand or a bound conversion operand, handling when the conversion ''' is actually a delegate creation. ''' </summary> Private Function GetConversionInfo(boundConversion As BoundConversionOrCast ) As (Operation As IOperation, Conversion As Conversion, IsDelegateCreation As Boolean) Dim conversion = CreateConversion(boundConversion) Dim boundOperand = GetConversionOperand(boundConversion) If conversion.IsIdentity AndAlso boundConversion.ExplicitCastInCode Then Dim adjustedInfo = TryGetAdjustedConversionInfo(boundConversion, boundOperand) If adjustedInfo.Operation IsNot Nothing Then Return adjustedInfo End If End If If IsDelegateCreation(boundConversion.Syntax, boundOperand, boundConversion.Type) Then Return (CreateDelegateCreationConversionOperand(boundOperand), conversion, IsDelegateCreation:=True) Else Return (Create(boundOperand), conversion, IsDelegateCreation:=False) End If End Function Private Function TryGetAdjustedConversionInfo(topLevelConversion As BoundConversionOrCast, boundOperand As BoundExpression ) As (Operation As IOperation, Conversion As Conversion, IsDelegateCreation As Boolean) ' Dig through the bound tree to see if this is an artificial nested conversion. If so, let's erase the nested conversion. ' Artificial conversions are added on top of BoundConvertedTupleLiteral in Binder.ReclassifyTupleLiteral, or in ' ReclassifyUnboundLambdaExpression and the like. We need to use conversion information from the nested conversion ' because that is where the real conversion information is stored. If boundOperand.Kind = BoundKind.Parenthesized Then Dim adjustedInfo = TryGetAdjustedConversionInfo(topLevelConversion, DirectCast(boundOperand, BoundParenthesized).Expression) If adjustedInfo.Operation IsNot Nothing Then Return (Operation:=New ParenthesizedOperation(adjustedInfo.Operation, _semanticModel, boundOperand.Syntax, adjustedInfo.Operation.Type, boundOperand.ConstantValueOpt, boundOperand.WasCompilerGenerated), adjustedInfo.Conversion, adjustedInfo.IsDelegateCreation) End If ElseIf boundOperand.Kind = topLevelConversion.Kind Then Dim nestedConversion = DirectCast(boundOperand, BoundConversionOrCast) Dim nestedOperand As BoundExpression = GetConversionOperand(nestedConversion) If nestedConversion.Syntax Is nestedOperand.Syntax AndAlso Not TypeSymbol.Equals(nestedConversion.Type, nestedOperand.Type, TypeCompareKind.ConsiderEverything) AndAlso nestedConversion.ExplicitCastInCode AndAlso TypeSymbol.Equals(topLevelConversion.Type, nestedConversion.Type, TypeCompareKind.ConsiderEverything) Then Return GetConversionInfo(nestedConversion) End If ElseIf boundOperand.Syntax.IsKind(SyntaxKind.AddressOfExpression) AndAlso TypeSymbol.Equals(topLevelConversion.Type, boundOperand.Type, TypeCompareKind.ConsiderEverything) AndAlso IsDelegateCreation(topLevelConversion.Syntax, boundOperand, boundOperand.Type) Then Return (CreateDelegateCreationConversionOperand(boundOperand), Conversion:=Nothing, IsDelegateCreation:=True) End If Return Nothing End Function ''' <summary> ''' Gets the operand from a BoundConversion, compensating for if the conversion is a user-defined conversion ''' </summary> Private Shared Function GetConversionOperand(boundConversion As BoundConversionOrCast) As BoundExpression If (boundConversion.ConversionKind And ConversionKind.UserDefined) = ConversionKind.UserDefined Then Dim userDefinedConversion = DirectCast(boundConversion.Operand, BoundUserDefinedConversion) Return userDefinedConversion.Operand Else Return boundConversion.Operand End If End Function Private Function CreateDelegateCreationConversionOperand(operand As BoundExpression) As IOperation If operand.Kind = BoundKind.DelegateCreationExpression Then ' If the child is a BoundDelegateCreationExpression, we don't want to generate a nested IDelegateCreationExpression. ' So, the operand for the conversion will be the child of the BoundDelegateCreationExpression. ' We see this in this syntax: Dim x = New Action(AddressOf M2) ' This should be semantically equivalent to: Dim x = AddressOf M2 ' However, if we didn't fix this up, we would have nested IDelegateCreationExpressions here for the former case. Return CreateBoundDelegateCreationExpressionChildOperation(DirectCast(operand, BoundDelegateCreationExpression)) Else Return Create(operand) End If End Function Private Shared Function CreateConversion(expression As BoundExpression) As Conversion If expression.Kind = BoundKind.Conversion Then Dim conversion = DirectCast(expression, BoundConversion) Dim conversionKind = conversion.ConversionKind Dim method As MethodSymbol = Nothing If conversionKind.HasFlag(VisualBasic.ConversionKind.UserDefined) AndAlso conversion.Operand.Kind = BoundKind.UserDefinedConversion Then method = DirectCast(conversion.Operand, BoundUserDefinedConversion).Call.Method End If Return New Conversion(KeyValuePairUtil.Create(conversionKind, method)) ElseIf expression.Kind = BoundKind.TryCast OrElse expression.Kind = BoundKind.DirectCast Then Return New Conversion(KeyValuePairUtil.Create(Of ConversionKind, MethodSymbol)(DirectCast(expression, BoundConversionOrCast).ConversionKind, Nothing)) End If Return New Conversion(Conversions.Identity) End Function Private Shared Function IsDelegateCreation(conversionSyntax As SyntaxNode, operand As BoundNode, targetType As TypeSymbol) As Boolean If Not targetType.IsDelegateType() Then Return False End If ' Any of the explicit cast types, as well as New DelegateType(AddressOf Method) ' Additionally, AddressOf, if the child AddressOf is the same SyntaxNode (ie, an implicit delegate creation) ' In the case of AddressOf, the operand can be a BoundDelegateCreationExpression, a BoundAddressOfOperator, or ' a BoundBadExpression. For simplicity, we just do a syntax check to make sure it's an AddressOfExpression so ' we don't have to compare against all 3 BoundKinds Dim validAddressOfConversionSyntax = operand.Syntax.Kind() = SyntaxKind.AddressOfExpression AndAlso (conversionSyntax.Kind() = SyntaxKind.CTypeExpression OrElse conversionSyntax.Kind() = SyntaxKind.DirectCastExpression OrElse conversionSyntax.Kind() = SyntaxKind.TryCastExpression OrElse conversionSyntax.Kind() = SyntaxKind.ObjectCreationExpression OrElse (conversionSyntax.Kind() = SyntaxKind.AddressOfExpression AndAlso conversionSyntax Is operand.Syntax)) Dim validLambdaConversionNode = operand.Kind = BoundKind.Lambda OrElse operand.Kind = BoundKind.QueryLambda OrElse operand.Kind = BoundKind.UnboundLambda Return validAddressOfConversionSyntax OrElse validLambdaConversionNode End Function #End Region Friend Class Helper Friend Shared Function DeriveUnaryOperatorKind(operatorKind As VisualBasic.UnaryOperatorKind) As UnaryOperatorKind Select Case operatorKind And VisualBasic.UnaryOperatorKind.OpMask Case VisualBasic.UnaryOperatorKind.Plus Return UnaryOperatorKind.Plus Case VisualBasic.UnaryOperatorKind.Minus Return UnaryOperatorKind.Minus Case VisualBasic.UnaryOperatorKind.Not Return UnaryOperatorKind.Not Case VisualBasic.UnaryOperatorKind.IsTrue Return UnaryOperatorKind.True Case VisualBasic.UnaryOperatorKind.IsFalse Return UnaryOperatorKind.False Case Else Return UnaryOperatorKind.None End Select End Function Friend Shared Function DeriveBinaryOperatorKind(operatorKind As VisualBasic.BinaryOperatorKind, leftOpt As BoundExpression) As BinaryOperatorKind Select Case operatorKind And VisualBasic.BinaryOperatorKind.OpMask Case VisualBasic.BinaryOperatorKind.Add Return BinaryOperatorKind.Add Case VisualBasic.BinaryOperatorKind.Subtract Return BinaryOperatorKind.Subtract Case VisualBasic.BinaryOperatorKind.Multiply Return BinaryOperatorKind.Multiply Case VisualBasic.BinaryOperatorKind.Divide Return BinaryOperatorKind.Divide Case VisualBasic.BinaryOperatorKind.IntegerDivide Return BinaryOperatorKind.IntegerDivide Case VisualBasic.BinaryOperatorKind.Modulo Return BinaryOperatorKind.Remainder Case VisualBasic.BinaryOperatorKind.And Return BinaryOperatorKind.And Case VisualBasic.BinaryOperatorKind.Or Return BinaryOperatorKind.Or Case VisualBasic.BinaryOperatorKind.Xor Return BinaryOperatorKind.ExclusiveOr Case VisualBasic.BinaryOperatorKind.AndAlso Return BinaryOperatorKind.ConditionalAnd Case VisualBasic.BinaryOperatorKind.OrElse Return BinaryOperatorKind.ConditionalOr Case VisualBasic.BinaryOperatorKind.LeftShift Return BinaryOperatorKind.LeftShift Case VisualBasic.BinaryOperatorKind.RightShift Return BinaryOperatorKind.RightShift Case VisualBasic.BinaryOperatorKind.LessThan Return BinaryOperatorKind.LessThan Case VisualBasic.BinaryOperatorKind.LessThanOrEqual Return BinaryOperatorKind.LessThanOrEqual Case VisualBasic.BinaryOperatorKind.Equals Return If(leftOpt?.Type?.SpecialType = SpecialType.System_Object, BinaryOperatorKind.ObjectValueEquals, BinaryOperatorKind.Equals) Case VisualBasic.BinaryOperatorKind.NotEquals Return If(leftOpt?.Type?.SpecialType = SpecialType.System_Object, BinaryOperatorKind.ObjectValueNotEquals, BinaryOperatorKind.NotEquals) Case VisualBasic.BinaryOperatorKind.Is Return BinaryOperatorKind.Equals Case VisualBasic.BinaryOperatorKind.IsNot Return BinaryOperatorKind.NotEquals Case VisualBasic.BinaryOperatorKind.GreaterThanOrEqual Return BinaryOperatorKind.GreaterThanOrEqual Case VisualBasic.BinaryOperatorKind.GreaterThan Return BinaryOperatorKind.GreaterThan Case VisualBasic.BinaryOperatorKind.Power Return BinaryOperatorKind.Power Case VisualBasic.BinaryOperatorKind.Like Return BinaryOperatorKind.Like Case VisualBasic.BinaryOperatorKind.Concatenate Return BinaryOperatorKind.Concatenate Case Else Return BinaryOperatorKind.None End Select End Function End Class End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Symbols.AnonymousTypeManager Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.Operations Partial Friend NotInheritable Class VisualBasicOperationFactory Private Shared Function IsMidStatement(node As BoundNode) As Boolean If node.Kind = BoundKind.Conversion Then node = DirectCast(node, BoundConversion).Operand If node.Kind = BoundKind.UserDefinedConversion Then node = DirectCast(node, BoundUserDefinedConversion).Operand End If End If Return node.Kind = BoundKind.MidResult End Function Friend Function CreateCompoundAssignmentRightOperand(boundAssignment As BoundAssignmentOperator) As IOperation Dim binaryOperator As BoundExpression = Nothing Select Case boundAssignment.Right.Kind Case BoundKind.Conversion Dim inConversionNode = DirectCast(boundAssignment.Right, BoundConversion) binaryOperator = GetConversionOperand(inConversionNode) Case BoundKind.UserDefinedBinaryOperator, BoundKind.BinaryOperator binaryOperator = boundAssignment.Right Case Else Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) End Select Dim operatorInfo As BinaryOperatorInfo Select Case binaryOperator.Kind Case BoundKind.BinaryOperator operatorInfo = GetBinaryOperatorInfo(DirectCast(binaryOperator, BoundBinaryOperator)) Return Create(operatorInfo.RightOperand) Case BoundKind.UserDefinedBinaryOperator Dim userDefinedOperator = DirectCast(binaryOperator, BoundUserDefinedBinaryOperator) operatorInfo = GetUserDefinedBinaryOperatorInfo(userDefinedOperator) Return GetUserDefinedBinaryOperatorChild(userDefinedOperator, operatorInfo.RightOperand) Case Else Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) End Select End Function Private Function CreateCompoundAssignment(boundAssignment As BoundAssignmentOperator) As ICompoundAssignmentOperation Debug.Assert(boundAssignment.LeftOnTheRightOpt IsNot Nothing) Dim inConversion = New Conversion(Conversions.Identity) Dim outConversion As Conversion = inConversion Dim binaryOperator As BoundExpression = Nothing Select Case boundAssignment.Right.Kind Case BoundKind.Conversion Dim inConversionNode = DirectCast(boundAssignment.Right, BoundConversion) outConversion = CreateConversion(inConversionNode) binaryOperator = GetConversionOperand(inConversionNode) Case BoundKind.UserDefinedBinaryOperator, BoundKind.BinaryOperator binaryOperator = boundAssignment.Right Case Else Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) End Select Dim operatorInfo As BinaryOperatorInfo Select Case binaryOperator.Kind Case BoundKind.BinaryOperator operatorInfo = GetBinaryOperatorInfo(DirectCast(binaryOperator, BoundBinaryOperator)) Case BoundKind.UserDefinedBinaryOperator Dim userDefinedOperator = DirectCast(binaryOperator, BoundUserDefinedBinaryOperator) operatorInfo = GetUserDefinedBinaryOperatorInfo(userDefinedOperator) Case Else Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) End Select Dim leftOnTheRight As BoundExpression = operatorInfo.LeftOperand If leftOnTheRight.Kind = BoundKind.Conversion Then Dim outConversionNode = DirectCast(leftOnTheRight, BoundConversion) inConversion = CreateConversion(outConversionNode) leftOnTheRight = GetConversionOperand(outConversionNode) End If Debug.Assert(leftOnTheRight Is boundAssignment.LeftOnTheRightOpt) Dim target As IOperation = Create(boundAssignment.Left) Dim value As IOperation = CreateCompoundAssignmentRightOperand(boundAssignment) Dim syntax As SyntaxNode = boundAssignment.Syntax Dim type As ITypeSymbol = boundAssignment.Type Dim isImplicit As Boolean = boundAssignment.WasCompilerGenerated Return New CompoundAssignmentOperation(inConversion, outConversion, operatorInfo.OperatorKind, operatorInfo.IsLifted, operatorInfo.IsChecked, operatorInfo.OperatorMethod, target, value, _semanticModel, syntax, type, isImplicit) End Function Private Structure BinaryOperatorInfo Public Sub New(leftOperand As BoundExpression, rightOperand As BoundExpression, binaryOperatorKind As BinaryOperatorKind, operatorMethod As MethodSymbol, isLifted As Boolean, isChecked As Boolean, isCompareText As Boolean) Me.LeftOperand = leftOperand Me.RightOperand = rightOperand Me.OperatorKind = binaryOperatorKind Me.OperatorMethod = operatorMethod Me.IsLifted = isLifted Me.IsChecked = isChecked Me.IsCompareText = isCompareText End Sub Public ReadOnly LeftOperand As BoundExpression Public ReadOnly RightOperand As BoundExpression Public ReadOnly OperatorKind As BinaryOperatorKind Public ReadOnly OperatorMethod As MethodSymbol Public ReadOnly IsLifted As Boolean Public ReadOnly IsChecked As Boolean Public ReadOnly IsCompareText As Boolean End Structure Private Shared Function GetBinaryOperatorInfo(boundBinaryOperator As BoundBinaryOperator) As BinaryOperatorInfo Return New BinaryOperatorInfo( leftOperand:=boundBinaryOperator.Left, rightOperand:=boundBinaryOperator.Right, binaryOperatorKind:=Helper.DeriveBinaryOperatorKind(boundBinaryOperator.OperatorKind, boundBinaryOperator.Left), operatorMethod:=Nothing, isLifted:=(boundBinaryOperator.OperatorKind And VisualBasic.BinaryOperatorKind.Lifted) <> 0, isChecked:=boundBinaryOperator.Checked, isCompareText:=(boundBinaryOperator.OperatorKind And VisualBasic.BinaryOperatorKind.CompareText) <> 0) End Function Private Shared Function GetUserDefinedBinaryOperatorInfo(boundUserDefinedBinaryOperator As BoundUserDefinedBinaryOperator) As BinaryOperatorInfo Return New BinaryOperatorInfo( leftOperand:=GetUserDefinedBinaryOperatorChildBoundNode(boundUserDefinedBinaryOperator, 0), rightOperand:=GetUserDefinedBinaryOperatorChildBoundNode(boundUserDefinedBinaryOperator, 1), binaryOperatorKind:=Helper.DeriveBinaryOperatorKind(boundUserDefinedBinaryOperator.OperatorKind, leftOpt:=Nothing), operatorMethod:=If(boundUserDefinedBinaryOperator.UnderlyingExpression.Kind = BoundKind.Call, boundUserDefinedBinaryOperator.Call.Method, Nothing), isLifted:=(boundUserDefinedBinaryOperator.OperatorKind And VisualBasic.BinaryOperatorKind.Lifted) <> 0, isChecked:=boundUserDefinedBinaryOperator.Checked, isCompareText:=False) End Function Private Function GetUserDefinedBinaryOperatorChild([operator] As BoundUserDefinedBinaryOperator, child As BoundExpression) As IOperation If child IsNot Nothing Then Return Create(child) End If Dim isImplicit As Boolean = [operator].UnderlyingExpression.WasCompilerGenerated Return OperationFactory.CreateInvalidOperation(_semanticModel, [operator].UnderlyingExpression.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit) End Function Private Shared Function GetUserDefinedBinaryOperatorChildBoundNode([operator] As BoundUserDefinedBinaryOperator, index As Integer) As BoundExpression If [operator].UnderlyingExpression.Kind = BoundKind.Call Then If index = 0 Then Return [operator].Left ElseIf index = 1 Then Return [operator].Right Else Throw ExceptionUtilities.UnexpectedValue(index) End If End If Return GetChildOfBadExpressionBoundNode([operator].UnderlyingExpression, index) End Function Friend Function DeriveArguments(boundNode As BoundNode) As ImmutableArray(Of IArgumentOperation) Select Case boundNode.Kind Case BoundKind.Call Dim boundCall = DirectCast(boundNode, BoundCall) Return DeriveArguments(boundCall.Arguments, boundCall.Method.Parameters, boundCall.DefaultArguments) Case BoundKind.ObjectCreationExpression Dim boundCreation = DirectCast(boundNode, BoundObjectCreationExpression) If boundCreation.Arguments.IsDefault Then Return ImmutableArray(Of IArgumentOperation).Empty End If Return If(boundCreation.ConstructorOpt Is Nothing, ImmutableArray(Of IArgumentOperation).Empty, DeriveArguments(boundCreation.Arguments, boundCreation.ConstructorOpt.Parameters, boundCreation.DefaultArguments)) Case BoundKind.PropertyAccess Dim boundProperty = DirectCast(boundNode, BoundPropertyAccess) Return If(boundProperty.Arguments.Length = 0, ImmutableArray(Of IArgumentOperation).Empty, DeriveArguments(boundProperty.Arguments, boundProperty.PropertySymbol.Parameters, boundProperty.DefaultArguments)) Case BoundKind.RaiseEventStatement Dim boundRaiseEvent = DirectCast(boundNode, BoundRaiseEventStatement) Return DeriveArguments(DirectCast(boundRaiseEvent.EventInvocation, BoundCall)) Case Else Throw ExceptionUtilities.UnexpectedValue(boundNode.Kind) End Select End Function Friend Function DeriveArguments(boundArguments As ImmutableArray(Of BoundExpression), parameters As ImmutableArray(Of VisualBasic.Symbols.ParameterSymbol), ByRef defaultArguments As BitVector) As ImmutableArray(Of IArgumentOperation) Dim argumentsLength As Integer = boundArguments.Length Debug.Assert(argumentsLength = parameters.Length) Dim arguments As ArrayBuilder(Of IArgumentOperation) = ArrayBuilder(Of IArgumentOperation).GetInstance(argumentsLength) For index As Integer = 0 To argumentsLength - 1 Step 1 arguments.Add(DeriveArgument(index, boundArguments(index), parameters, defaultArguments(index))) Next Return arguments.ToImmutableAndFree() End Function Private Function DeriveArgument( index As Integer, argument As BoundExpression, parameters As ImmutableArray(Of VisualBasic.Symbols.ParameterSymbol), isDefault As Boolean ) As IArgumentOperation Dim isImplicit As Boolean = argument.WasCompilerGenerated AndAlso argument.Syntax.Kind <> SyntaxKind.OmittedArgument Select Case argument.Kind Case BoundKind.ByRefArgumentWithCopyBack Dim byRefArgument = DirectCast(argument, BoundByRefArgumentWithCopyBack) Dim parameter = parameters(index) Return CreateArgumentOperation( ArgumentKind.Explicit, parameter, byRefArgument.OriginalArgument, CreateConversion(byRefArgument.InConversion), CreateConversion(byRefArgument.OutConversion), isImplicit) Case Else Dim lastParameterIndex = parameters.Length - 1 Dim kind As ArgumentKind = ArgumentKind.Explicit If argument.WasCompilerGenerated Then If isDefault Then kind = ArgumentKind.DefaultValue ElseIf argument.Kind = BoundKind.ArrayCreation AndAlso DirectCast(argument, BoundArrayCreation).IsParamArrayArgument Then kind = ArgumentKind.ParamArray End If End If Return CreateArgumentOperation( kind, parameters(index), argument, New Conversion(Conversions.Identity), New Conversion(Conversions.Identity), isImplicit) End Select End Function Private Function CreateArgumentOperation( kind As ArgumentKind, parameter As IParameterSymbol, valueNode As BoundNode, inConversion As Conversion, outConversion As Conversion, isImplicit As Boolean) As IArgumentOperation ' put argument syntax to argument operation Dim syntax = If(valueNode.Syntax.Kind = SyntaxKind.OmittedArgument, valueNode.Syntax, TryCast(valueNode.Syntax?.Parent, ArgumentSyntax)) Dim value = Create(valueNode) If syntax Is Nothing Then syntax = value.Syntax isImplicit = True End If Return New ArgumentOperation( kind, parameter, value, inConversion, outConversion, _semanticModel, syntax, isImplicit) End Function Friend Function CreateReceiverOperation(node As BoundNode, symbol As ISymbol) As IOperation If node Is Nothing OrElse node.Kind = BoundKind.TypeExpression Then Return Nothing End If If symbol IsNot Nothing AndAlso node.WasCompilerGenerated AndAlso symbol.IsStatic AndAlso (node.Kind = BoundKind.MeReference OrElse node.Kind = BoundKind.WithLValueExpressionPlaceholder OrElse node.Kind = BoundKind.WithRValueExpressionPlaceholder) Then Return Nothing End If Return Create(node) End Function Private Shared Function ParameterIsParamArray(parameter As VisualBasic.Symbols.ParameterSymbol) As Boolean Return If(parameter.IsParamArray AndAlso parameter.Type.Kind = SymbolKind.ArrayType, DirectCast(parameter.Type, VisualBasic.Symbols.ArrayTypeSymbol).IsSZArray, False) End Function Private Function GetChildOfBadExpression(parent As BoundNode, index As Integer) As IOperation Dim child = Create(GetChildOfBadExpressionBoundNode(parent, index)) If child IsNot Nothing Then Return child End If Dim isImplicit As Boolean = parent.WasCompilerGenerated Return OperationFactory.CreateInvalidOperation(_semanticModel, parent.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit) End Function Private Shared Function GetChildOfBadExpressionBoundNode(parent As BoundNode, index As Integer) As BoundExpression Dim badParent As BoundBadExpression = TryCast(parent, BoundBadExpression) If badParent?.ChildBoundNodes.Length > index Then Return badParent.ChildBoundNodes(index) End If Return Nothing End Function Private Function GetObjectCreationInitializers(expression As BoundObjectCreationExpression) As ImmutableArray(Of IOperation) Return If(expression.InitializerOpt IsNot Nothing, expression.InitializerOpt.Initializers.SelectAsArray(Function(n) Create(n)), ImmutableArray(Of IOperation).Empty) End Function Friend Function GetAnonymousTypeCreationInitializers(expression As BoundAnonymousTypeCreationExpression) As ImmutableArray(Of IOperation) ' For error cases and non-assignment initializers, the binder generates only the argument. Debug.Assert(expression.Arguments.Length >= expression.Declarations.Length) Dim properties = DirectCast(expression.Type, AnonymousTypePublicSymbol).Properties Debug.Assert(properties.Length = expression.Arguments.Length) Dim builder = ArrayBuilder(Of IOperation).GetInstance(expression.Arguments.Length) Dim currentDeclarationIndex = 0 For i As Integer = 0 To expression.Arguments.Length - 1 Dim value As IOperation = Create(expression.Arguments(i)) Dim target As IOperation Dim isImplicitAssignment As Boolean ' Find matching declaration for the current argument If currentDeclarationIndex >= expression.Declarations.Length OrElse i <> expression.Declarations(currentDeclarationIndex).PropertyIndex Then ' No matching declaration, synthesize a property reference with an implicit receiver to be assigned. Dim [property] As IPropertySymbol = properties(i) Dim instance As IInstanceReferenceOperation = CreateAnonymousTypePropertyAccessImplicitReceiverOperation([property], expression.Syntax) target = New PropertyReferenceOperation( [property], ImmutableArray(Of IArgumentOperation).Empty, instance, _semanticModel, value.Syntax, [property].Type, isImplicit:=True) isImplicitAssignment = True Else Debug.Assert(i = expression.Declarations(currentDeclarationIndex).PropertyIndex) target = CreateBoundAnonymousTypePropertyAccessOperation(expression.Declarations(currentDeclarationIndex)) currentDeclarationIndex = currentDeclarationIndex + 1 isImplicitAssignment = expression.WasCompilerGenerated End If Dim isRef As Boolean = False Dim syntax As SyntaxNode = If(value.Syntax?.Parent, expression.Syntax) Dim type As ITypeSymbol = target.Type Dim constantValue As ConstantValue = value.GetConstantValue() Dim assignment = New SimpleAssignmentOperation(isRef, target, value, _semanticModel, syntax, type, constantValue, isImplicitAssignment) builder.Add(assignment) Next i Debug.Assert(currentDeclarationIndex = expression.Declarations.Length) Return builder.ToImmutableAndFree() End Function Private Shared Function GetSingleValueCaseClauseValue(clause As BoundSingleValueCaseClause) As BoundExpression Return GetCaseClauseValue(clause.ValueOpt, clause.ConditionOpt) End Function Friend Shared Function GetCaseClauseValue(valueOpt As BoundExpression, conditionOpt As BoundExpression) As BoundExpression If valueOpt IsNot Nothing Then Return valueOpt End If Select Case conditionOpt.Kind Case BoundKind.BinaryOperator Dim binaryOp As BoundBinaryOperator = DirectCast(conditionOpt, BoundBinaryOperator) Return binaryOp.Right Case BoundKind.UserDefinedBinaryOperator Dim binaryOp As BoundUserDefinedBinaryOperator = DirectCast(conditionOpt, BoundUserDefinedBinaryOperator) Return GetUserDefinedBinaryOperatorChildBoundNode(binaryOp, 1) Case Else Throw ExceptionUtilities.UnexpectedValue(conditionOpt.Kind) End Select End Function Friend Function GetVariableDeclarationStatementVariables(declarations As ImmutableArray(Of BoundLocalDeclarationBase)) As ImmutableArray(Of IVariableDeclarationOperation) ' Group the declarations by their VariableDeclaratorSyntaxes. The issue we're compensating for here is that the ' the declarations that are BoundLocalDeclaration nodes have a ModifiedIdentifierSyntax as their syntax nodes, ' not a VariableDeclaratorSyntax. We want to group BoundLocalDeclarations by their parent VariableDeclaratorSyntax ' nodes, and deduplicate based on that. As an example: ' ' Dim x, y = 1 ' ' This is an error scenario, but if we just use the BoundLocalDeclaration.Syntax.Parent directly, without deduplicating, ' we'll end up with two IVariableDeclarators that have the same syntax node. So, we group by VariableDeclaratorSyntax ' to put x and y in the same IMultiVariableDeclaration Dim groupedDeclarations = declarations.GroupBy(Function(declaration) If declaration.Kind = BoundKind.LocalDeclaration AndAlso declaration.Syntax.IsKind(SyntaxKind.ModifiedIdentifier) Then Debug.Assert(declaration.Syntax.Parent.IsKind(SyntaxKind.VariableDeclarator)) Return declaration.Syntax.Parent Else Return declaration.Syntax End If End Function) Dim builder = ArrayBuilder(Of IVariableDeclarationOperation).GetInstance() For Each declarationGroup In groupedDeclarations Dim first = declarationGroup.First() Dim declarators As ImmutableArray(Of IVariableDeclaratorOperation) = Nothing Dim initializer As IVariableInitializerOperation = Nothing If first.Kind = BoundKind.LocalDeclaration Then declarators = declarationGroup.Cast(Of BoundLocalDeclaration).SelectAsArray(AddressOf GetVariableDeclarator) ' The initializer we use for this group is the initializer attached to the last declaration in this declarator, as that's ' where it will be parsed in an error case. ' Initializer is only created if it's not the array initializer for the variable. That initializer is the initializer ' of the VariableDeclarator child. Dim last = DirectCast(declarationGroup.Last(), BoundLocalDeclaration) If last.DeclarationInitializerOpt IsNot Nothing Then Debug.Assert(last.Syntax.IsKind(SyntaxKind.ModifiedIdentifier)) Dim declaratorSyntax = DirectCast(last.Syntax.Parent, VariableDeclaratorSyntax) Dim initializerSyntax As SyntaxNode = declaratorSyntax.Initializer ' As New clauses with a single variable are bound as BoundLocalDeclarations, so adjust appropriately Dim isImplicit As Boolean = False If last.InitializedByAsNew Then initializerSyntax = declaratorSyntax.AsClause ElseIf initializerSyntax Is Nothing Then ' There is no explicit syntax for the initializer, so we use the initializerValue's syntax and mark the operation as implicit. initializerSyntax = last.InitializerOpt.Syntax isImplicit = True End If Debug.Assert(last.InitializerOpt IsNot Nothing) Dim value = Create(last.InitializerOpt) initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, initializerSyntax, isImplicit) End If Else Dim asNewDeclarations = DirectCast(first, BoundAsNewLocalDeclarations) declarators = asNewDeclarations.LocalDeclarations.SelectAsArray(AddressOf GetVariableDeclarator) Dim initializerSyntax As AsClauseSyntax = DirectCast(asNewDeclarations.Syntax, VariableDeclaratorSyntax).AsClause Dim initializerValue As IOperation = Create(asNewDeclarations.Initializer) Debug.Assert(asNewDeclarations.Initializer IsNot Nothing) Dim value = Create(asNewDeclarations.Initializer) initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, initializerSyntax, isImplicit:=False) End If builder.Add(New VariableDeclarationOperation(declarators, initializer, ImmutableArray(Of IOperation).Empty, _semanticModel, declarationGroup.Key, isImplicit:=False)) Next Return builder.ToImmutableAndFree() End Function Private Function GetVariableDeclarator(boundLocalDeclaration As BoundLocalDeclaration) As IVariableDeclaratorOperation Dim initializer As IVariableInitializerOperation = Nothing If boundLocalDeclaration.IdentifierInitializerOpt IsNot Nothing Then Dim syntax = boundLocalDeclaration.Syntax Dim initializerValue As IOperation = Create(boundLocalDeclaration.IdentifierInitializerOpt) initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, initializerValue, _semanticModel, syntax, isImplicit:=True) End If Dim ignoredArguments = ImmutableArray(Of IOperation).Empty Return New VariableDeclaratorOperation(boundLocalDeclaration.LocalSymbol, initializer, ignoredArguments, _semanticModel, boundLocalDeclaration.Syntax, isImplicit:=boundLocalDeclaration.WasCompilerGenerated) End Function Private Function GetUsingStatementDeclaration(resourceList As ImmutableArray(Of BoundLocalDeclarationBase), syntax As SyntaxNode) As IVariableDeclarationGroupOperation Return New VariableDeclarationGroupOperation( GetVariableDeclarationStatementVariables(resourceList), _semanticModel, syntax, isImplicit:=False) ' Declaration is always explicit End Function Friend Function GetAddRemoveHandlerStatementExpression(statement As BoundAddRemoveHandlerStatement) As IOperation Dim eventReference As IOperation = Create(statement.EventAccess) Dim handlerValue As IOperation = Create(statement.Handler) Dim adds = statement.Kind = BoundKind.AddHandlerStatement Return New EventAssignmentOperation(eventReference, handlerValue, adds, _semanticModel, statement.Syntax, type:=Nothing, isImplicit:=True) End Function #Region "Conversions" ''' <summary> ''' Creates the Lazy IOperation from a delegate creation operand or a bound conversion operand, handling when the conversion ''' is actually a delegate creation. ''' </summary> Private Function GetConversionInfo(boundConversion As BoundConversionOrCast ) As (Operation As IOperation, Conversion As Conversion, IsDelegateCreation As Boolean) Dim conversion = CreateConversion(boundConversion) Dim boundOperand = GetConversionOperand(boundConversion) If conversion.IsIdentity AndAlso boundConversion.ExplicitCastInCode Then Dim adjustedInfo = TryGetAdjustedConversionInfo(boundConversion, boundOperand) If adjustedInfo.Operation IsNot Nothing Then Return adjustedInfo End If End If If IsDelegateCreation(boundConversion.Syntax, boundOperand, boundConversion.Type) Then Return (CreateDelegateCreationConversionOperand(boundOperand), conversion, IsDelegateCreation:=True) Else Return (Create(boundOperand), conversion, IsDelegateCreation:=False) End If End Function Private Function TryGetAdjustedConversionInfo(topLevelConversion As BoundConversionOrCast, boundOperand As BoundExpression ) As (Operation As IOperation, Conversion As Conversion, IsDelegateCreation As Boolean) ' Dig through the bound tree to see if this is an artificial nested conversion. If so, let's erase the nested conversion. ' Artificial conversions are added on top of BoundConvertedTupleLiteral in Binder.ReclassifyTupleLiteral, or in ' ReclassifyUnboundLambdaExpression and the like. We need to use conversion information from the nested conversion ' because that is where the real conversion information is stored. If boundOperand.Kind = BoundKind.Parenthesized Then Dim adjustedInfo = TryGetAdjustedConversionInfo(topLevelConversion, DirectCast(boundOperand, BoundParenthesized).Expression) If adjustedInfo.Operation IsNot Nothing Then Return (Operation:=New ParenthesizedOperation(adjustedInfo.Operation, _semanticModel, boundOperand.Syntax, adjustedInfo.Operation.Type, boundOperand.ConstantValueOpt, boundOperand.WasCompilerGenerated), adjustedInfo.Conversion, adjustedInfo.IsDelegateCreation) End If ElseIf boundOperand.Kind = topLevelConversion.Kind Then Dim nestedConversion = DirectCast(boundOperand, BoundConversionOrCast) Dim nestedOperand As BoundExpression = GetConversionOperand(nestedConversion) If nestedConversion.Syntax Is nestedOperand.Syntax AndAlso Not TypeSymbol.Equals(nestedConversion.Type, nestedOperand.Type, TypeCompareKind.ConsiderEverything) AndAlso nestedConversion.ExplicitCastInCode AndAlso TypeSymbol.Equals(topLevelConversion.Type, nestedConversion.Type, TypeCompareKind.ConsiderEverything) Then Return GetConversionInfo(nestedConversion) End If ElseIf boundOperand.Syntax.IsKind(SyntaxKind.AddressOfExpression) AndAlso TypeSymbol.Equals(topLevelConversion.Type, boundOperand.Type, TypeCompareKind.ConsiderEverything) AndAlso IsDelegateCreation(topLevelConversion.Syntax, boundOperand, boundOperand.Type) Then Return (CreateDelegateCreationConversionOperand(boundOperand), Conversion:=Nothing, IsDelegateCreation:=True) End If Return Nothing End Function ''' <summary> ''' Gets the operand from a BoundConversion, compensating for if the conversion is a user-defined conversion ''' </summary> Private Shared Function GetConversionOperand(boundConversion As BoundConversionOrCast) As BoundExpression If (boundConversion.ConversionKind And ConversionKind.UserDefined) = ConversionKind.UserDefined Then Dim userDefinedConversion = DirectCast(boundConversion.Operand, BoundUserDefinedConversion) Return userDefinedConversion.Operand Else Return boundConversion.Operand End If End Function Private Function CreateDelegateCreationConversionOperand(operand As BoundExpression) As IOperation If operand.Kind = BoundKind.DelegateCreationExpression Then ' If the child is a BoundDelegateCreationExpression, we don't want to generate a nested IDelegateCreationExpression. ' So, the operand for the conversion will be the child of the BoundDelegateCreationExpression. ' We see this in this syntax: Dim x = New Action(AddressOf M2) ' This should be semantically equivalent to: Dim x = AddressOf M2 ' However, if we didn't fix this up, we would have nested IDelegateCreationExpressions here for the former case. Return CreateBoundDelegateCreationExpressionChildOperation(DirectCast(operand, BoundDelegateCreationExpression)) Else Return Create(operand) End If End Function Private Shared Function CreateConversion(expression As BoundExpression) As Conversion If expression.Kind = BoundKind.Conversion Then Dim conversion = DirectCast(expression, BoundConversion) Dim conversionKind = conversion.ConversionKind Dim method As MethodSymbol = Nothing If conversionKind.HasFlag(VisualBasic.ConversionKind.UserDefined) AndAlso conversion.Operand.Kind = BoundKind.UserDefinedConversion Then method = DirectCast(conversion.Operand, BoundUserDefinedConversion).Call.Method End If Return New Conversion(KeyValuePairUtil.Create(conversionKind, method)) ElseIf expression.Kind = BoundKind.TryCast OrElse expression.Kind = BoundKind.DirectCast Then Return New Conversion(KeyValuePairUtil.Create(Of ConversionKind, MethodSymbol)(DirectCast(expression, BoundConversionOrCast).ConversionKind, Nothing)) End If Return New Conversion(Conversions.Identity) End Function Private Shared Function IsDelegateCreation(conversionSyntax As SyntaxNode, operand As BoundNode, targetType As TypeSymbol) As Boolean If Not targetType.IsDelegateType() Then Return False End If ' Any of the explicit cast types, as well as New DelegateType(AddressOf Method) ' Additionally, AddressOf, if the child AddressOf is the same SyntaxNode (ie, an implicit delegate creation) ' In the case of AddressOf, the operand can be a BoundDelegateCreationExpression, a BoundAddressOfOperator, or ' a BoundBadExpression. For simplicity, we just do a syntax check to make sure it's an AddressOfExpression so ' we don't have to compare against all 3 BoundKinds Dim validAddressOfConversionSyntax = operand.Syntax.Kind() = SyntaxKind.AddressOfExpression AndAlso (conversionSyntax.Kind() = SyntaxKind.CTypeExpression OrElse conversionSyntax.Kind() = SyntaxKind.DirectCastExpression OrElse conversionSyntax.Kind() = SyntaxKind.TryCastExpression OrElse conversionSyntax.Kind() = SyntaxKind.ObjectCreationExpression OrElse (conversionSyntax.Kind() = SyntaxKind.AddressOfExpression AndAlso conversionSyntax Is operand.Syntax)) Dim validLambdaConversionNode = operand.Kind = BoundKind.Lambda OrElse operand.Kind = BoundKind.QueryLambda OrElse operand.Kind = BoundKind.UnboundLambda Return validAddressOfConversionSyntax OrElse validLambdaConversionNode End Function #End Region Friend Class Helper Friend Shared Function DeriveUnaryOperatorKind(operatorKind As VisualBasic.UnaryOperatorKind) As UnaryOperatorKind Select Case operatorKind And VisualBasic.UnaryOperatorKind.OpMask Case VisualBasic.UnaryOperatorKind.Plus Return UnaryOperatorKind.Plus Case VisualBasic.UnaryOperatorKind.Minus Return UnaryOperatorKind.Minus Case VisualBasic.UnaryOperatorKind.Not Return UnaryOperatorKind.Not Case VisualBasic.UnaryOperatorKind.IsTrue Return UnaryOperatorKind.True Case VisualBasic.UnaryOperatorKind.IsFalse Return UnaryOperatorKind.False Case Else Return UnaryOperatorKind.None End Select End Function Friend Shared Function DeriveBinaryOperatorKind(operatorKind As VisualBasic.BinaryOperatorKind, leftOpt As BoundExpression) As BinaryOperatorKind Select Case operatorKind And VisualBasic.BinaryOperatorKind.OpMask Case VisualBasic.BinaryOperatorKind.Add Return BinaryOperatorKind.Add Case VisualBasic.BinaryOperatorKind.Subtract Return BinaryOperatorKind.Subtract Case VisualBasic.BinaryOperatorKind.Multiply Return BinaryOperatorKind.Multiply Case VisualBasic.BinaryOperatorKind.Divide Return BinaryOperatorKind.Divide Case VisualBasic.BinaryOperatorKind.IntegerDivide Return BinaryOperatorKind.IntegerDivide Case VisualBasic.BinaryOperatorKind.Modulo Return BinaryOperatorKind.Remainder Case VisualBasic.BinaryOperatorKind.And Return BinaryOperatorKind.And Case VisualBasic.BinaryOperatorKind.Or Return BinaryOperatorKind.Or Case VisualBasic.BinaryOperatorKind.Xor Return BinaryOperatorKind.ExclusiveOr Case VisualBasic.BinaryOperatorKind.AndAlso Return BinaryOperatorKind.ConditionalAnd Case VisualBasic.BinaryOperatorKind.OrElse Return BinaryOperatorKind.ConditionalOr Case VisualBasic.BinaryOperatorKind.LeftShift Return BinaryOperatorKind.LeftShift Case VisualBasic.BinaryOperatorKind.RightShift Return BinaryOperatorKind.RightShift Case VisualBasic.BinaryOperatorKind.LessThan Return BinaryOperatorKind.LessThan Case VisualBasic.BinaryOperatorKind.LessThanOrEqual Return BinaryOperatorKind.LessThanOrEqual Case VisualBasic.BinaryOperatorKind.Equals Return If(leftOpt?.Type?.SpecialType = SpecialType.System_Object, BinaryOperatorKind.ObjectValueEquals, BinaryOperatorKind.Equals) Case VisualBasic.BinaryOperatorKind.NotEquals Return If(leftOpt?.Type?.SpecialType = SpecialType.System_Object, BinaryOperatorKind.ObjectValueNotEquals, BinaryOperatorKind.NotEquals) Case VisualBasic.BinaryOperatorKind.Is Return BinaryOperatorKind.Equals Case VisualBasic.BinaryOperatorKind.IsNot Return BinaryOperatorKind.NotEquals Case VisualBasic.BinaryOperatorKind.GreaterThanOrEqual Return BinaryOperatorKind.GreaterThanOrEqual Case VisualBasic.BinaryOperatorKind.GreaterThan Return BinaryOperatorKind.GreaterThan Case VisualBasic.BinaryOperatorKind.Power Return BinaryOperatorKind.Power Case VisualBasic.BinaryOperatorKind.Like Return BinaryOperatorKind.Like Case VisualBasic.BinaryOperatorKind.Concatenate Return BinaryOperatorKind.Concatenate Case Else Return BinaryOperatorKind.None End Select End Function End Class End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/TestUtilities/BraceMatching/AbstractBraceMatcherTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.UnitTests.BraceMatching { [UseExportProvider] public abstract class AbstractBraceMatcherTests { protected abstract TestWorkspace CreateWorkspaceFromCode(string code, ParseOptions options); protected async Task TestAsync(string markup, string expectedCode, ParseOptions options = null) { using (var workspace = CreateWorkspaceFromCode(markup, options)) { var position = workspace.Documents.Single().CursorPosition.Value; var document = workspace.CurrentSolution.GetDocument(workspace.Documents.First().Id); var braceMatcher = workspace.GetService<IBraceMatchingService>(); var foundSpan = await braceMatcher.FindMatchingSpanAsync(document, position, CancellationToken.None); MarkupTestFile.GetSpans(expectedCode, out var parsedExpectedCode, out ImmutableArray<TextSpan> expectedSpans); if (expectedSpans.Any()) { Assert.Equal(expectedSpans.Single(), foundSpan.Value); } else { Assert.False(foundSpan.HasValue); } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.UnitTests.BraceMatching { [UseExportProvider] public abstract class AbstractBraceMatcherTests { protected abstract TestWorkspace CreateWorkspaceFromCode(string code, ParseOptions options); protected async Task TestAsync(string markup, string expectedCode, ParseOptions options = null) { using (var workspace = CreateWorkspaceFromCode(markup, options)) { var position = workspace.Documents.Single().CursorPosition.Value; var document = workspace.CurrentSolution.GetDocument(workspace.Documents.First().Id); var braceMatcher = workspace.GetService<IBraceMatchingService>(); var foundSpan = await braceMatcher.FindMatchingSpanAsync(document, position, CancellationToken.None); MarkupTestFile.GetSpans(expectedCode, out var parsedExpectedCode, out ImmutableArray<TextSpan> expectedSpans); if (expectedSpans.Any()) { Assert.Equal(expectedSpans.Single(), foundSpan.Value); } else { Assert.False(foundSpan.HasValue); } } } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Features/Core/Portable/ExtractMethod/MethodExtractor.AnalyzerResult.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.Collections.ObjectModel; using System.Linq; using System.Threading; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.ExtractMethod { internal abstract partial class MethodExtractor { protected class AnalyzerResult { private readonly IList<ITypeParameterSymbol> _typeParametersInDeclaration; private readonly IList<ITypeParameterSymbol> _typeParametersInConstraintList; private readonly ImmutableArray<VariableInfo> _variables; private readonly VariableInfo _variableToUseAsReturnValue; public AnalyzerResult( SemanticDocument document, IEnumerable<ITypeParameterSymbol> typeParametersInDeclaration, IEnumerable<ITypeParameterSymbol> typeParametersInConstraintList, ImmutableArray<VariableInfo> variables, VariableInfo variableToUseAsReturnValue, ITypeSymbol returnType, bool awaitTaskReturn, bool instanceMemberIsUsed, bool shouldBeReadOnly, bool endOfSelectionReachable, OperationStatus status) { var semanticModel = document.SemanticModel; UseInstanceMember = instanceMemberIsUsed; ShouldBeReadOnly = shouldBeReadOnly; EndOfSelectionReachable = endOfSelectionReachable; AwaitTaskReturn = awaitTaskReturn; SemanticDocument = document; _typeParametersInDeclaration = typeParametersInDeclaration.Select(s => semanticModel.ResolveType(s)).ToList(); _typeParametersInConstraintList = typeParametersInConstraintList.Select(s => semanticModel.ResolveType(s)).ToList(); _variables = variables; ReturnType = semanticModel.ResolveType(returnType); _variableToUseAsReturnValue = variableToUseAsReturnValue; Status = status; } public AnalyzerResult With(SemanticDocument document) { if (SemanticDocument == document) { return this; } return new AnalyzerResult( document, _typeParametersInDeclaration, _typeParametersInConstraintList, _variables, _variableToUseAsReturnValue, ReturnType, AwaitTaskReturn, UseInstanceMember, ShouldBeReadOnly, EndOfSelectionReachable, Status); } /// <summary> /// used to determine whether static can be used /// </summary> public bool UseInstanceMember { get; } /// <summary> /// Indicates whether the extracted method should have a 'readonly' modifier. /// </summary> public bool ShouldBeReadOnly { get; } /// <summary> /// used to determine whether "return" statement needs to be inserted /// </summary> public bool EndOfSelectionReachable { get; } /// <summary> /// document this result is based on /// </summary> public SemanticDocument SemanticDocument { get; } /// <summary> /// flag to show whether task return type is due to await /// </summary> public bool AwaitTaskReturn { get; } /// <summary> /// return type /// </summary> public ITypeSymbol ReturnType { get; } /// <summary> /// analyzer result operation status /// </summary> public OperationStatus Status { get; } public ReadOnlyCollection<ITypeParameterSymbol> MethodTypeParametersInDeclaration { get { return new ReadOnlyCollection<ITypeParameterSymbol>(_typeParametersInDeclaration); } } public ReadOnlyCollection<ITypeParameterSymbol> MethodTypeParametersInConstraintList { get { return new ReadOnlyCollection<ITypeParameterSymbol>(_typeParametersInConstraintList); } } public bool HasVariableToUseAsReturnValue { get { return _variableToUseAsReturnValue != null; } } public VariableInfo VariableToUseAsReturnValue { get { Contract.ThrowIfNull(_variableToUseAsReturnValue); return _variableToUseAsReturnValue; } } public bool HasReturnType { get { return ReturnType.SpecialType != SpecialType.System_Void && !AwaitTaskReturn; } } public IEnumerable<VariableInfo> MethodParameters { get { return _variables.Where(v => v.UseAsParameter); } } public ImmutableArray<VariableInfo> GetVariablesToSplitOrMoveIntoMethodDefinition(CancellationToken cancellationToken) { return _variables.WhereAsArray( v => v.GetDeclarationBehavior(cancellationToken) is DeclarationBehavior.SplitIn or DeclarationBehavior.MoveIn); } public IEnumerable<VariableInfo> GetVariablesToMoveIntoMethodDefinition(CancellationToken cancellationToken) => _variables.Where(v => v.GetDeclarationBehavior(cancellationToken) == DeclarationBehavior.MoveIn); public IEnumerable<VariableInfo> GetVariablesToMoveOutToCallSite(CancellationToken cancellationToken) => _variables.Where(v => v.GetDeclarationBehavior(cancellationToken) == DeclarationBehavior.MoveOut); public IEnumerable<VariableInfo> GetVariablesToMoveOutToCallSiteOrDelete(CancellationToken cancellationToken) { return _variables.Where(v => v.GetDeclarationBehavior(cancellationToken) is DeclarationBehavior.MoveOut or DeclarationBehavior.Delete); } public IEnumerable<VariableInfo> GetVariablesToSplitOrMoveOutToCallSite(CancellationToken cancellationToken) { return _variables.Where(v => v.GetDeclarationBehavior(cancellationToken) is DeclarationBehavior.SplitOut or DeclarationBehavior.MoveOut); } } } }
// Licensed to the .NET Foundation under one or more 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.Collections.ObjectModel; using System.Linq; using System.Threading; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.ExtractMethod { internal abstract partial class MethodExtractor { protected class AnalyzerResult { private readonly IList<ITypeParameterSymbol> _typeParametersInDeclaration; private readonly IList<ITypeParameterSymbol> _typeParametersInConstraintList; private readonly ImmutableArray<VariableInfo> _variables; private readonly VariableInfo _variableToUseAsReturnValue; public AnalyzerResult( SemanticDocument document, IEnumerable<ITypeParameterSymbol> typeParametersInDeclaration, IEnumerable<ITypeParameterSymbol> typeParametersInConstraintList, ImmutableArray<VariableInfo> variables, VariableInfo variableToUseAsReturnValue, ITypeSymbol returnType, bool awaitTaskReturn, bool instanceMemberIsUsed, bool shouldBeReadOnly, bool endOfSelectionReachable, OperationStatus status) { var semanticModel = document.SemanticModel; UseInstanceMember = instanceMemberIsUsed; ShouldBeReadOnly = shouldBeReadOnly; EndOfSelectionReachable = endOfSelectionReachable; AwaitTaskReturn = awaitTaskReturn; SemanticDocument = document; _typeParametersInDeclaration = typeParametersInDeclaration.Select(s => semanticModel.ResolveType(s)).ToList(); _typeParametersInConstraintList = typeParametersInConstraintList.Select(s => semanticModel.ResolveType(s)).ToList(); _variables = variables; ReturnType = semanticModel.ResolveType(returnType); _variableToUseAsReturnValue = variableToUseAsReturnValue; Status = status; } public AnalyzerResult With(SemanticDocument document) { if (SemanticDocument == document) { return this; } return new AnalyzerResult( document, _typeParametersInDeclaration, _typeParametersInConstraintList, _variables, _variableToUseAsReturnValue, ReturnType, AwaitTaskReturn, UseInstanceMember, ShouldBeReadOnly, EndOfSelectionReachable, Status); } /// <summary> /// used to determine whether static can be used /// </summary> public bool UseInstanceMember { get; } /// <summary> /// Indicates whether the extracted method should have a 'readonly' modifier. /// </summary> public bool ShouldBeReadOnly { get; } /// <summary> /// used to determine whether "return" statement needs to be inserted /// </summary> public bool EndOfSelectionReachable { get; } /// <summary> /// document this result is based on /// </summary> public SemanticDocument SemanticDocument { get; } /// <summary> /// flag to show whether task return type is due to await /// </summary> public bool AwaitTaskReturn { get; } /// <summary> /// return type /// </summary> public ITypeSymbol ReturnType { get; } /// <summary> /// analyzer result operation status /// </summary> public OperationStatus Status { get; } public ReadOnlyCollection<ITypeParameterSymbol> MethodTypeParametersInDeclaration { get { return new ReadOnlyCollection<ITypeParameterSymbol>(_typeParametersInDeclaration); } } public ReadOnlyCollection<ITypeParameterSymbol> MethodTypeParametersInConstraintList { get { return new ReadOnlyCollection<ITypeParameterSymbol>(_typeParametersInConstraintList); } } public bool HasVariableToUseAsReturnValue { get { return _variableToUseAsReturnValue != null; } } public VariableInfo VariableToUseAsReturnValue { get { Contract.ThrowIfNull(_variableToUseAsReturnValue); return _variableToUseAsReturnValue; } } public bool HasReturnType { get { return ReturnType.SpecialType != SpecialType.System_Void && !AwaitTaskReturn; } } public IEnumerable<VariableInfo> MethodParameters { get { return _variables.Where(v => v.UseAsParameter); } } public ImmutableArray<VariableInfo> GetVariablesToSplitOrMoveIntoMethodDefinition(CancellationToken cancellationToken) { return _variables.WhereAsArray( v => v.GetDeclarationBehavior(cancellationToken) is DeclarationBehavior.SplitIn or DeclarationBehavior.MoveIn); } public IEnumerable<VariableInfo> GetVariablesToMoveIntoMethodDefinition(CancellationToken cancellationToken) => _variables.Where(v => v.GetDeclarationBehavior(cancellationToken) == DeclarationBehavior.MoveIn); public IEnumerable<VariableInfo> GetVariablesToMoveOutToCallSite(CancellationToken cancellationToken) => _variables.Where(v => v.GetDeclarationBehavior(cancellationToken) == DeclarationBehavior.MoveOut); public IEnumerable<VariableInfo> GetVariablesToMoveOutToCallSiteOrDelete(CancellationToken cancellationToken) { return _variables.Where(v => v.GetDeclarationBehavior(cancellationToken) is DeclarationBehavior.MoveOut or DeclarationBehavior.Delete); } public IEnumerable<VariableInfo> GetVariablesToSplitOrMoveOutToCallSite(CancellationToken cancellationToken) { return _variables.Where(v => v.GetDeclarationBehavior(cancellationToken) is DeclarationBehavior.SplitOut or DeclarationBehavior.MoveOut); } } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/CSharpTest/EditorConfigSettings/DataProvider/DataProviderTests.TestViewModel.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.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.EditorConfigSettings.DataProvider { public partial class DataProviderTests { private class TestViewModel : ISettingsEditorViewModel { public void NotifyOfUpdate() { } Task<SourceText> ISettingsEditorViewModel.UpdateEditorConfigAsync(SourceText sourceText) { throw new NotImplementedException(); } } } }
// Licensed to the .NET Foundation under one or more 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.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.EditorConfigSettings.DataProvider { public partial class DataProviderTests { private class TestViewModel : ISettingsEditorViewModel { public void NotifyOfUpdate() { } Task<SourceText> ISettingsEditorViewModel.UpdateEditorConfigAsync(SourceText sourceText) { throw new NotImplementedException(); } } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/VisualBasic/Portable/CodeCleanup/Providers/FixIncorrectTokensCodeCleanupProvider.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports System.Composition Imports System.Diagnostics.CodeAnalysis Imports System.Threading Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.CodeCleanup.Providers <ExportCodeCleanupProvider(PredefinedCodeCleanupProviderNames.FixIncorrectTokens, LanguageNames.VisualBasic), [Shared]> <ExtensionOrder(After:=PredefinedCodeCleanupProviderNames.AddMissingTokens, Before:=PredefinedCodeCleanupProviderNames.Format)> Friend Class FixIncorrectTokensCodeCleanupProvider Inherits AbstractTokensCodeCleanupProvider Private Const s_ASCII_LSMART_Q As Char = ChrW(&H91S) '// ASCII left single smart quote Private Const s_ASCII_RSMART_Q As Char = ChrW(&H92S) '// ASCII right single smart quote Private Const s_UNICODE_LSMART_Q As Char = ChrW(&H2018S) '// UNICODE left single smart quote Private Const s_UNICODE_RSMART_Q As Char = ChrW(&H2019S) '// UNICODE right single smart quote Private Const s_CH_STRGHT_Q As Char = ChrW(&H27S) '// UNICODE straight quote Private Shared ReadOnly s_smartSingleQuotes As Char() = New Char() {s_ASCII_LSMART_Q, s_ASCII_RSMART_Q, s_UNICODE_LSMART_Q, s_UNICODE_RSMART_Q} <ImportingConstructor> <SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification:="https://github.com/dotnet/roslyn/issues/42820")> Public Sub New() End Sub Public Overrides ReadOnly Property Name As String Get Return PredefinedCodeCleanupProviderNames.FixIncorrectTokens End Get End Property Protected Overrides Function GetRewriterAsync(document As Document, root As SyntaxNode, spans As ImmutableArray(Of TextSpan), workspace As Workspace, cancellationToken As CancellationToken) As Task(Of Rewriter) Return FixIncorrectTokensRewriter.CreateAsync(document, spans, cancellationToken) End Function Private Class FixIncorrectTokensRewriter Inherits AbstractTokensCodeCleanupProvider.Rewriter Private ReadOnly _semanticModel As SemanticModel Private Sub New(semanticModel As SemanticModel, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) MyBase.New(spans, cancellationToken) _semanticModel = semanticModel End Sub Public Shared Async Function CreateAsync(document As Document, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter) Dim modifiedSpan = spans.Collapse() Dim semanticModel = If(document Is Nothing, Nothing, Await document.ReuseExistingSpeculativeModelAsync(modifiedSpan, cancellationToken).ConfigureAwait(False)) Return New FixIncorrectTokensRewriter(semanticModel, spans, cancellationToken) End Function Public Overrides Function VisitTrivia(trivia As SyntaxTrivia) As SyntaxTrivia Dim newTrivia = MyBase.VisitTrivia(trivia) ' convert fullwidth single quotes into halfwidth single quotes. If newTrivia.Kind = SyntaxKind.CommentTrivia Then Dim triviaText = newTrivia.ToString() If triviaText.Length > 0 AndAlso s_smartSingleQuotes.Contains(triviaText(0)) Then triviaText = s_CH_STRGHT_Q + triviaText.Substring(1) Return SyntaxFactory.CommentTrivia(triviaText) End If End If Return newTrivia End Function Public Overrides Function VisitIdentifierName(node As IdentifierNameSyntax) As SyntaxNode Dim newIdentifierName = DirectCast(MyBase.VisitIdentifierName(node), IdentifierNameSyntax) ' VB Language specification Section 7.3 for Primitive Types states: ' The primitive types are identified through keywords, which are aliases for predefined types in the System namespace. ' A primitive type is completely indistinguishable from the type it aliases: writing the reserved word Byte is exactly ' the same as writing System.Byte. ' ' Language specification defines the following primitive type mappings: ' ------------------------------------------------------------------- ' Keyword --> Predefined type in the System namespace ' ------------------------------------------------------------------- ' Byte --> Byte ' SByte --> SByte ' * UShort --> UInt16 ' * Short --> Int16 ' * UInteger --> UInt32 ' * Integer --> Int32 ' * ULong --> UInt64 ' * Long --> Int64 ' Single --> Single ' Double --> Double ' Decimal --> Decimal ' Boolean --> Boolean ' * Date --> DateTime ' Char --> Char ' String --> String ' ' * - Keyword string differs from the predefined type name ' ' Here we rewrite the above * marked Keyword identifier tokens to their corresponding predefined type names when following conditions are met: ' (a) It occurs as the RIGHT child of a qualified name "LEFT.RIGHT" ' (b) LEFT child of the qualified name binds to the "System" namespace symbol or an alias to it. If Not _underStructuredTrivia Then Dim parent = TryCast(node.Parent, QualifiedNameSyntax) If parent IsNot Nothing AndAlso _semanticModel IsNot Nothing Then Dim symbol = _semanticModel.GetSymbolInfo(parent.Left, _cancellationToken).Symbol If symbol IsNot Nothing AndAlso symbol.IsNamespace AndAlso String.Equals(DirectCast(symbol, INamespaceSymbol).MetadataName, "System", StringComparison.Ordinal) Then Dim id = newIdentifierName.Identifier Dim newValueText As String Select Case id.ValueText.ToUpperInvariant() Case "USHORT" newValueText = "UInt16" Case "SHORT" newValueText = "Int16" Case "UINTEGER" newValueText = "UInt32" Case "INTEGER" newValueText = "Int32" Case "ULONG" newValueText = "UInt64" Case "LONG" newValueText = "Int64" Case "DATE" newValueText = "DateTime" Case Else Return newIdentifierName End Select Return newIdentifierName.ReplaceToken(id, CreateIdentifierToken(id, newValueText)) End If End If End If Return newIdentifierName End Function #Region "EndIf Rewriting" Public Overrides Function VisitEndBlockStatement(node As EndBlockStatementSyntax) As SyntaxNode Dim newStatement = DirectCast(MyBase.VisitEndBlockStatement(node), EndBlockStatementSyntax) Return If(newStatement.BlockKeyword.Kind = SyntaxKind.IfKeyword, RewriteEndIfStatementOrDirectiveSyntax(newStatement, newStatement.EndKeyword, newStatement.BlockKeyword), newStatement) End Function Public Overrides Function VisitEndIfDirectiveTrivia(node As EndIfDirectiveTriviaSyntax) As SyntaxNode Dim newDirective = DirectCast(MyBase.VisitEndIfDirectiveTrivia(node), EndIfDirectiveTriviaSyntax) Return RewriteEndIfStatementOrDirectiveSyntax(newDirective, newDirective.EndKeyword, newDirective.IfKeyword) End Function ''' <summary> ''' Rewrite "EndIf" to "End If" for an EndIfStatementSyntax/EndIfDirectiveSyntax node. ''' </summary> ''' <param name="curNode">Syntax node for the EndIfStatementSyntax or EndIfDirectiveSyntax to be rewritten.</param> ''' <param name="curEndKeyword">"End" keyword token for <paramref name="curNode"/>.</param> ''' <param name="curIfKeyword">"If" keyword token for <paramref name="curNode"/>.</param> ''' <returns>Rewritten EndIfStatementSyntax/EndIfDirectiveSyntax node.</returns> ''' <remarks> ''' This method checks for the following: ''' (a) Both the End keyword and If keyword, <paramref name="curEndKeyword"/> and <paramref name="curIfKeyword"/> respectively, are Missing tokens AND ''' (b) Descendant Trivia under the given <paramref name="curEndKeyword"/> token or <paramref name="curIfKeyword"/> token has an "EndIf" keyword token. ''' ''' If the above conditions are met, it does the following node rewrites: ''' (a) Replace the missing <paramref name="curEndKeyword"/> and <paramref name="curIfKeyword"/> tokens with new "End" and "If" keywords tokens respectively. ''' (b) Remove the first "EndIf" keyword token from the descendant trivia and adjust the leading and trailing trivia appropriately. ''' </remarks> Private Shared Function RewriteEndIfStatementOrDirectiveSyntax(curNode As SyntaxNode, curEndKeyword As SyntaxToken, curIfKeyword As SyntaxToken) As SyntaxNode ' (a) Are both the curEndKeyword and curIfKeyword Missing tokens? If curEndKeyword.IsMissing AndAlso curIfKeyword.IsMissing Then Dim endKeywordTrivia = curEndKeyword.GetAllTrivia() Dim ifKeywordTrivia = curIfKeyword.GetAllTrivia() If endKeywordTrivia.Any() OrElse ifKeywordTrivia.Any() Then Dim endIfKeywordFound As Boolean = False Dim leadingTriviaBuilder As Queue(Of SyntaxTrivia) = Nothing Dim trailingTriviaBuilder As Queue(Of SyntaxTrivia) = Nothing ' (b) Descendant Trivia under the given curEndKeyword token or curIfKeyword token has an "EndIf" keyword token? ProcessTrivia(endKeywordTrivia, endIfKeywordFound, leadingTriviaBuilder, trailingTriviaBuilder) ProcessTrivia(ifKeywordTrivia, endIfKeywordFound, leadingTriviaBuilder, trailingTriviaBuilder) If endIfKeywordFound Then ' Rewrites: ' (a) Replace the missing curEndKeyword and curIfKeyword tokens with new "End" and "If" keywords tokens respectively. ' (b) Remove the first "EndIf" keyword token from the descendant trivia and adjust the leading and trailing trivia appropriately. Dim newEndKeyword = SyntaxFactory.Token(SyntaxKind.EndKeyword).WithTrailingTrivia(SyntaxFactory.WhitespaceTrivia(" ")) If leadingTriviaBuilder IsNot Nothing Then newEndKeyword = newEndKeyword.WithLeadingTrivia(leadingTriviaBuilder) End If Dim newIfKeyword = SyntaxFactory.Token(SyntaxKind.IfKeyword) If trailingTriviaBuilder IsNot Nothing Then newIfKeyword = newIfKeyword.WithTrailingTrivia(trailingTriviaBuilder) End If Return curNode.ReplaceTokens(SpecializedCollections.SingletonEnumerable(curEndKeyword).Concat(curIfKeyword), Function(o, m) If o = curEndKeyword Then Return newEndKeyword ElseIf o = curIfKeyword Then Return newIfKeyword Else Return o End If End Function) End If End If End If Return curNode End Function ' Process trivia looking for an "EndIf" keyword token. Private Shared Sub ProcessTrivia(triviaList As IEnumerable(Of SyntaxTrivia), ByRef endIfKeywordFound As Boolean, ByRef leadingTriviaBuilder As Queue(Of SyntaxTrivia), ByRef trailingTriviaBuilder As Queue(Of SyntaxTrivia)) For Each trivia In triviaList If Not endIfKeywordFound Then If trivia.HasStructure Then Dim structuredTrivia = DirectCast(trivia.GetStructure(), StructuredTriviaSyntax) If structuredTrivia.Kind = SyntaxKind.SkippedTokensTrivia Then Dim skippedTokens = DirectCast(structuredTrivia, SkippedTokensTriviaSyntax).Tokens If skippedTokens.Count = 1 AndAlso skippedTokens.First.Kind = SyntaxKind.EndIfKeyword Then endIfKeywordFound = True Continue For End If End If End If ' Append the trivia to leading trivia and continue processing remaining trivia for EndIf keyword. If leadingTriviaBuilder Is Nothing Then leadingTriviaBuilder = New Queue(Of SyntaxTrivia) End If leadingTriviaBuilder.Enqueue(trivia) Else ' EndIf keyword was already found in a prior trivia, so just append this trivia to trailing trivia. If trailingTriviaBuilder Is Nothing Then trailingTriviaBuilder = New Queue(Of SyntaxTrivia) ' This is the first trivia encountered after the EndIf keyword. ' If this trivia is neither a WhitespaceTrivia nor an EndOfLineTrivia, then we must insert an extra WhitespaceTrivia here. Select Case trivia.Kind Case SyntaxKind.WhitespaceTrivia, SyntaxKind.EndOfLineTrivia Exit Select Case Else trailingTriviaBuilder.Enqueue(SyntaxFactory.WhitespaceTrivia(" ")) End Select End If trailingTriviaBuilder.Enqueue(trivia) End If Next End Sub #End Region End Class End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports System.Composition Imports System.Diagnostics.CodeAnalysis Imports System.Threading Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.CodeCleanup.Providers <ExportCodeCleanupProvider(PredefinedCodeCleanupProviderNames.FixIncorrectTokens, LanguageNames.VisualBasic), [Shared]> <ExtensionOrder(After:=PredefinedCodeCleanupProviderNames.AddMissingTokens, Before:=PredefinedCodeCleanupProviderNames.Format)> Friend Class FixIncorrectTokensCodeCleanupProvider Inherits AbstractTokensCodeCleanupProvider Private Const s_ASCII_LSMART_Q As Char = ChrW(&H91S) '// ASCII left single smart quote Private Const s_ASCII_RSMART_Q As Char = ChrW(&H92S) '// ASCII right single smart quote Private Const s_UNICODE_LSMART_Q As Char = ChrW(&H2018S) '// UNICODE left single smart quote Private Const s_UNICODE_RSMART_Q As Char = ChrW(&H2019S) '// UNICODE right single smart quote Private Const s_CH_STRGHT_Q As Char = ChrW(&H27S) '// UNICODE straight quote Private Shared ReadOnly s_smartSingleQuotes As Char() = New Char() {s_ASCII_LSMART_Q, s_ASCII_RSMART_Q, s_UNICODE_LSMART_Q, s_UNICODE_RSMART_Q} <ImportingConstructor> <SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification:="https://github.com/dotnet/roslyn/issues/42820")> Public Sub New() End Sub Public Overrides ReadOnly Property Name As String Get Return PredefinedCodeCleanupProviderNames.FixIncorrectTokens End Get End Property Protected Overrides Function GetRewriterAsync(document As Document, root As SyntaxNode, spans As ImmutableArray(Of TextSpan), workspace As Workspace, cancellationToken As CancellationToken) As Task(Of Rewriter) Return FixIncorrectTokensRewriter.CreateAsync(document, spans, cancellationToken) End Function Private Class FixIncorrectTokensRewriter Inherits AbstractTokensCodeCleanupProvider.Rewriter Private ReadOnly _semanticModel As SemanticModel Private Sub New(semanticModel As SemanticModel, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) MyBase.New(spans, cancellationToken) _semanticModel = semanticModel End Sub Public Shared Async Function CreateAsync(document As Document, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter) Dim modifiedSpan = spans.Collapse() Dim semanticModel = If(document Is Nothing, Nothing, Await document.ReuseExistingSpeculativeModelAsync(modifiedSpan, cancellationToken).ConfigureAwait(False)) Return New FixIncorrectTokensRewriter(semanticModel, spans, cancellationToken) End Function Public Overrides Function VisitTrivia(trivia As SyntaxTrivia) As SyntaxTrivia Dim newTrivia = MyBase.VisitTrivia(trivia) ' convert fullwidth single quotes into halfwidth single quotes. If newTrivia.Kind = SyntaxKind.CommentTrivia Then Dim triviaText = newTrivia.ToString() If triviaText.Length > 0 AndAlso s_smartSingleQuotes.Contains(triviaText(0)) Then triviaText = s_CH_STRGHT_Q + triviaText.Substring(1) Return SyntaxFactory.CommentTrivia(triviaText) End If End If Return newTrivia End Function Public Overrides Function VisitIdentifierName(node As IdentifierNameSyntax) As SyntaxNode Dim newIdentifierName = DirectCast(MyBase.VisitIdentifierName(node), IdentifierNameSyntax) ' VB Language specification Section 7.3 for Primitive Types states: ' The primitive types are identified through keywords, which are aliases for predefined types in the System namespace. ' A primitive type is completely indistinguishable from the type it aliases: writing the reserved word Byte is exactly ' the same as writing System.Byte. ' ' Language specification defines the following primitive type mappings: ' ------------------------------------------------------------------- ' Keyword --> Predefined type in the System namespace ' ------------------------------------------------------------------- ' Byte --> Byte ' SByte --> SByte ' * UShort --> UInt16 ' * Short --> Int16 ' * UInteger --> UInt32 ' * Integer --> Int32 ' * ULong --> UInt64 ' * Long --> Int64 ' Single --> Single ' Double --> Double ' Decimal --> Decimal ' Boolean --> Boolean ' * Date --> DateTime ' Char --> Char ' String --> String ' ' * - Keyword string differs from the predefined type name ' ' Here we rewrite the above * marked Keyword identifier tokens to their corresponding predefined type names when following conditions are met: ' (a) It occurs as the RIGHT child of a qualified name "LEFT.RIGHT" ' (b) LEFT child of the qualified name binds to the "System" namespace symbol or an alias to it. If Not _underStructuredTrivia Then Dim parent = TryCast(node.Parent, QualifiedNameSyntax) If parent IsNot Nothing AndAlso _semanticModel IsNot Nothing Then Dim symbol = _semanticModel.GetSymbolInfo(parent.Left, _cancellationToken).Symbol If symbol IsNot Nothing AndAlso symbol.IsNamespace AndAlso String.Equals(DirectCast(symbol, INamespaceSymbol).MetadataName, "System", StringComparison.Ordinal) Then Dim id = newIdentifierName.Identifier Dim newValueText As String Select Case id.ValueText.ToUpperInvariant() Case "USHORT" newValueText = "UInt16" Case "SHORT" newValueText = "Int16" Case "UINTEGER" newValueText = "UInt32" Case "INTEGER" newValueText = "Int32" Case "ULONG" newValueText = "UInt64" Case "LONG" newValueText = "Int64" Case "DATE" newValueText = "DateTime" Case Else Return newIdentifierName End Select Return newIdentifierName.ReplaceToken(id, CreateIdentifierToken(id, newValueText)) End If End If End If Return newIdentifierName End Function #Region "EndIf Rewriting" Public Overrides Function VisitEndBlockStatement(node As EndBlockStatementSyntax) As SyntaxNode Dim newStatement = DirectCast(MyBase.VisitEndBlockStatement(node), EndBlockStatementSyntax) Return If(newStatement.BlockKeyword.Kind = SyntaxKind.IfKeyword, RewriteEndIfStatementOrDirectiveSyntax(newStatement, newStatement.EndKeyword, newStatement.BlockKeyword), newStatement) End Function Public Overrides Function VisitEndIfDirectiveTrivia(node As EndIfDirectiveTriviaSyntax) As SyntaxNode Dim newDirective = DirectCast(MyBase.VisitEndIfDirectiveTrivia(node), EndIfDirectiveTriviaSyntax) Return RewriteEndIfStatementOrDirectiveSyntax(newDirective, newDirective.EndKeyword, newDirective.IfKeyword) End Function ''' <summary> ''' Rewrite "EndIf" to "End If" for an EndIfStatementSyntax/EndIfDirectiveSyntax node. ''' </summary> ''' <param name="curNode">Syntax node for the EndIfStatementSyntax or EndIfDirectiveSyntax to be rewritten.</param> ''' <param name="curEndKeyword">"End" keyword token for <paramref name="curNode"/>.</param> ''' <param name="curIfKeyword">"If" keyword token for <paramref name="curNode"/>.</param> ''' <returns>Rewritten EndIfStatementSyntax/EndIfDirectiveSyntax node.</returns> ''' <remarks> ''' This method checks for the following: ''' (a) Both the End keyword and If keyword, <paramref name="curEndKeyword"/> and <paramref name="curIfKeyword"/> respectively, are Missing tokens AND ''' (b) Descendant Trivia under the given <paramref name="curEndKeyword"/> token or <paramref name="curIfKeyword"/> token has an "EndIf" keyword token. ''' ''' If the above conditions are met, it does the following node rewrites: ''' (a) Replace the missing <paramref name="curEndKeyword"/> and <paramref name="curIfKeyword"/> tokens with new "End" and "If" keywords tokens respectively. ''' (b) Remove the first "EndIf" keyword token from the descendant trivia and adjust the leading and trailing trivia appropriately. ''' </remarks> Private Shared Function RewriteEndIfStatementOrDirectiveSyntax(curNode As SyntaxNode, curEndKeyword As SyntaxToken, curIfKeyword As SyntaxToken) As SyntaxNode ' (a) Are both the curEndKeyword and curIfKeyword Missing tokens? If curEndKeyword.IsMissing AndAlso curIfKeyword.IsMissing Then Dim endKeywordTrivia = curEndKeyword.GetAllTrivia() Dim ifKeywordTrivia = curIfKeyword.GetAllTrivia() If endKeywordTrivia.Any() OrElse ifKeywordTrivia.Any() Then Dim endIfKeywordFound As Boolean = False Dim leadingTriviaBuilder As Queue(Of SyntaxTrivia) = Nothing Dim trailingTriviaBuilder As Queue(Of SyntaxTrivia) = Nothing ' (b) Descendant Trivia under the given curEndKeyword token or curIfKeyword token has an "EndIf" keyword token? ProcessTrivia(endKeywordTrivia, endIfKeywordFound, leadingTriviaBuilder, trailingTriviaBuilder) ProcessTrivia(ifKeywordTrivia, endIfKeywordFound, leadingTriviaBuilder, trailingTriviaBuilder) If endIfKeywordFound Then ' Rewrites: ' (a) Replace the missing curEndKeyword and curIfKeyword tokens with new "End" and "If" keywords tokens respectively. ' (b) Remove the first "EndIf" keyword token from the descendant trivia and adjust the leading and trailing trivia appropriately. Dim newEndKeyword = SyntaxFactory.Token(SyntaxKind.EndKeyword).WithTrailingTrivia(SyntaxFactory.WhitespaceTrivia(" ")) If leadingTriviaBuilder IsNot Nothing Then newEndKeyword = newEndKeyword.WithLeadingTrivia(leadingTriviaBuilder) End If Dim newIfKeyword = SyntaxFactory.Token(SyntaxKind.IfKeyword) If trailingTriviaBuilder IsNot Nothing Then newIfKeyword = newIfKeyword.WithTrailingTrivia(trailingTriviaBuilder) End If Return curNode.ReplaceTokens(SpecializedCollections.SingletonEnumerable(curEndKeyword).Concat(curIfKeyword), Function(o, m) If o = curEndKeyword Then Return newEndKeyword ElseIf o = curIfKeyword Then Return newIfKeyword Else Return o End If End Function) End If End If End If Return curNode End Function ' Process trivia looking for an "EndIf" keyword token. Private Shared Sub ProcessTrivia(triviaList As IEnumerable(Of SyntaxTrivia), ByRef endIfKeywordFound As Boolean, ByRef leadingTriviaBuilder As Queue(Of SyntaxTrivia), ByRef trailingTriviaBuilder As Queue(Of SyntaxTrivia)) For Each trivia In triviaList If Not endIfKeywordFound Then If trivia.HasStructure Then Dim structuredTrivia = DirectCast(trivia.GetStructure(), StructuredTriviaSyntax) If structuredTrivia.Kind = SyntaxKind.SkippedTokensTrivia Then Dim skippedTokens = DirectCast(structuredTrivia, SkippedTokensTriviaSyntax).Tokens If skippedTokens.Count = 1 AndAlso skippedTokens.First.Kind = SyntaxKind.EndIfKeyword Then endIfKeywordFound = True Continue For End If End If End If ' Append the trivia to leading trivia and continue processing remaining trivia for EndIf keyword. If leadingTriviaBuilder Is Nothing Then leadingTriviaBuilder = New Queue(Of SyntaxTrivia) End If leadingTriviaBuilder.Enqueue(trivia) Else ' EndIf keyword was already found in a prior trivia, so just append this trivia to trailing trivia. If trailingTriviaBuilder Is Nothing Then trailingTriviaBuilder = New Queue(Of SyntaxTrivia) ' This is the first trivia encountered after the EndIf keyword. ' If this trivia is neither a WhitespaceTrivia nor an EndOfLineTrivia, then we must insert an extra WhitespaceTrivia here. Select Case trivia.Kind Case SyntaxKind.WhitespaceTrivia, SyntaxKind.EndOfLineTrivia Exit Select Case Else trailingTriviaBuilder.Enqueue(SyntaxFactory.WhitespaceTrivia(" ")) End Select End If trailingTriviaBuilder.Enqueue(trivia) End If Next End Sub #End Region End Class End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/Test/Resources/Core/SymbolsTests/CyclicInheritance/Class3.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. ' vbc /r:class1.dll /target:library class3.vb public Class C3 Inherits C1 End Class public Interface I3 Inherits I1 End Interface
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. ' vbc /r:class1.dll /target:library class3.vb public Class C3 Inherits C1 End Class public Interface I3 Inherits I1 End Interface
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/CoreTestUtilities/AsynchronousOperationListenerExtensions.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 System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Remote; using Microsoft.CodeAnalysis.Shared.TestHooks; namespace Roslyn.Test.Utilities { public static class AsynchronousOperationListenerExtensions { internal static async Task WaitAllDispatcherOperationAndTasksAsync(this IAsynchronousOperationListenerProvider provider, Workspace? workspace, params string[] featureNames) { await ((AsynchronousOperationListenerProvider)provider).WaitAllAsync(workspace, featureNames).ConfigureAwait(false); } internal static IAsynchronousOperationWaiter GetWaiter(this IAsynchronousOperationListenerProvider provider, string featureName) => (IAsynchronousOperationWaiter)provider.GetListener(featureName); } }
// Licensed to the .NET Foundation under one or more 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 System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Remote; using Microsoft.CodeAnalysis.Shared.TestHooks; namespace Roslyn.Test.Utilities { public static class AsynchronousOperationListenerExtensions { internal static async Task WaitAllDispatcherOperationAndTasksAsync(this IAsynchronousOperationListenerProvider provider, Workspace? workspace, params string[] featureNames) { await ((AsynchronousOperationListenerProvider)provider).WaitAllAsync(workspace, featureNames).ConfigureAwait(false); } internal static IAsynchronousOperationWaiter GetWaiter(this IAsynchronousOperationListenerProvider provider, string featureName) => (IAsynchronousOperationWaiter)provider.GetListener(featureName); } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/Core/Def/Implementation/Venus/ContainedDocumentPreserveFormattingRule.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; using Microsoft.CodeAnalysis.Formatting.Rules; namespace Microsoft.VisualStudio.LanguageServices.Implementation.Venus { internal class ContainedDocumentPreserveFormattingRule : AbstractFormattingRule { public static readonly AbstractFormattingRule Instance = new ContainedDocumentPreserveFormattingRule(); private static readonly AdjustSpacesOperation s_preserveSpace = FormattingOperations.CreateAdjustSpacesOperation(0, AdjustSpacesOption.PreserveSpaces); private static readonly AdjustNewLinesOperation s_preserveLine = FormattingOperations.CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.PreserveLines); public override AdjustSpacesOperation GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation) { var operation = base.GetAdjustSpacesOperation(in previousToken, in currentToken, in nextOperation); if (operation != null) { return s_preserveSpace; } return operation; } public override AdjustNewLinesOperation GetAdjustNewLinesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustNewLinesOperation nextOperation) { var operation = base.GetAdjustNewLinesOperation(in previousToken, in currentToken, in nextOperation); if (operation != null) { return s_preserveLine; } return operation; } } }
// Licensed to the .NET Foundation under one or more 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; using Microsoft.CodeAnalysis.Formatting.Rules; namespace Microsoft.VisualStudio.LanguageServices.Implementation.Venus { internal class ContainedDocumentPreserveFormattingRule : AbstractFormattingRule { public static readonly AbstractFormattingRule Instance = new ContainedDocumentPreserveFormattingRule(); private static readonly AdjustSpacesOperation s_preserveSpace = FormattingOperations.CreateAdjustSpacesOperation(0, AdjustSpacesOption.PreserveSpaces); private static readonly AdjustNewLinesOperation s_preserveLine = FormattingOperations.CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.PreserveLines); public override AdjustSpacesOperation GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation) { var operation = base.GetAdjustSpacesOperation(in previousToken, in currentToken, in nextOperation); if (operation != null) { return s_preserveSpace; } return operation; } public override AdjustNewLinesOperation GetAdjustNewLinesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustNewLinesOperation nextOperation) { var operation = base.GetAdjustNewLinesOperation(in previousToken, in currentToken, in nextOperation); if (operation != null) { return s_preserveLine; } return operation; } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/VisualBasic/Portable/Symbols/Retargeting/RetargetingParameterSymbol.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.Globalization Imports System.Threading Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols.Retargeting ''' <summary> ''' Represents a parameter of a RetargetingMethodSymbol. Essentially this is a wrapper around ''' another ParameterSymbol that is responsible for retargeting symbols from one assembly to another. ''' It can retarget symbols for multiple assemblies at the same time. ''' </summary> Friend MustInherit Class RetargetingParameterSymbol Inherits ParameterSymbol ''' <summary> ''' The underlying ParameterSymbol, cannot be another RetargetingParameterSymbol. ''' </summary> Private ReadOnly _underlyingParameter As ParameterSymbol Private _lazyCustomModifiers As CustomModifiersTuple ''' <summary> ''' Retargeted custom attributes ''' </summary> ''' <remarks></remarks> Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) Public Shared Function CreateMethodParameter(retargetingMethod As RetargetingMethodSymbol, underlyingParameter As ParameterSymbol) As RetargetingParameterSymbol Return New RetargetingMethodParameterSymbol(retargetingMethod, underlyingParameter) End Function Public Shared Function CreatePropertyParameter(retargetingProperty As RetargetingPropertySymbol, underlyingParameter As ParameterSymbol) As RetargetingParameterSymbol Return New RetargetingPropertyParameterSymbol(retargetingProperty, underlyingParameter) End Function Protected Sub New(underlyingParameter As ParameterSymbol) Debug.Assert(underlyingParameter IsNot Nothing) If TypeOf underlyingParameter Is RetargetingParameterSymbol Then Throw New ArgumentException() End If _underlyingParameter = underlyingParameter End Sub Public ReadOnly Property UnderlyingParameter As ParameterSymbol Get Return _underlyingParameter End Get End Property Protected MustOverride ReadOnly Property RetargetingModule As RetargetingModuleSymbol Private ReadOnly Property RetargetingTranslator As RetargetingModuleSymbol.RetargetingSymbolTranslator Get Return RetargetingModule.RetargetingTranslator End Get End Property Public Overrides ReadOnly Property IsImplicitlyDeclared As Boolean Get Return _underlyingParameter.IsImplicitlyDeclared End Get End Property Public Overrides ReadOnly Property Type As TypeSymbol Get Return RetargetingTranslator.Retarget(_underlyingParameter.Type, RetargetOptions.RetargetPrimitiveTypesByTypeCode) End Get End Property Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) Get Return CustomModifiersTuple.TypeCustomModifiers End Get End Property Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) Get Return CustomModifiersTuple.RefCustomModifiers End Get End Property Private ReadOnly Property CustomModifiersTuple As CustomModifiersTuple Get Return RetargetingTranslator.RetargetModifiers(_underlyingParameter.CustomModifiers, _underlyingParameter.RefCustomModifiers, _lazyCustomModifiers) End Get End Property Public Overrides ReadOnly Property IsParamArray As Boolean Get Return _underlyingParameter.IsParamArray End Get End Property Public Overrides ReadOnly Property IsByRef As Boolean Get Return _underlyingParameter.IsByRef End Get End Property Friend Overrides ReadOnly Property IsExplicitByRef As Boolean Get Return _underlyingParameter.IsExplicitByRef End Get End Property Public Overrides ReadOnly Property Ordinal As Integer Get Return _underlyingParameter.Ordinal End Get End Property Public Overrides ReadOnly Property IsOptional As Boolean Get Return _underlyingParameter.IsOptional End Get End Property Friend Overrides ReadOnly Property IsMetadataOut As Boolean Get Return _underlyingParameter.IsMetadataOut End Get End Property Friend Overrides ReadOnly Property IsMetadataIn As Boolean Get Return _underlyingParameter.IsMetadataIn End Get End Property Public Overrides ReadOnly Property HasExplicitDefaultValue As Boolean Get Return _underlyingParameter.HasExplicitDefaultValue End Get End Property Friend Overrides ReadOnly Property ExplicitDefaultConstantValue(inProgress As SymbolsInProgress(Of ParameterSymbol)) As ConstantValue Get Return _underlyingParameter.ExplicitDefaultConstantValue(inProgress) End Get End Property Friend Overrides ReadOnly Property MarshallingInformation As MarshalPseudoCustomAttributeData Get Return Me.RetargetingTranslator.Retarget(Me.UnderlyingParameter.MarshallingInformation) End Get End Property Friend Overrides ReadOnly Property HasOptionCompare As Boolean Get Return _underlyingParameter.HasOptionCompare End Get End Property Friend Overrides ReadOnly Property IsIDispatchConstant As Boolean Get Return _underlyingParameter.IsIDispatchConstant End Get End Property Friend Overrides ReadOnly Property IsIUnknownConstant As Boolean Get Return _underlyingParameter.IsIUnknownConstant End Get End Property Friend Overrides ReadOnly Property IsCallerLineNumber As Boolean Get Return _underlyingParameter.IsCallerLineNumber End Get End Property Friend Overrides ReadOnly Property IsCallerMemberName As Boolean Get Return _underlyingParameter.IsCallerMemberName End Get End Property Friend Overrides ReadOnly Property IsCallerFilePath As Boolean Get Return _underlyingParameter.IsCallerFilePath End Get End Property Friend NotOverridable Overrides ReadOnly Property CallerArgumentExpressionParameterIndex As Integer Get Return _underlyingParameter.CallerArgumentExpressionParameterIndex End Get End Property Public Overrides ReadOnly Property ContainingSymbol As Symbol Get Return RetargetingTranslator.Retarget(_underlyingParameter.ContainingSymbol) End Get End Property Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) Get Return _underlyingParameter.Locations End Get End Property Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) Get Return _underlyingParameter.DeclaringSyntaxReferences End Get End Property Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) Return RetargetingTranslator.GetRetargetedAttributes(_underlyingParameter, _lazyCustomAttributes) End Function Friend Overrides Function GetCustomAttributesToEmit(compilationState As ModuleCompilationState) As IEnumerable(Of VisualBasicAttributeData) Return RetargetingTranslator.RetargetAttributes(_underlyingParameter.GetCustomAttributesToEmit(compilationState)) End Function Public Overrides ReadOnly Property ContainingAssembly As AssemblySymbol Get Return RetargetingModule.ContainingAssembly End Get End Property Public Overrides ReadOnly Property ContainingModule As ModuleSymbol Get Return RetargetingModule End Get End Property Public Overrides ReadOnly Property Name As String Get Return _underlyingParameter.Name End Get End Property Public Overrides ReadOnly Property MetadataName As String Get Return _underlyingParameter.MetadataName End Get End Property Friend Overrides ReadOnly Property HasMetadataConstantValue As Boolean Get Return _underlyingParameter.HasMetadataConstantValue End Get End Property Friend Overrides ReadOnly Property IsMetadataOptional As Boolean Get Return _underlyingParameter.IsMetadataOptional End Get End Property Friend Overrides ReadOnly Property IsMarshalledExplicitly As Boolean Get Return _underlyingParameter.IsMarshalledExplicitly End Get End Property Friend Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte) Get Return _underlyingParameter.MarshallingDescriptor End Get End Property Private NotInheritable Class RetargetingMethodParameterSymbol Inherits RetargetingParameterSymbol ''' <summary> ''' Owning RetargetingMethodSymbol. ''' </summary> Private ReadOnly _retargetingMethod As RetargetingMethodSymbol Public Sub New(retargetingMethod As RetargetingMethodSymbol, underlyingParameter As ParameterSymbol) MyBase.New(underlyingParameter) Debug.Assert(retargetingMethod IsNot Nothing) _retargetingMethod = retargetingMethod End Sub Protected Overrides ReadOnly Property RetargetingModule As RetargetingModuleSymbol Get Return _retargetingMethod.RetargetingModule End Get End Property End Class Private NotInheritable Class RetargetingPropertyParameterSymbol Inherits RetargetingParameterSymbol ''' <summary> ''' Owning RetargetingPropertySymbol. ''' </summary> Private ReadOnly _retargetingProperty As RetargetingPropertySymbol Public Sub New(retargetingProperty As RetargetingPropertySymbol, underlyingParameter As ParameterSymbol) MyBase.New(underlyingParameter) Debug.Assert(retargetingProperty IsNot Nothing) _retargetingProperty = retargetingProperty End Sub Protected Overrides ReadOnly Property RetargetingModule As RetargetingModuleSymbol Get Return _retargetingProperty.RetargetingModule End Get End Property End Class ''' <remarks> ''' This is for perf, not for correctness. ''' </remarks> Friend NotOverridable Overrides ReadOnly Property DeclaringCompilation As VisualBasicCompilation Get Return Nothing End Get End Property Public Overrides Function GetDocumentationCommentXml(Optional preferredCulture As CultureInfo = Nothing, Optional expandIncludes As Boolean = False, Optional cancellationToken As CancellationToken = Nothing) As String Return _underlyingParameter.GetDocumentationCommentXml(preferredCulture, expandIncludes, cancellationToken) 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.Globalization Imports System.Threading Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols.Retargeting ''' <summary> ''' Represents a parameter of a RetargetingMethodSymbol. Essentially this is a wrapper around ''' another ParameterSymbol that is responsible for retargeting symbols from one assembly to another. ''' It can retarget symbols for multiple assemblies at the same time. ''' </summary> Friend MustInherit Class RetargetingParameterSymbol Inherits ParameterSymbol ''' <summary> ''' The underlying ParameterSymbol, cannot be another RetargetingParameterSymbol. ''' </summary> Private ReadOnly _underlyingParameter As ParameterSymbol Private _lazyCustomModifiers As CustomModifiersTuple ''' <summary> ''' Retargeted custom attributes ''' </summary> ''' <remarks></remarks> Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) Public Shared Function CreateMethodParameter(retargetingMethod As RetargetingMethodSymbol, underlyingParameter As ParameterSymbol) As RetargetingParameterSymbol Return New RetargetingMethodParameterSymbol(retargetingMethod, underlyingParameter) End Function Public Shared Function CreatePropertyParameter(retargetingProperty As RetargetingPropertySymbol, underlyingParameter As ParameterSymbol) As RetargetingParameterSymbol Return New RetargetingPropertyParameterSymbol(retargetingProperty, underlyingParameter) End Function Protected Sub New(underlyingParameter As ParameterSymbol) Debug.Assert(underlyingParameter IsNot Nothing) If TypeOf underlyingParameter Is RetargetingParameterSymbol Then Throw New ArgumentException() End If _underlyingParameter = underlyingParameter End Sub Public ReadOnly Property UnderlyingParameter As ParameterSymbol Get Return _underlyingParameter End Get End Property Protected MustOverride ReadOnly Property RetargetingModule As RetargetingModuleSymbol Private ReadOnly Property RetargetingTranslator As RetargetingModuleSymbol.RetargetingSymbolTranslator Get Return RetargetingModule.RetargetingTranslator End Get End Property Public Overrides ReadOnly Property IsImplicitlyDeclared As Boolean Get Return _underlyingParameter.IsImplicitlyDeclared End Get End Property Public Overrides ReadOnly Property Type As TypeSymbol Get Return RetargetingTranslator.Retarget(_underlyingParameter.Type, RetargetOptions.RetargetPrimitiveTypesByTypeCode) End Get End Property Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) Get Return CustomModifiersTuple.TypeCustomModifiers End Get End Property Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) Get Return CustomModifiersTuple.RefCustomModifiers End Get End Property Private ReadOnly Property CustomModifiersTuple As CustomModifiersTuple Get Return RetargetingTranslator.RetargetModifiers(_underlyingParameter.CustomModifiers, _underlyingParameter.RefCustomModifiers, _lazyCustomModifiers) End Get End Property Public Overrides ReadOnly Property IsParamArray As Boolean Get Return _underlyingParameter.IsParamArray End Get End Property Public Overrides ReadOnly Property IsByRef As Boolean Get Return _underlyingParameter.IsByRef End Get End Property Friend Overrides ReadOnly Property IsExplicitByRef As Boolean Get Return _underlyingParameter.IsExplicitByRef End Get End Property Public Overrides ReadOnly Property Ordinal As Integer Get Return _underlyingParameter.Ordinal End Get End Property Public Overrides ReadOnly Property IsOptional As Boolean Get Return _underlyingParameter.IsOptional End Get End Property Friend Overrides ReadOnly Property IsMetadataOut As Boolean Get Return _underlyingParameter.IsMetadataOut End Get End Property Friend Overrides ReadOnly Property IsMetadataIn As Boolean Get Return _underlyingParameter.IsMetadataIn End Get End Property Public Overrides ReadOnly Property HasExplicitDefaultValue As Boolean Get Return _underlyingParameter.HasExplicitDefaultValue End Get End Property Friend Overrides ReadOnly Property ExplicitDefaultConstantValue(inProgress As SymbolsInProgress(Of ParameterSymbol)) As ConstantValue Get Return _underlyingParameter.ExplicitDefaultConstantValue(inProgress) End Get End Property Friend Overrides ReadOnly Property MarshallingInformation As MarshalPseudoCustomAttributeData Get Return Me.RetargetingTranslator.Retarget(Me.UnderlyingParameter.MarshallingInformation) End Get End Property Friend Overrides ReadOnly Property HasOptionCompare As Boolean Get Return _underlyingParameter.HasOptionCompare End Get End Property Friend Overrides ReadOnly Property IsIDispatchConstant As Boolean Get Return _underlyingParameter.IsIDispatchConstant End Get End Property Friend Overrides ReadOnly Property IsIUnknownConstant As Boolean Get Return _underlyingParameter.IsIUnknownConstant End Get End Property Friend Overrides ReadOnly Property IsCallerLineNumber As Boolean Get Return _underlyingParameter.IsCallerLineNumber End Get End Property Friend Overrides ReadOnly Property IsCallerMemberName As Boolean Get Return _underlyingParameter.IsCallerMemberName End Get End Property Friend Overrides ReadOnly Property IsCallerFilePath As Boolean Get Return _underlyingParameter.IsCallerFilePath End Get End Property Friend NotOverridable Overrides ReadOnly Property CallerArgumentExpressionParameterIndex As Integer Get Return _underlyingParameter.CallerArgumentExpressionParameterIndex End Get End Property Public Overrides ReadOnly Property ContainingSymbol As Symbol Get Return RetargetingTranslator.Retarget(_underlyingParameter.ContainingSymbol) End Get End Property Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) Get Return _underlyingParameter.Locations End Get End Property Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) Get Return _underlyingParameter.DeclaringSyntaxReferences End Get End Property Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) Return RetargetingTranslator.GetRetargetedAttributes(_underlyingParameter, _lazyCustomAttributes) End Function Friend Overrides Function GetCustomAttributesToEmit(compilationState As ModuleCompilationState) As IEnumerable(Of VisualBasicAttributeData) Return RetargetingTranslator.RetargetAttributes(_underlyingParameter.GetCustomAttributesToEmit(compilationState)) End Function Public Overrides ReadOnly Property ContainingAssembly As AssemblySymbol Get Return RetargetingModule.ContainingAssembly End Get End Property Public Overrides ReadOnly Property ContainingModule As ModuleSymbol Get Return RetargetingModule End Get End Property Public Overrides ReadOnly Property Name As String Get Return _underlyingParameter.Name End Get End Property Public Overrides ReadOnly Property MetadataName As String Get Return _underlyingParameter.MetadataName End Get End Property Friend Overrides ReadOnly Property HasMetadataConstantValue As Boolean Get Return _underlyingParameter.HasMetadataConstantValue End Get End Property Friend Overrides ReadOnly Property IsMetadataOptional As Boolean Get Return _underlyingParameter.IsMetadataOptional End Get End Property Friend Overrides ReadOnly Property IsMarshalledExplicitly As Boolean Get Return _underlyingParameter.IsMarshalledExplicitly End Get End Property Friend Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte) Get Return _underlyingParameter.MarshallingDescriptor End Get End Property Private NotInheritable Class RetargetingMethodParameterSymbol Inherits RetargetingParameterSymbol ''' <summary> ''' Owning RetargetingMethodSymbol. ''' </summary> Private ReadOnly _retargetingMethod As RetargetingMethodSymbol Public Sub New(retargetingMethod As RetargetingMethodSymbol, underlyingParameter As ParameterSymbol) MyBase.New(underlyingParameter) Debug.Assert(retargetingMethod IsNot Nothing) _retargetingMethod = retargetingMethod End Sub Protected Overrides ReadOnly Property RetargetingModule As RetargetingModuleSymbol Get Return _retargetingMethod.RetargetingModule End Get End Property End Class Private NotInheritable Class RetargetingPropertyParameterSymbol Inherits RetargetingParameterSymbol ''' <summary> ''' Owning RetargetingPropertySymbol. ''' </summary> Private ReadOnly _retargetingProperty As RetargetingPropertySymbol Public Sub New(retargetingProperty As RetargetingPropertySymbol, underlyingParameter As ParameterSymbol) MyBase.New(underlyingParameter) Debug.Assert(retargetingProperty IsNot Nothing) _retargetingProperty = retargetingProperty End Sub Protected Overrides ReadOnly Property RetargetingModule As RetargetingModuleSymbol Get Return _retargetingProperty.RetargetingModule End Get End Property End Class ''' <remarks> ''' This is for perf, not for correctness. ''' </remarks> Friend NotOverridable Overrides ReadOnly Property DeclaringCompilation As VisualBasicCompilation Get Return Nothing End Get End Property Public Overrides Function GetDocumentationCommentXml(Optional preferredCulture As CultureInfo = Nothing, Optional expandIncludes As Boolean = False, Optional cancellationToken As CancellationToken = Nothing) As String Return _underlyingParameter.GetDocumentationCommentXml(preferredCulture, expandIncludes, cancellationToken) End Function End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/VisualBasicTest/CodeActions/MoveType/MoveTypeTests.ActionCountTests.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.CodeRefactorings.MoveType Partial Public Class MoveTypeTests Inherits BasicMoveTypeTestsBase <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_ActionCounts_RenameOnly() As Task Dim code = <File> [||]Class Class1 End Class </File>.ConvertTestSourceTag() 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithDefinitionSelected() As Task Dim code = <File> [|Class Class1|] End Class </File>.ConvertTestSourceTag() 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithDefinitionAndAttributeSelected() As Task Dim code = "[|<Obsolete> Class Class1 |] End Class" 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithDefinitionAndCommentSelected() As Task Dim code = "[|''' <summary> ''' ''' </summary> Class Class1 |] End Class" 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithDefinitionAndAttributeAndCommentSelected() As Task Dim code = "[|''' <summary> ''' ''' </summary> <Obsolete> Class Class1 |] End Class" 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_InsideClassSelected() As Task Dim code = <File> Class Class1 [| Sub Something() End Sub|] End Class </File>.ConvertTestSourceTag() Await TestActionCountAsync(code, count:=0) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithAttributeSelected() As Task Dim code = "[|<Obsolete>|] Class Class1 End Class" Await TestActionCountAsync(code, count:=0) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithCommentSelected() As Task Dim code = "[|''' <summary> ''' ''' </summary>|] Class Class1 End Class" Await TestActionCountAsync(code, count:=0) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithAttributeAndCommentSelected() As Task Dim code = "[|''' <summary> ''' ''' </summary> <Obsolete>|] Class Class1 End Class" Await TestActionCountAsync(code, count:=0) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_ActionCounts_MoveOnly() As Task Dim code = <File> [||]Class Class1 End Class Class test1 'this matches file name assigned by TestWorkspace End Class </File>.ConvertTestSourceTag() ' Fixes offered will be move type to new file. Await TestActionCountAsync(code, count:=1) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_ActionCounts_RenameAndMove() As Task Dim code = <File> [||]Class Class1 End Class Class Class2 End Class </File>.ConvertTestSourceTag() ' Fixes offered will be move type, rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=3) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_ActionCounts_All() As Task Dim code = <File> Class Class1 Class Class2[||] End Class End Class Class Class3 End Class </File>.ConvertTestSourceTag() ' Fixes offered will be ' 1. move type to InnerType.vb ' 2. move type to OuterType.InnerType.vb ' 3. rename file to InnerType.vb ' 4. rename file to OuterType.InnerType.vb ' 5. rename type to test1 (which Is the default document name given by TestWorkspace). Await TestActionCountAsync(code, count:=5) 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. Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.CodeRefactorings.MoveType Partial Public Class MoveTypeTests Inherits BasicMoveTypeTestsBase <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_ActionCounts_RenameOnly() As Task Dim code = <File> [||]Class Class1 End Class </File>.ConvertTestSourceTag() 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithDefinitionSelected() As Task Dim code = <File> [|Class Class1|] End Class </File>.ConvertTestSourceTag() 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithDefinitionAndAttributeSelected() As Task Dim code = "[|<Obsolete> Class Class1 |] End Class" 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithDefinitionAndCommentSelected() As Task Dim code = "[|''' <summary> ''' ''' </summary> Class Class1 |] End Class" 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithDefinitionAndAttributeAndCommentSelected() As Task Dim code = "[|''' <summary> ''' ''' </summary> <Obsolete> Class Class1 |] End Class" 'Fixes offered will be rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=2) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_InsideClassSelected() As Task Dim code = <File> Class Class1 [| Sub Something() End Sub|] End Class </File>.ConvertTestSourceTag() Await TestActionCountAsync(code, count:=0) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithAttributeSelected() As Task Dim code = "[|<Obsolete>|] Class Class1 End Class" Await TestActionCountAsync(code, count:=0) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithCommentSelected() As Task Dim code = "[|''' <summary> ''' ''' </summary>|] Class Class1 End Class" Await TestActionCountAsync(code, count:=0) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_WithAttributeAndCommentSelected() As Task Dim code = "[|''' <summary> ''' ''' </summary> <Obsolete>|] Class Class1 End Class" Await TestActionCountAsync(code, count:=0) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_ActionCounts_MoveOnly() As Task Dim code = <File> [||]Class Class1 End Class Class test1 'this matches file name assigned by TestWorkspace End Class </File>.ConvertTestSourceTag() ' Fixes offered will be move type to new file. Await TestActionCountAsync(code, count:=1) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_ActionCounts_RenameAndMove() As Task Dim code = <File> [||]Class Class1 End Class Class Class2 End Class </File>.ConvertTestSourceTag() ' Fixes offered will be move type, rename type to match file, rename file to match type. Await TestActionCountAsync(code, count:=3) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)> Public Async Function MoveType_ActionCounts_All() As Task Dim code = <File> Class Class1 Class Class2[||] End Class End Class Class Class3 End Class </File>.ConvertTestSourceTag() ' Fixes offered will be ' 1. move type to InnerType.vb ' 2. move type to OuterType.InnerType.vb ' 3. rename file to InnerType.vb ' 4. rename file to OuterType.InnerType.vb ' 5. rename type to test1 (which Is the default document name given by TestWorkspace). Await TestActionCountAsync(code, count:=5) End Function End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Tools/ExternalAccess/FSharp/SignatureHelp/FSharpSignatureHelpTriggerInfo.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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis.ExternalAccess.FSharp.SignatureHelp { internal readonly struct FSharpSignatureHelpTriggerInfo { public FSharpSignatureHelpTriggerReason TriggerReason { get; } public char? TriggerCharacter { get; } internal FSharpSignatureHelpTriggerInfo(FSharpSignatureHelpTriggerReason triggerReason, char? triggerCharacter = null) { Contract.ThrowIfTrue(triggerReason == FSharpSignatureHelpTriggerReason.TypeCharCommand && triggerCharacter == null); this.TriggerReason = triggerReason; this.TriggerCharacter = triggerCharacter; } } }
// Licensed to the .NET Foundation under one or more 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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis.ExternalAccess.FSharp.SignatureHelp { internal readonly struct FSharpSignatureHelpTriggerInfo { public FSharpSignatureHelpTriggerReason TriggerReason { get; } public char? TriggerCharacter { get; } internal FSharpSignatureHelpTriggerInfo(FSharpSignatureHelpTriggerReason triggerReason, char? triggerCharacter = null) { Contract.ThrowIfTrue(triggerReason == FSharpSignatureHelpTriggerReason.TypeCharCommand && triggerCharacter == null); this.TriggerReason = triggerReason; this.TriggerCharacter = triggerCharacter; } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/Remote/Core/ExternalAccess/UnitTesting/Api/UnitTestingRemoteServiceCallbackIdWrapper.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.Runtime.Serialization; using Microsoft.CodeAnalysis.Remote; namespace Microsoft.CodeAnalysis.ExternalAccess.UnitTesting.Api { [DataContract] internal readonly struct UnitTestingRemoteServiceCallbackIdWrapper { [DataMember(Order = 0)] internal RemoteServiceCallbackId UnderlyingObject { get; } public UnitTestingRemoteServiceCallbackIdWrapper(RemoteServiceCallbackId underlyingObject) => UnderlyingObject = underlyingObject; public static implicit operator UnitTestingRemoteServiceCallbackIdWrapper(RemoteServiceCallbackId id) => new(id); } }
// Licensed to the .NET Foundation under one or more 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.Runtime.Serialization; using Microsoft.CodeAnalysis.Remote; namespace Microsoft.CodeAnalysis.ExternalAccess.UnitTesting.Api { [DataContract] internal readonly struct UnitTestingRemoteServiceCallbackIdWrapper { [DataMember(Order = 0)] internal RemoteServiceCallbackId UnderlyingObject { get; } public UnitTestingRemoteServiceCallbackIdWrapper(RemoteServiceCallbackId underlyingObject) => UnderlyingObject = underlyingObject; public static implicit operator UnitTestingRemoteServiceCallbackIdWrapper(RemoteServiceCallbackId id) => new(id); } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Formatting/Engine/Trivia/CSharpTriviaFormatter.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.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Formatting { internal partial class CSharpTriviaFormatter : AbstractTriviaFormatter { private bool _succeeded = true; private SyntaxTrivia _newLine; public CSharpTriviaFormatter( FormattingContext context, ChainedFormattingRules formattingRules, SyntaxToken token1, SyntaxToken token2, string originalString, int lineBreaks, int spaces) : base(context, formattingRules, token1, token2, originalString, lineBreaks, spaces) { } protected override bool Succeeded() => _succeeded; protected override bool IsWhitespace(SyntaxTrivia trivia) => trivia.RawKind == (int)SyntaxKind.WhitespaceTrivia; protected override bool IsEndOfLine(SyntaxTrivia trivia) => trivia.RawKind == (int)SyntaxKind.EndOfLineTrivia; protected override bool IsWhitespace(char ch) => SyntaxFacts.IsWhitespace(ch); protected override bool IsNewLine(char ch) => SyntaxFacts.IsNewLine(ch); protected override SyntaxTrivia CreateWhitespace(string text) => SyntaxFactory.Whitespace(text); protected override SyntaxTrivia CreateEndOfLine() { if (_newLine == default) { var text = this.Context.Options.GetOption(FormattingOptions2.NewLine); _newLine = SyntaxFactory.EndOfLine(text); } return _newLine; } protected override LineColumnRule GetLineColumnRuleBetween(SyntaxTrivia trivia1, LineColumnDelta existingWhitespaceBetween, bool implicitLineBreak, SyntaxTrivia trivia2) { if (IsStartOrEndOfFile(trivia1, trivia2)) { return LineColumnRule.PreserveLinesWithAbsoluteIndentation(lines: 0, indentation: 0); } // [trivia] [whitespace] [token] case if (trivia2.IsKind(SyntaxKind.None)) { var insertNewLine = this.FormattingRules.GetAdjustNewLinesOperation(this.Token1, this.Token2) != null; if (IsMultilineComment(trivia1)) { return LineColumnRule.PreserveLinesWithGivenIndentation(lines: insertNewLine ? 1 : 0); } if (insertNewLine) { return LineColumnRule.PreserveLinesWithDefaultIndentation(lines: 0); } if (existingWhitespaceBetween.Lines > 0 && existingWhitespaceBetween.Spaces != this.Spaces) { return LineColumnRule.PreserveWithGivenSpaces(spaces: this.Spaces); } return LineColumnRule.Preserve; } // preprocessor case if (SyntaxFacts.IsPreprocessorDirective(trivia2.Kind())) { // Check for immovable preprocessor directives, which are bad directive trivia // without a preceding line break if (trivia2.IsKind(SyntaxKind.BadDirectiveTrivia) && existingWhitespaceBetween.Lines == 0 && !implicitLineBreak) { _succeeded = false; return LineColumnRule.Preserve; } // if current line is the first line of the file, don't put extra line 1 var lines = (trivia1.IsKind(SyntaxKind.None) && this.Token1.IsKind(SyntaxKind.None)) ? 0 : 1; if (trivia2.IsKind(SyntaxKind.RegionDirectiveTrivia) || trivia2.IsKind(SyntaxKind.EndRegionDirectiveTrivia)) { return LineColumnRule.PreserveLinesWithDefaultIndentation(lines); } return LineColumnRule.PreserveLinesWithAbsoluteIndentation(lines, indentation: 0); } // comments case if (trivia2.IsRegularOrDocComment()) { // Start of new comments group. // // 1. Comment groups must contain the same kind of comments // 2. Every block comment is a group of its own if (!trivia1.IsKind(trivia2.Kind()) || trivia2.IsMultiLineComment() || trivia2.IsMultiLineDocComment() || existingWhitespaceBetween.Lines > 1) { if (this.FormattingRules.GetAdjustNewLinesOperation(this.Token1, this.Token2) != null) { return LineColumnRule.PreserveLinesWithDefaultIndentation(lines: 0); } return LineColumnRule.PreserveLinesWithGivenIndentation(lines: 0); } // comments after existing comment if (existingWhitespaceBetween.Lines == 0) { return LineColumnRule.PreserveLinesWithGivenIndentation(lines: 0); } return LineColumnRule.PreserveLinesWithFollowingPrecedingIndentation; } if (trivia2.IsKind(SyntaxKind.SkippedTokensTrivia)) { // if there is any skipped tokens, it is not possible to format this trivia range. _succeeded = false; } return LineColumnRule.Preserve; } protected override bool ContainsImplicitLineBreak(SyntaxTrivia trivia) { if (!trivia.HasStructure) { return false; } var structuredTrivia = trivia.GetStructure(); return structuredTrivia != null && structuredTrivia.HasTrailingTrivia && structuredTrivia.GetTrailingTrivia().Any(SyntaxKind.EndOfLineTrivia); } private bool IsStartOrEndOfFile(SyntaxTrivia trivia1, SyntaxTrivia trivia2) { // Below represents the tokens for a file: // (None) - It is the start of the file. This means there are no previous tokens. // (...) - All the tokens in the compilation unit. // (EndOfFileToken) - This is the synthetic end of file token. Should be treated as the end of the file. // (None) - It is the end of the file. This means there are no more tokens. var isStartOrEndOfFile = (this.Token1.RawKind == 0 || this.Token2.RawKind == 0) && (trivia1.Kind() == 0 || trivia2.Kind() == 0); var isAtEndOfFileToken = (Token2.IsKind(SyntaxKind.EndOfFileToken) && trivia2.Kind() == 0); return isStartOrEndOfFile || isAtEndOfFileToken; } private static bool IsMultilineComment(SyntaxTrivia trivia1) => trivia1.IsMultiLineComment() || trivia1.IsMultiLineDocComment(); private bool TryFormatMultiLineCommentTrivia(LineColumn lineColumn, SyntaxTrivia trivia, out SyntaxTrivia result) { if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia) { var indentation = lineColumn.Column; var indentationDelta = indentation - GetExistingIndentation(trivia); if (indentationDelta != 0) { var multiLineComment = trivia.ToFullString().ReindentStartOfXmlDocumentationComment( false /* forceIndentation */, indentation, indentationDelta, this.Options.GetOption(FormattingOptions2.UseTabs), this.Options.GetOption(FormattingOptions2.TabSize), this.Options.GetOption(FormattingOptions2.NewLine)); var multilineCommentTrivia = SyntaxFactory.ParseLeadingTrivia(multiLineComment); Contract.ThrowIfFalse(multilineCommentTrivia.Count == 1); // Preserve annotations on this comment as the formatter is only supposed to touch whitespace, and // thus should make it appear as if the original comment trivia (with annotations) is still there in // the resultant formatted tree. var firstTrivia = multilineCommentTrivia.First(); result = trivia.CopyAnnotationsTo(firstTrivia); return true; } } result = default; return false; } protected override LineColumnDelta Format( LineColumn lineColumn, SyntaxTrivia trivia, ArrayBuilder<SyntaxTrivia> changes, CancellationToken cancellationToken) { if (trivia.HasStructure) { return FormatStructuredTrivia(lineColumn, trivia, changes, cancellationToken); } if (TryFormatMultiLineCommentTrivia(lineColumn, trivia, out var newComment)) { changes.Add(newComment); return GetLineColumnDelta(lineColumn, newComment); } changes.Add(trivia); return GetLineColumnDelta(lineColumn, trivia); } protected override LineColumnDelta Format( LineColumn lineColumn, SyntaxTrivia trivia, ArrayBuilder<TextChange> changes, CancellationToken cancellationToken) { if (trivia.HasStructure) { return FormatStructuredTrivia(lineColumn, trivia, changes, cancellationToken); } if (TryFormatMultiLineCommentTrivia(lineColumn, trivia, out var newComment)) { changes.Add(new TextChange(trivia.FullSpan, newComment.ToFullString())); return GetLineColumnDelta(lineColumn, newComment); } return GetLineColumnDelta(lineColumn, trivia); } private SyntaxTrivia FormatDocumentComment(LineColumn lineColumn, SyntaxTrivia trivia) { var indentation = lineColumn.Column; if (trivia.IsSingleLineDocComment()) { var text = trivia.ToFullString(); // When the doc comment is parsed from source, even if it is only one // line long, the end-of-line will get included into the trivia text. // If the doc comment was parsed from a text fragment, there may not be // an end-of-line at all. We need to trim the end before we check the // number of line breaks in the text. var textWithoutFinalNewLine = text.TrimEnd(null); if (!textWithoutFinalNewLine.ContainsLineBreak()) { return trivia; } var singleLineDocumentationCommentExteriorCommentRewriter = new DocumentationCommentExteriorCommentRewriter( true /* forceIndentation */, indentation, 0 /* indentationDelta */, this.Options); var newTrivia = singleLineDocumentationCommentExteriorCommentRewriter.VisitTrivia(trivia); return newTrivia; } var indentationDelta = indentation - GetExistingIndentation(trivia); if (indentationDelta == 0) { return trivia; } var multiLineDocumentationCommentExteriorCommentRewriter = new DocumentationCommentExteriorCommentRewriter( false /* forceIndentation */, indentation, indentationDelta, this.Options); var newMultiLineTrivia = multiLineDocumentationCommentExteriorCommentRewriter.VisitTrivia(trivia); return newMultiLineTrivia; } private LineColumnDelta FormatStructuredTrivia( LineColumn lineColumn, SyntaxTrivia trivia, ArrayBuilder<SyntaxTrivia> changes, CancellationToken cancellationToken) { if (trivia.Kind() == SyntaxKind.SkippedTokensTrivia) { // don't touch anything if it contains skipped tokens _succeeded = false; changes.Add(trivia); return GetLineColumnDelta(lineColumn, trivia); } // TODO : make document comment to be formatted by structured trivia formatter as well. if (!trivia.IsDocComment()) { var result = CSharpStructuredTriviaFormatEngine.Format( trivia, this.InitialLineColumn.Column, this.Options, this.FormattingRules, cancellationToken); var formattedTrivia = SyntaxFactory.Trivia((StructuredTriviaSyntax)result.GetFormattedRoot(cancellationToken)); changes.Add(formattedTrivia); return GetLineColumnDelta(lineColumn, formattedTrivia); } var docComment = FormatDocumentComment(lineColumn, trivia); changes.Add(docComment); return GetLineColumnDelta(lineColumn, docComment); } private LineColumnDelta FormatStructuredTrivia( LineColumn lineColumn, SyntaxTrivia trivia, ArrayBuilder<TextChange> changes, CancellationToken cancellationToken) { if (trivia.Kind() == SyntaxKind.SkippedTokensTrivia) { // don't touch anything if it contains skipped tokens _succeeded = false; return GetLineColumnDelta(lineColumn, trivia); } // TODO : make document comment to be formatted by structured trivia formatter as well. if (!trivia.IsDocComment()) { var result = CSharpStructuredTriviaFormatEngine.Format( trivia, this.InitialLineColumn.Column, this.Options, this.FormattingRules, cancellationToken); if (result.GetTextChanges(cancellationToken).Count == 0) { return GetLineColumnDelta(lineColumn, trivia); } changes.AddRange(result.GetTextChanges(cancellationToken)); var formattedTrivia = SyntaxFactory.Trivia((StructuredTriviaSyntax)result.GetFormattedRoot(cancellationToken)); return GetLineColumnDelta(lineColumn, formattedTrivia); } var docComment = FormatDocumentComment(lineColumn, trivia); if (docComment != trivia) { changes.Add(new TextChange(trivia.FullSpan, docComment.ToFullString())); } return GetLineColumnDelta(lineColumn, docComment); } } }
// Licensed to the .NET Foundation under one or more 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.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Formatting { internal partial class CSharpTriviaFormatter : AbstractTriviaFormatter { private bool _succeeded = true; private SyntaxTrivia _newLine; public CSharpTriviaFormatter( FormattingContext context, ChainedFormattingRules formattingRules, SyntaxToken token1, SyntaxToken token2, string originalString, int lineBreaks, int spaces) : base(context, formattingRules, token1, token2, originalString, lineBreaks, spaces) { } protected override bool Succeeded() => _succeeded; protected override bool IsWhitespace(SyntaxTrivia trivia) => trivia.RawKind == (int)SyntaxKind.WhitespaceTrivia; protected override bool IsEndOfLine(SyntaxTrivia trivia) => trivia.RawKind == (int)SyntaxKind.EndOfLineTrivia; protected override bool IsWhitespace(char ch) => SyntaxFacts.IsWhitespace(ch); protected override bool IsNewLine(char ch) => SyntaxFacts.IsNewLine(ch); protected override SyntaxTrivia CreateWhitespace(string text) => SyntaxFactory.Whitespace(text); protected override SyntaxTrivia CreateEndOfLine() { if (_newLine == default) { var text = this.Context.Options.GetOption(FormattingOptions2.NewLine); _newLine = SyntaxFactory.EndOfLine(text); } return _newLine; } protected override LineColumnRule GetLineColumnRuleBetween(SyntaxTrivia trivia1, LineColumnDelta existingWhitespaceBetween, bool implicitLineBreak, SyntaxTrivia trivia2) { if (IsStartOrEndOfFile(trivia1, trivia2)) { return LineColumnRule.PreserveLinesWithAbsoluteIndentation(lines: 0, indentation: 0); } // [trivia] [whitespace] [token] case if (trivia2.IsKind(SyntaxKind.None)) { var insertNewLine = this.FormattingRules.GetAdjustNewLinesOperation(this.Token1, this.Token2) != null; if (IsMultilineComment(trivia1)) { return LineColumnRule.PreserveLinesWithGivenIndentation(lines: insertNewLine ? 1 : 0); } if (insertNewLine) { return LineColumnRule.PreserveLinesWithDefaultIndentation(lines: 0); } if (existingWhitespaceBetween.Lines > 0 && existingWhitespaceBetween.Spaces != this.Spaces) { return LineColumnRule.PreserveWithGivenSpaces(spaces: this.Spaces); } return LineColumnRule.Preserve; } // preprocessor case if (SyntaxFacts.IsPreprocessorDirective(trivia2.Kind())) { // Check for immovable preprocessor directives, which are bad directive trivia // without a preceding line break if (trivia2.IsKind(SyntaxKind.BadDirectiveTrivia) && existingWhitespaceBetween.Lines == 0 && !implicitLineBreak) { _succeeded = false; return LineColumnRule.Preserve; } // if current line is the first line of the file, don't put extra line 1 var lines = (trivia1.IsKind(SyntaxKind.None) && this.Token1.IsKind(SyntaxKind.None)) ? 0 : 1; if (trivia2.IsKind(SyntaxKind.RegionDirectiveTrivia) || trivia2.IsKind(SyntaxKind.EndRegionDirectiveTrivia)) { return LineColumnRule.PreserveLinesWithDefaultIndentation(lines); } return LineColumnRule.PreserveLinesWithAbsoluteIndentation(lines, indentation: 0); } // comments case if (trivia2.IsRegularOrDocComment()) { // Start of new comments group. // // 1. Comment groups must contain the same kind of comments // 2. Every block comment is a group of its own if (!trivia1.IsKind(trivia2.Kind()) || trivia2.IsMultiLineComment() || trivia2.IsMultiLineDocComment() || existingWhitespaceBetween.Lines > 1) { if (this.FormattingRules.GetAdjustNewLinesOperation(this.Token1, this.Token2) != null) { return LineColumnRule.PreserveLinesWithDefaultIndentation(lines: 0); } return LineColumnRule.PreserveLinesWithGivenIndentation(lines: 0); } // comments after existing comment if (existingWhitespaceBetween.Lines == 0) { return LineColumnRule.PreserveLinesWithGivenIndentation(lines: 0); } return LineColumnRule.PreserveLinesWithFollowingPrecedingIndentation; } if (trivia2.IsKind(SyntaxKind.SkippedTokensTrivia)) { // if there is any skipped tokens, it is not possible to format this trivia range. _succeeded = false; } return LineColumnRule.Preserve; } protected override bool ContainsImplicitLineBreak(SyntaxTrivia trivia) { if (!trivia.HasStructure) { return false; } var structuredTrivia = trivia.GetStructure(); return structuredTrivia != null && structuredTrivia.HasTrailingTrivia && structuredTrivia.GetTrailingTrivia().Any(SyntaxKind.EndOfLineTrivia); } private bool IsStartOrEndOfFile(SyntaxTrivia trivia1, SyntaxTrivia trivia2) { // Below represents the tokens for a file: // (None) - It is the start of the file. This means there are no previous tokens. // (...) - All the tokens in the compilation unit. // (EndOfFileToken) - This is the synthetic end of file token. Should be treated as the end of the file. // (None) - It is the end of the file. This means there are no more tokens. var isStartOrEndOfFile = (this.Token1.RawKind == 0 || this.Token2.RawKind == 0) && (trivia1.Kind() == 0 || trivia2.Kind() == 0); var isAtEndOfFileToken = (Token2.IsKind(SyntaxKind.EndOfFileToken) && trivia2.Kind() == 0); return isStartOrEndOfFile || isAtEndOfFileToken; } private static bool IsMultilineComment(SyntaxTrivia trivia1) => trivia1.IsMultiLineComment() || trivia1.IsMultiLineDocComment(); private bool TryFormatMultiLineCommentTrivia(LineColumn lineColumn, SyntaxTrivia trivia, out SyntaxTrivia result) { if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia) { var indentation = lineColumn.Column; var indentationDelta = indentation - GetExistingIndentation(trivia); if (indentationDelta != 0) { var multiLineComment = trivia.ToFullString().ReindentStartOfXmlDocumentationComment( false /* forceIndentation */, indentation, indentationDelta, this.Options.GetOption(FormattingOptions2.UseTabs), this.Options.GetOption(FormattingOptions2.TabSize), this.Options.GetOption(FormattingOptions2.NewLine)); var multilineCommentTrivia = SyntaxFactory.ParseLeadingTrivia(multiLineComment); Contract.ThrowIfFalse(multilineCommentTrivia.Count == 1); // Preserve annotations on this comment as the formatter is only supposed to touch whitespace, and // thus should make it appear as if the original comment trivia (with annotations) is still there in // the resultant formatted tree. var firstTrivia = multilineCommentTrivia.First(); result = trivia.CopyAnnotationsTo(firstTrivia); return true; } } result = default; return false; } protected override LineColumnDelta Format( LineColumn lineColumn, SyntaxTrivia trivia, ArrayBuilder<SyntaxTrivia> changes, CancellationToken cancellationToken) { if (trivia.HasStructure) { return FormatStructuredTrivia(lineColumn, trivia, changes, cancellationToken); } if (TryFormatMultiLineCommentTrivia(lineColumn, trivia, out var newComment)) { changes.Add(newComment); return GetLineColumnDelta(lineColumn, newComment); } changes.Add(trivia); return GetLineColumnDelta(lineColumn, trivia); } protected override LineColumnDelta Format( LineColumn lineColumn, SyntaxTrivia trivia, ArrayBuilder<TextChange> changes, CancellationToken cancellationToken) { if (trivia.HasStructure) { return FormatStructuredTrivia(lineColumn, trivia, changes, cancellationToken); } if (TryFormatMultiLineCommentTrivia(lineColumn, trivia, out var newComment)) { changes.Add(new TextChange(trivia.FullSpan, newComment.ToFullString())); return GetLineColumnDelta(lineColumn, newComment); } return GetLineColumnDelta(lineColumn, trivia); } private SyntaxTrivia FormatDocumentComment(LineColumn lineColumn, SyntaxTrivia trivia) { var indentation = lineColumn.Column; if (trivia.IsSingleLineDocComment()) { var text = trivia.ToFullString(); // When the doc comment is parsed from source, even if it is only one // line long, the end-of-line will get included into the trivia text. // If the doc comment was parsed from a text fragment, there may not be // an end-of-line at all. We need to trim the end before we check the // number of line breaks in the text. var textWithoutFinalNewLine = text.TrimEnd(null); if (!textWithoutFinalNewLine.ContainsLineBreak()) { return trivia; } var singleLineDocumentationCommentExteriorCommentRewriter = new DocumentationCommentExteriorCommentRewriter( true /* forceIndentation */, indentation, 0 /* indentationDelta */, this.Options); var newTrivia = singleLineDocumentationCommentExteriorCommentRewriter.VisitTrivia(trivia); return newTrivia; } var indentationDelta = indentation - GetExistingIndentation(trivia); if (indentationDelta == 0) { return trivia; } var multiLineDocumentationCommentExteriorCommentRewriter = new DocumentationCommentExteriorCommentRewriter( false /* forceIndentation */, indentation, indentationDelta, this.Options); var newMultiLineTrivia = multiLineDocumentationCommentExteriorCommentRewriter.VisitTrivia(trivia); return newMultiLineTrivia; } private LineColumnDelta FormatStructuredTrivia( LineColumn lineColumn, SyntaxTrivia trivia, ArrayBuilder<SyntaxTrivia> changes, CancellationToken cancellationToken) { if (trivia.Kind() == SyntaxKind.SkippedTokensTrivia) { // don't touch anything if it contains skipped tokens _succeeded = false; changes.Add(trivia); return GetLineColumnDelta(lineColumn, trivia); } // TODO : make document comment to be formatted by structured trivia formatter as well. if (!trivia.IsDocComment()) { var result = CSharpStructuredTriviaFormatEngine.Format( trivia, this.InitialLineColumn.Column, this.Options, this.FormattingRules, cancellationToken); var formattedTrivia = SyntaxFactory.Trivia((StructuredTriviaSyntax)result.GetFormattedRoot(cancellationToken)); changes.Add(formattedTrivia); return GetLineColumnDelta(lineColumn, formattedTrivia); } var docComment = FormatDocumentComment(lineColumn, trivia); changes.Add(docComment); return GetLineColumnDelta(lineColumn, docComment); } private LineColumnDelta FormatStructuredTrivia( LineColumn lineColumn, SyntaxTrivia trivia, ArrayBuilder<TextChange> changes, CancellationToken cancellationToken) { if (trivia.Kind() == SyntaxKind.SkippedTokensTrivia) { // don't touch anything if it contains skipped tokens _succeeded = false; return GetLineColumnDelta(lineColumn, trivia); } // TODO : make document comment to be formatted by structured trivia formatter as well. if (!trivia.IsDocComment()) { var result = CSharpStructuredTriviaFormatEngine.Format( trivia, this.InitialLineColumn.Column, this.Options, this.FormattingRules, cancellationToken); if (result.GetTextChanges(cancellationToken).Count == 0) { return GetLineColumnDelta(lineColumn, trivia); } changes.AddRange(result.GetTextChanges(cancellationToken)); var formattedTrivia = SyntaxFactory.Trivia((StructuredTriviaSyntax)result.GetFormattedRoot(cancellationToken)); return GetLineColumnDelta(lineColumn, formattedTrivia); } var docComment = FormatDocumentComment(lineColumn, trivia); if (docComment != trivia) { changes.Add(new TextChange(trivia.FullSpan, docComment.ToFullString())); } return GetLineColumnDelta(lineColumn, docComment); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/Core.Wpf/ExternalAccess/VSTypeScript/VSTypeScriptSignatureHelpClassifierProvider.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.Editor.Implementation.IntelliSense.SignatureHelp.Presentation; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.Api; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Classification; namespace Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript { [Export(typeof(IVSTypeScriptSignatureHelpClassifierProvider))] [Shared] internal sealed class VSTypeScriptSignatureHelpClassifierProvider : IVSTypeScriptSignatureHelpClassifierProvider { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public VSTypeScriptSignatureHelpClassifierProvider() { } public IClassifier Create(ITextBuffer textBuffer, ClassificationTypeMap typeMap) => new SignatureHelpClassifier(textBuffer, typeMap); } }
// Licensed to the .NET Foundation under one or more 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.Editor.Implementation.IntelliSense.SignatureHelp.Presentation; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.Api; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Classification; namespace Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript { [Export(typeof(IVSTypeScriptSignatureHelpClassifierProvider))] [Shared] internal sealed class VSTypeScriptSignatureHelpClassifierProvider : IVSTypeScriptSignatureHelpClassifierProvider { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public VSTypeScriptSignatureHelpClassifierProvider() { } public IClassifier Create(ITextBuffer textBuffer, ClassificationTypeMap typeMap) => new SignatureHelpClassifier(textBuffer, typeMap); } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/Core/Test/Venus/VisualBasicContainedLanguageSupportTests.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 Imports Microsoft.CodeAnalysis.Editor Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions Imports Microsoft.CodeAnalysis.Editor.VisualBasic.Utilities Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.VisualStudio.LanguageServices.Implementation.Venus Imports Microsoft.VisualStudio.TextManager.Interop Imports Roslyn.Test.Utilities Imports Roslyn.Utilities Imports TextSpan = Microsoft.VisualStudio.TextManager.Interop.TextSpan Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Venus Public Class VisualBasicContainedLanguageCodeSupportTests Inherits AbstractContainedLanguageCodeSupportTests #Region "IsValid Tests" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_1() AssertValidId("field") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_Escaped() AssertValidId("[field]") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_EscapedKeyword() AssertValidId("[Class]") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_ContainsNumbers() AssertValidId("abc123") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_Keyword() AssertNotValidId("Class") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_StartsWithNumber() AssertNotValidId("123abc") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_Punctuation() AssertNotValidId("abc.abc") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_TypeChar() AssertValidId("abc$") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_TypeCharInMiddle() AssertNotValidId("abc$abc") End Sub #End Region #Region "GetBaseClassName Tests" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_NonexistingClass() Dim code As String = <text>Class c End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.False(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "A", CancellationToken.None, baseClassName)) Assert.Null(baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_DerivedFromObject() Dim code As String = <text>Class C End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "C", CancellationToken.None, baseClassName)) Assert.Equal("Object", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_DerivedFromFrameworkType() Dim code As String = <text> Imports System Class C Inherits Exception End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "C", CancellationToken.None, baseClassName)) Assert.Equal("System.Exception", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_DerivedFromUserDefinedType() Dim code As String = <text> Class B End Class Class C Inherits B End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "C", CancellationToken.None, baseClassName)) Assert.Equal("B", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_FullyQualifiedNames() Dim code As String = <text> Namespace N Class B End Class Class C Inherits B End Class End Namespace</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "N.C", CancellationToken.None, baseClassName)) Assert.Equal("N.B", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_MinimallyQualifiedNames() Dim code As String = <text> Namespace N Class B End Class Class C Inherits B End Class End Namespace</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "N.C", CancellationToken.None, baseClassName)) Assert.Equal("N.B", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_EscapedKeyword() Dim code As String = <text> Class [Class] End Class Class Derived Inherits [Class] End Class </text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "Derived", CancellationToken.None, baseClassName)) Assert.Equal("[Class]", baseClassName) End Using End Sub #End Region #Region "CreateUniqueEventName Tests" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_ButtonClick() Dim code As String = <text> Public Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class </text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click", eventName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_NameCollisionWithEventHandler() Dim code As String = <text> Public Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class </text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click1", eventName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_NameCollisionWithOtherMembers() Dim code As String = <text> Public Partial Class _Default Inherits System.Web.UI.Page Public Property Button1_Click As String Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click1", eventName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_NameCollisionFromPartialClass() Dim code As String = <text> Public Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class Public Partial Class _Default Public Property Button1_Click As String End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click1", eventName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_NameCollisionFromBaseClass() Dim code As String = <text> Public Partial Class _Default Inherits MyBaseClass Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class Public Class MyBaseClass Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click1", eventName) End Using End Sub #End Region #Region "GetCompatibleEventHandlers" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetCompatibleEventHandlers_EventDoesntExist() Dim code As String = <text> Imports System Public Class Button End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Assert.Throws(Of InvalidOperationException)( Sub() ContainedLanguageCodeSupport.GetCompatibleEventHandlers( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", cancellationToken:=Nothing) End Sub) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetCompatibleEventHandlers_ObjTypeNameIsWrong() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Assert.Throws(Of InvalidOperationException)( Sub() ContainedLanguageCodeSupport.GetCompatibleEventHandlers( document:=document, className:="_Default", objectTypeName:="CheckBox", nameOfEvent:="Click", cancellationToken:=Nothing) End Sub) End Using End Sub ' To Do: Investigate - this feels wrong. when Handles Clause exists <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetCompatibleEventHandlers_MatchExists() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlers = ContainedLanguageCodeSupport.GetCompatibleEventHandlers( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal(1, eventHandlers.Count()) Assert.Equal("Page_Load", eventHandlers.Single().Item1) Assert.Equal("Page_Load(Object,System.EventArgs)", eventHandlers.Single().Item2) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetCompatibleEventHandlers_MatchesExist() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlers = ContainedLanguageCodeSupport.GetCompatibleEventHandlers( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal(2, eventHandlers.Count()) ' It has to be page_load and button click, but are they always ordered in the same way? End Using End Sub ' add tests for CompatibleSignatureToDelegate (#params, return type) #End Region #Region "GetEventHandlerMemberId" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetEventHandlerMemberId_HandlerExists() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerId = ContainedLanguageCodeSupport.GetEventHandlerMemberId( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", eventHandlerName:="Button1_Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click(Object,System.EventArgs)", eventHandlerId) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetEventHandlerMemberId_CantFindHandler() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerId = ContainedLanguageCodeSupport.GetEventHandlerMemberId( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", eventHandlerName:="Button1_Click", cancellationToken:=Nothing) Assert.Equal(Nothing, eventHandlerId) End Using End Sub #End Region #Region "EnsureEventHandler" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestEnsureEventHandler_HandlerExists() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerIdTextPosition = ContainedLanguageCodeSupport.EnsureEventHandler( thisDocument:=document, targetDocument:=document, className:="_Default", objectName:="Button1", objectTypeName:="Button", nameOfEvent:="Click", eventHandlerName:="Button1_Click", itemidInsertionPoint:=0, useHandlesClause:=True, additionalFormattingRule:=LineAdjustmentFormattingRule.Instance, cancellationToken:=Nothing) ' Since a valid handler exists, item2 and item3 of the tuple returned must be nothing Assert.Equal("Button1_Click(Object,System.EventArgs)", eventHandlerIdTextPosition.Item1) Assert.Equal(Nothing, eventHandlerIdTextPosition.Item2) Assert.Equal(New TextSpan(), eventHandlerIdTextPosition.Item3) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestEnsureEventHandler_GenerateNewHandler() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) End Sub End Class</text>.NormalizedValue Dim generatedCode As String = <text> Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub</text>.NormalizedValue Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerIdTextPosition = ContainedLanguageCodeSupport.EnsureEventHandler( thisDocument:=document, targetDocument:=document, className:="_Default", objectName:="Button1", objectTypeName:="Button", nameOfEvent:="Click", eventHandlerName:="Button1_Click", itemidInsertionPoint:=0, useHandlesClause:=True, additionalFormattingRule:=LineAdjustmentFormattingRule.Instance, cancellationToken:=Nothing) Assert.Equal("Button1_Click(Object,System.EventArgs)", eventHandlerIdTextPosition.Item1) TokenUtilities.AssertTokensEqual(generatedCode, eventHandlerIdTextPosition.Item2, Language) Assert.Equal(New TextSpan With {.iStartLine = 12, .iEndLine = 12}, eventHandlerIdTextPosition.Item3) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> <WorkItem(850035, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/850035")> Public Sub TestEnsureEventHandler_WithHandlesAndNullObjectName() Dim code As String = " Imports System Namespace System.Web.UI Public Class Page Public Event Load as EventHandler End Class End Namespace Public Class _Default Inherits System.Web.UI.Page End Class" Dim generatedCode As String = " Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub" Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerIdTextPosition = ContainedLanguageCodeSupport.EnsureEventHandler( thisDocument:=document, targetDocument:=document, className:="_Default", objectName:=Nothing, objectTypeName:="System.Web.UI.Page", nameOfEvent:="Load", eventHandlerName:="Page_Load", itemidInsertionPoint:=0, useHandlesClause:=True, additionalFormattingRule:=LineAdjustmentFormattingRule.Instance, cancellationToken:=Nothing) Assert.Equal("Page_Load(Object,System.EventArgs)", eventHandlerIdTextPosition.Item1) TokenUtilities.AssertTokensEqual(generatedCode, eventHandlerIdTextPosition.Item2, Language) Assert.Equal(New TextSpan With {.iStartLine = 12, .iEndLine = 12}, eventHandlerIdTextPosition.Item3) End Using End Sub #End Region #Region "GetMemberNavigationPoint" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMemberNavigationPoint() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value ' Expect the cursor to be inside the method body of Button1_Click, line 14 column 8 Dim expectedSpan As New Microsoft.VisualStudio.TextManager.Interop.TextSpan() With { .iStartLine = 14, .iStartIndex = 8, .iEndLine = 14, .iEndIndex = 8 } Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim targetDocument As Document = Nothing Dim actualSpan As TextSpan = Nothing If Not ContainedLanguageCodeSupport.TryGetMemberNavigationPoint( thisDocument:=document, className:="_Default", uniqueMemberID:="Button1_Click(Object,System.EventArgs)", textSpan:=actualSpan, targetDocument:=targetDocument, cancellationToken:=Nothing) Then Assert.True(False, "should have succeeded") End If Assert.Equal(expectedSpan, actualSpan) End Using End Sub #End Region #Region "GetMembers" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_EventHandlersWrongParamType() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object, e As Object) End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENT_HANDLERS, cancellationToken:=Nothing) Assert.Equal(0, members.Count()) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_EventHandlersWrongParamCount() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object) End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENT_HANDLERS, cancellationToken:=Nothing) Assert.Equal(0, members.Count()) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_EventHandlersWrongReturnType() Dim code As String = <text> Imports System Public Partial Class _Default Protected Function Page_Load(sender As Object, e As EventArgs) As Integer End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENT_HANDLERS, cancellationToken:=Nothing) Assert.Equal(0, members.Count()) End Using End Sub ' To Do: Investigate, this returns the method even if handles is missing. that ok? <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_EventHandlers() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENT_HANDLERS, cancellationToken:=Nothing) Assert.Equal(1, members.Count()) Dim userFunction = members.First() Assert.Equal("Page_Load", userFunction.Item1) Assert.Equal("Page_Load(Object,System.EventArgs)", userFunction.Item2) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_UserFunctions() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Test(x as String) End Sub End Class </text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_USER_FUNCTIONS, cancellationToken:=Nothing) Assert.Equal(1, members.Count()) Dim userFunction = members.First() Assert.Equal("Test", userFunction.Item1) Assert.Equal("Test(String)", userFunction.Item2) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_Events() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="Button", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENTS, cancellationToken:=Nothing) Assert.Equal(1, members.Count()) Dim userFunction = members.First() Assert.Equal("Click", userFunction.Item1) Assert.Equal("Click(EVENT)", userFunction.Item2) End Using End Sub #End Region #Region "OnRenamed (TryRenameElement)" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_ResolvableMembers() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_CLASSMEMBER, oldFullyQualifiedName:="_Default.Page_Load", newFullyQualifiedName:="_Default.Page_Load1", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.True(renameSucceeded) End Using End Sub ' To Do: Who tests the fully qualified names and their absence? <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_UnresolvableMembers() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_CLASSMEMBER, oldFullyQualifiedName:="_Default.Fictional", newFullyQualifiedName:="_Default.Fictional1", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.False(renameSucceeded) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_ResolvableClass() Dim code As String = <text>Public Partial Class Goo End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_CLASS, oldFullyQualifiedName:="Goo", newFullyQualifiedName:="Bar", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.True(renameSucceeded) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_ResolvableNamespace() Dim code As String = <text>Namespace Goo End Namespace</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_NAMESPACE, oldFullyQualifiedName:="Goo", newFullyQualifiedName:="Bar", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.True(renameSucceeded) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_Button() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_CLASSMEMBER, oldFullyQualifiedName:="_Default.button", newFullyQualifiedName:="_Default.button1", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.True(renameSucceeded) End Using End Sub #End Region ' TODO: Does Dev10 cover more here, like conflicts with existing members? Protected Overrides ReadOnly Property DefaultCode As String Get Return <text> Class C End Class </text>.Value End Get End Property Protected Overrides ReadOnly Property Language As String Get Return Microsoft.CodeAnalysis.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 Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Editor Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions Imports Microsoft.CodeAnalysis.Editor.VisualBasic.Utilities Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.VisualStudio.LanguageServices.Implementation.Venus Imports Microsoft.VisualStudio.TextManager.Interop Imports Roslyn.Test.Utilities Imports Roslyn.Utilities Imports TextSpan = Microsoft.VisualStudio.TextManager.Interop.TextSpan Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Venus Public Class VisualBasicContainedLanguageCodeSupportTests Inherits AbstractContainedLanguageCodeSupportTests #Region "IsValid Tests" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_1() AssertValidId("field") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_Escaped() AssertValidId("[field]") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_EscapedKeyword() AssertValidId("[Class]") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_ContainsNumbers() AssertValidId("abc123") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_Keyword() AssertNotValidId("Class") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_StartsWithNumber() AssertNotValidId("123abc") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_Punctuation() AssertNotValidId("abc.abc") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_TypeChar() AssertValidId("abc$") End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestIsValidId_TypeCharInMiddle() AssertNotValidId("abc$abc") End Sub #End Region #Region "GetBaseClassName Tests" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_NonexistingClass() Dim code As String = <text>Class c End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.False(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "A", CancellationToken.None, baseClassName)) Assert.Null(baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_DerivedFromObject() Dim code As String = <text>Class C End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "C", CancellationToken.None, baseClassName)) Assert.Equal("Object", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_DerivedFromFrameworkType() Dim code As String = <text> Imports System Class C Inherits Exception End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "C", CancellationToken.None, baseClassName)) Assert.Equal("System.Exception", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_DerivedFromUserDefinedType() Dim code As String = <text> Class B End Class Class C Inherits B End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "C", CancellationToken.None, baseClassName)) Assert.Equal("B", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_FullyQualifiedNames() Dim code As String = <text> Namespace N Class B End Class Class C Inherits B End Class End Namespace</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "N.C", CancellationToken.None, baseClassName)) Assert.Equal("N.B", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_MinimallyQualifiedNames() Dim code As String = <text> Namespace N Class B End Class Class C Inherits B End Class End Namespace</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "N.C", CancellationToken.None, baseClassName)) Assert.Equal("N.B", baseClassName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetBaseClassName_EscapedKeyword() Dim code As String = <text> Class [Class] End Class Class Derived Inherits [Class] End Class </text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim baseClassName As String = Nothing Assert.True(ContainedLanguageCodeSupport.TryGetBaseClassName(document, "Derived", CancellationToken.None, baseClassName)) Assert.Equal("[Class]", baseClassName) End Using End Sub #End Region #Region "CreateUniqueEventName Tests" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_ButtonClick() Dim code As String = <text> Public Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class </text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click", eventName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_NameCollisionWithEventHandler() Dim code As String = <text> Public Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class </text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click1", eventName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_NameCollisionWithOtherMembers() Dim code As String = <text> Public Partial Class _Default Inherits System.Web.UI.Page Public Property Button1_Click As String Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click1", eventName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_NameCollisionFromPartialClass() Dim code As String = <text> Public Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class Public Partial Class _Default Public Property Button1_Click As String End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click1", eventName) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestCreateUniqueEventName_NameCollisionFromBaseClass() Dim code As String = <text> Public Partial Class _Default Inherits MyBaseClass Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class Public Class MyBaseClass Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventName = ContainedLanguageCodeSupport.CreateUniqueEventName( document:=document, className:="_Default", objectName:="Button1", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click1", eventName) End Using End Sub #End Region #Region "GetCompatibleEventHandlers" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetCompatibleEventHandlers_EventDoesntExist() Dim code As String = <text> Imports System Public Class Button End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Assert.Throws(Of InvalidOperationException)( Sub() ContainedLanguageCodeSupport.GetCompatibleEventHandlers( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", cancellationToken:=Nothing) End Sub) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetCompatibleEventHandlers_ObjTypeNameIsWrong() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Assert.Throws(Of InvalidOperationException)( Sub() ContainedLanguageCodeSupport.GetCompatibleEventHandlers( document:=document, className:="_Default", objectTypeName:="CheckBox", nameOfEvent:="Click", cancellationToken:=Nothing) End Sub) End Using End Sub ' To Do: Investigate - this feels wrong. when Handles Clause exists <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetCompatibleEventHandlers_MatchExists() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlers = ContainedLanguageCodeSupport.GetCompatibleEventHandlers( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal(1, eventHandlers.Count()) Assert.Equal("Page_Load", eventHandlers.Single().Item1) Assert.Equal("Page_Load(Object,System.EventArgs)", eventHandlers.Single().Item2) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetCompatibleEventHandlers_MatchesExist() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlers = ContainedLanguageCodeSupport.GetCompatibleEventHandlers( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", cancellationToken:=Nothing) Assert.Equal(2, eventHandlers.Count()) ' It has to be page_load and button click, but are they always ordered in the same way? End Using End Sub ' add tests for CompatibleSignatureToDelegate (#params, return type) #End Region #Region "GetEventHandlerMemberId" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetEventHandlerMemberId_HandlerExists() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerId = ContainedLanguageCodeSupport.GetEventHandlerMemberId( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", eventHandlerName:="Button1_Click", cancellationToken:=Nothing) Assert.Equal("Button1_Click(Object,System.EventArgs)", eventHandlerId) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetEventHandlerMemberId_CantFindHandler() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerId = ContainedLanguageCodeSupport.GetEventHandlerMemberId( document:=document, className:="_Default", objectTypeName:="Button", nameOfEvent:="Click", eventHandlerName:="Button1_Click", cancellationToken:=Nothing) Assert.Equal(Nothing, eventHandlerId) End Using End Sub #End Region #Region "EnsureEventHandler" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestEnsureEventHandler_HandlerExists() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerIdTextPosition = ContainedLanguageCodeSupport.EnsureEventHandler( thisDocument:=document, targetDocument:=document, className:="_Default", objectName:="Button1", objectTypeName:="Button", nameOfEvent:="Click", eventHandlerName:="Button1_Click", itemidInsertionPoint:=0, useHandlesClause:=True, additionalFormattingRule:=LineAdjustmentFormattingRule.Instance, cancellationToken:=Nothing) ' Since a valid handler exists, item2 and item3 of the tuple returned must be nothing Assert.Equal("Button1_Click(Object,System.EventArgs)", eventHandlerIdTextPosition.Item1) Assert.Equal(Nothing, eventHandlerIdTextPosition.Item2) Assert.Equal(New TextSpan(), eventHandlerIdTextPosition.Item3) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestEnsureEventHandler_GenerateNewHandler() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) End Sub End Class</text>.NormalizedValue Dim generatedCode As String = <text> Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub</text>.NormalizedValue Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerIdTextPosition = ContainedLanguageCodeSupport.EnsureEventHandler( thisDocument:=document, targetDocument:=document, className:="_Default", objectName:="Button1", objectTypeName:="Button", nameOfEvent:="Click", eventHandlerName:="Button1_Click", itemidInsertionPoint:=0, useHandlesClause:=True, additionalFormattingRule:=LineAdjustmentFormattingRule.Instance, cancellationToken:=Nothing) Assert.Equal("Button1_Click(Object,System.EventArgs)", eventHandlerIdTextPosition.Item1) TokenUtilities.AssertTokensEqual(generatedCode, eventHandlerIdTextPosition.Item2, Language) Assert.Equal(New TextSpan With {.iStartLine = 12, .iEndLine = 12}, eventHandlerIdTextPosition.Item3) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> <WorkItem(850035, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/850035")> Public Sub TestEnsureEventHandler_WithHandlesAndNullObjectName() Dim code As String = " Imports System Namespace System.Web.UI Public Class Page Public Event Load as EventHandler End Class End Namespace Public Class _Default Inherits System.Web.UI.Page End Class" Dim generatedCode As String = " Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub" Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim eventHandlerIdTextPosition = ContainedLanguageCodeSupport.EnsureEventHandler( thisDocument:=document, targetDocument:=document, className:="_Default", objectName:=Nothing, objectTypeName:="System.Web.UI.Page", nameOfEvent:="Load", eventHandlerName:="Page_Load", itemidInsertionPoint:=0, useHandlesClause:=True, additionalFormattingRule:=LineAdjustmentFormattingRule.Instance, cancellationToken:=Nothing) Assert.Equal("Page_Load(Object,System.EventArgs)", eventHandlerIdTextPosition.Item1) TokenUtilities.AssertTokensEqual(generatedCode, eventHandlerIdTextPosition.Item2, Language) Assert.Equal(New TextSpan With {.iStartLine = 12, .iEndLine = 12}, eventHandlerIdTextPosition.Item3) End Using End Sub #End Region #Region "GetMemberNavigationPoint" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMemberNavigationPoint() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value ' Expect the cursor to be inside the method body of Button1_Click, line 14 column 8 Dim expectedSpan As New Microsoft.VisualStudio.TextManager.Interop.TextSpan() With { .iStartLine = 14, .iStartIndex = 8, .iEndLine = 14, .iEndIndex = 8 } Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim targetDocument As Document = Nothing Dim actualSpan As TextSpan = Nothing If Not ContainedLanguageCodeSupport.TryGetMemberNavigationPoint( thisDocument:=document, className:="_Default", uniqueMemberID:="Button1_Click(Object,System.EventArgs)", textSpan:=actualSpan, targetDocument:=targetDocument, cancellationToken:=Nothing) Then Assert.True(False, "should have succeeded") End If Assert.Equal(expectedSpan, actualSpan) End Using End Sub #End Region #Region "GetMembers" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_EventHandlersWrongParamType() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object, e As Object) End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENT_HANDLERS, cancellationToken:=Nothing) Assert.Equal(0, members.Count()) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_EventHandlersWrongParamCount() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object) End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENT_HANDLERS, cancellationToken:=Nothing) Assert.Equal(0, members.Count()) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_EventHandlersWrongReturnType() Dim code As String = <text> Imports System Public Partial Class _Default Protected Function Page_Load(sender As Object, e As EventArgs) As Integer End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENT_HANDLERS, cancellationToken:=Nothing) Assert.Equal(0, members.Count()) End Using End Sub ' To Do: Investigate, this returns the method even if handles is missing. that ok? <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_EventHandlers() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENT_HANDLERS, cancellationToken:=Nothing) Assert.Equal(1, members.Count()) Dim userFunction = members.First() Assert.Equal("Page_Load", userFunction.Item1) Assert.Equal("Page_Load(Object,System.EventArgs)", userFunction.Item2) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_UserFunctions() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Test(x as String) End Sub End Class </text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="_Default", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_USER_FUNCTIONS, cancellationToken:=Nothing) Assert.Equal(1, members.Count()) Dim userFunction = members.First() Assert.Equal("Test", userFunction.Item1) Assert.Equal("Test(String)", userFunction.Item2) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestGetMembers_Events() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim members = ContainedLanguageCodeSupport.GetMembers( document:=document, className:="Button", codeMemberType:=CODEMEMBERTYPE.CODEMEMBERTYPE_EVENTS, cancellationToken:=Nothing) Assert.Equal(1, members.Count()) Dim userFunction = members.First() Assert.Equal("Click", userFunction.Item1) Assert.Equal("Click(EVENT)", userFunction.Item2) End Using End Sub #End Region #Region "OnRenamed (TryRenameElement)" <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_ResolvableMembers() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_CLASSMEMBER, oldFullyQualifiedName:="_Default.Page_Load", newFullyQualifiedName:="_Default.Page_Load1", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.True(renameSucceeded) End Using End Sub ' To Do: Who tests the fully qualified names and their absence? <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_UnresolvableMembers() Dim code As String = <text> Imports System Public Partial Class _Default Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_CLASSMEMBER, oldFullyQualifiedName:="_Default.Fictional", newFullyQualifiedName:="_Default.Fictional1", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.False(renameSucceeded) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_ResolvableClass() Dim code As String = <text>Public Partial Class Goo End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_CLASS, oldFullyQualifiedName:="Goo", newFullyQualifiedName:="Bar", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.True(renameSucceeded) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_ResolvableNamespace() Dim code As String = <text>Namespace Goo End Namespace</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_NAMESPACE, oldFullyQualifiedName:="Goo", newFullyQualifiedName:="Bar", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.True(renameSucceeded) End Using End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.Venus)> Public Sub TestTryRenameElement_Button() Dim code As String = <text> Imports System Public Class Button Public Event Click As EventHandler End Class Public Class _Default Private button As Button Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End Sub End Class</text>.Value Using workspace = GetWorkspace(code) Dim document = GetDocument(workspace) Dim renameSucceeded = ContainedLanguageCodeSupport.TryRenameElement( document:=document, clrt:=ContainedLanguageRenameType.CLRT_CLASSMEMBER, oldFullyQualifiedName:="_Default.button", newFullyQualifiedName:="_Default.button1", refactorNotifyServices:=SpecializedCollections.EmptyEnumerable(Of IRefactorNotifyService), cancellationToken:=Nothing) Assert.True(renameSucceeded) End Using End Sub #End Region ' TODO: Does Dev10 cover more here, like conflicts with existing members? Protected Overrides ReadOnly Property DefaultCode As String Get Return <text> Class C End Class </text>.Value End Get End Property Protected Overrides ReadOnly Property Language As String Get Return Microsoft.CodeAnalysis.LanguageNames.VisualBasic End Get End Property End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/Core/Portable/CodeActions/Annotations/ConflictAnnotation.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.CodeActions { /// <summary> /// Apply this annotation to a SyntaxNode to indicate a conflict may exist that requires user understanding and acknowledgment before taking action. /// </summary> public static class ConflictAnnotation { public const string Kind = "CodeAction_Conflict"; public static SyntaxAnnotation Create(string description) => new(Kind, description); public static string? GetDescription(SyntaxAnnotation annotation) => annotation.Data; } }
// Licensed to the .NET Foundation under one or more 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.CodeActions { /// <summary> /// Apply this annotation to a SyntaxNode to indicate a conflict may exist that requires user understanding and acknowledgment before taking action. /// </summary> public static class ConflictAnnotation { public const string Kind = "CodeAction_Conflict"; public static SyntaxAnnotation Create(string description) => new(Kind, description); public static string? GetDescription(SyntaxAnnotation annotation) => annotation.Data; } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_WellKnownAttributes.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.Linq; using System.Reflection; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.PortableExecutable; using System.Runtime.InteropServices; using System.Text; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { public static class WellKnownAttributeTestsUtil { public static bool? HasLocalsInit(this CompilationVerifier verifier, string qualifiedMethodName, bool realIL = false) { if (realIL) { var peReader = new PEReader(verifier.EmittedAssemblyData); var metadataReader = peReader.GetMetadataReader(); int lastDotIndex = qualifiedMethodName.LastIndexOf('.'); var spanName = qualifiedMethodName.AsSpan(); var typeName = spanName.Slice(0, lastDotIndex); var methodName = spanName.Slice(lastDotIndex + 1); TypeDefinition typeDef = default; foreach (var typeHandle in metadataReader.TypeDefinitions) { var type = metadataReader.GetTypeDefinition(typeHandle); var name = metadataReader.GetString(type.Name); if (name.AsSpan().Equals(typeName, StringComparison.Ordinal)) { typeDef = type; break; } } Assert.NotEqual(default, typeDef); MethodDefinition methodDef = default; foreach (var methodHandle in typeDef.GetMethods()) { var method = metadataReader.GetMethodDefinition(methodHandle); var name = metadataReader.GetString(method.Name); if (name.AsSpan().Equals(methodName, StringComparison.Ordinal)) { methodDef = method; break; } } Assert.NotEqual(default, methodDef); var block = peReader.GetMethodBody(methodDef.RelativeVirtualAddress); return block.LocalVariablesInitialized; } else { var il = verifier.VisualizeIL(qualifiedMethodName, realIL); if (il.Contains(".locals init (")) { return true; } if (il.Contains(".locals (")) { return false; } return null; } } } public class AttributeTests_WellKnownAttributes : WellKnownAttributesTestBase { #region Misc [Fact] public void TestInteropAttributes01() { var source = CreateCompilationWithMscorlib40(@" using System; using System.Runtime.InteropServices; [assembly: ComCompatibleVersion(1, 2, 3, 4)] [ComImport(), Guid(""ABCDEF5D-2448-447A-B786-64682CBEF123"")] [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] [TypeLibImportClass(typeof(object)), TypeLibType(TypeLibTypeFlags.FAggregatable)] [BestFitMapping(false, ThrowOnUnmappableChar = true)] public interface IGoo { [AllowReversePInvokeCalls()] void DoSomething(); [ComRegisterFunction()] void Register(object o); [ComUnregisterFunction()] void UnRegister(); [TypeLibFunc(TypeLibFuncFlags.FDefaultBind)] void LibFunc(); } class C { public static void Main() {} } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var assembly = m.ContainingSymbol; // Assembly var attrs = assembly.GetAttributes(); Assert.Equal(1, attrs.Length); var attrSym = attrs.First(); Assert.Equal("ComCompatibleVersionAttribute", attrSym.AttributeClass.Name); Assert.Equal(4, attrSym.CommonConstructorArguments.Length); Assert.Equal(0, attrSym.CommonNamedArguments.Length); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 1); // get expected attr symbol var interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(m); var guidSym = interopNS.GetTypeMember("GuidAttribute"); var ciSym = interopNS.GetTypeMember("ComImportAttribute"); var iTypeSym = interopNS.GetTypeMember("InterfaceTypeAttribute"); var itCtor = iTypeSym.Constructors.First(); var tLibSym = interopNS.GetTypeMember("TypeLibImportClassAttribute"); var tLTypeSym = interopNS.GetTypeMember("TypeLibTypeAttribute"); var bfmSym = interopNS.GetTypeMember("BestFitMappingAttribute"); // IGoo var igoo = m.GlobalNamespace.GetTypeMember("IGoo"); Assert.Equal(6, igoo.GetAttributes().Length); // get attr by NamedTypeSymbol attrSym = igoo.GetAttribute(ciSym); Assert.Equal("ComImportAttribute", attrSym.AttributeClass.Name); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); Assert.Equal(0, attrSym.CommonNamedArguments.Length); attrSym = igoo.GetAttribute(guidSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "ABCDEF5D-2448-447A-B786-64682CBEF123"); // get attr by ctor attrSym = igoo.GetAttribute(itCtor); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)ComInterfaceType.InterfaceIsIUnknown); attrSym = igoo.GetAttribute(tLibSym); attrSym.VerifyValue(0, TypedConstantKind.Type, typeof(object)); attrSym = igoo.GetAttribute(tLTypeSym); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)TypeLibTypeFlags.FAggregatable); attrSym = igoo.GetAttribute(bfmSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, false); attrSym.VerifyNamedArgumentValue(0, "ThrowOnUnmappableChar", TypedConstantKind.Primitive, true); // ============================= var mem = (MethodSymbol)igoo.GetMembers("DoSomething").First(); Assert.Equal(1, mem.GetAttributes().Length); attrSym = mem.GetAttributes().First(); Assert.Equal("AllowReversePInvokeCallsAttribute", attrSym.AttributeClass.Name); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); mem = (MethodSymbol)igoo.GetMembers("Register").First(); attrSym = mem.GetAttributes().First(); Assert.Equal("ComRegisterFunctionAttribute", attrSym.AttributeClass.Name); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); mem = (MethodSymbol)igoo.GetMembers("UnRegister").First(); Assert.Equal(1, mem.GetAttributes().Length); mem = (MethodSymbol)igoo.GetMembers("LibFunc").First(); attrSym = mem.GetAttributes().First(); Assert.Equal(1, attrSym.CommonConstructorArguments.Length); // 32 Assert.Equal(TypeLibFuncFlags.FDefaultBind, (TypeLibFuncFlags)attrSym.CommonConstructorArguments[0].Value); }; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator, symbolValidator: null); } [Fact] public void TestInteropAttributes02() { var source = CreateCompilationWithMscorlib40(@" using System; using System.Runtime.InteropServices; [assembly: PrimaryInteropAssembly(1, 2)] [assembly: Guid(""1234C65D-1234-447A-B786-64682CBEF136"")] [ComVisibleAttribute(false)] [UnmanagedFunctionPointerAttribute(CallingConvention.StdCall, BestFitMapping = true, CharSet = CharSet.Ansi, SetLastError = true, ThrowOnUnmappableChar = true)] public delegate void DGoo(char p1, sbyte p2); [ComDefaultInterface(typeof(object)), ProgId(""ProgId"")] public class CGoo { [DispIdAttribute(123)] [LCIDConversion(1), ComConversionLoss()] public void Method(sbyte p1, string p2) { } } [ComVisible(true), TypeIdentifier(""1234C65D-1234-447A-B786-64682CBEF136"", ""EGoo, InteropAttribute, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"")] public enum EGoo { One, [TypeLibVar(TypeLibVarFlags.FDisplayBind)] Two, [Obsolete(""message"", false)] Three } class C { public static void Main() {} } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var assembly = m.ContainingSymbol; // get expected attr symbol NamespaceSymbol interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(m); var comvSym = interopNS.GetTypeMember("ComVisibleAttribute"); var ufPtrSym = interopNS.GetTypeMember("UnmanagedFunctionPointerAttribute"); var comdSym = interopNS.GetTypeMember("ComDefaultInterfaceAttribute"); var pgidSym = interopNS.GetTypeMember("ProgIdAttribute"); var tidSym = interopNS.GetTypeMember("TypeIdentifierAttribute"); var dispSym = interopNS.GetTypeMember("DispIdAttribute"); var lcidSym = interopNS.GetTypeMember("LCIDConversionAttribute"); var comcSym = interopNS.GetTypeMember("ComConversionLossAttribute"); var globalNS = m.GlobalNamespace; // delegate DGoo var type1 = globalNS.GetTypeMember("DGoo"); Assert.Equal(2, type1.GetAttributes().Length); var attrSym = type1.GetAttribute(comvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, false); attrSym = type1.GetAttribute(ufPtrSym); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)CallingConvention.StdCall); // 3 attrSym.VerifyNamedArgumentValue(0, "BestFitMapping", TypedConstantKind.Primitive, true); attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi); attrSym.VerifyNamedArgumentValue(2, "SetLastError", TypedConstantKind.Primitive, true); attrSym.VerifyNamedArgumentValue(3, "ThrowOnUnmappableChar", TypedConstantKind.Primitive, true); // class CGoo var type2 = globalNS.GetTypeMember("CGoo"); Assert.Equal(2, type2.GetAttributes().Length); attrSym = type2.GetAttribute(comdSym); attrSym.VerifyValue(0, TypedConstantKind.Type, typeof(object)); attrSym = type2.GetAttribute(pgidSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "ProgId"); var method = (MethodSymbol)type2.GetMembers("Method").First(); attrSym = method.GetAttribute(dispSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 123); attrSym = method.GetAttribute(lcidSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 1); attrSym = method.GetAttribute(comcSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); //' enum EGoo var sourceAssembly = assembly as SourceAssemblySymbol; if (sourceAssembly != null) { // Because this is a nopia local type it is only visible from the source assembly. var type3 = globalNS.GetTypeMember("EGoo"); Assert.Equal(2, type3.GetAttributes().Length); attrSym = type3.GetAttribute(comvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, true); attrSym = type3.GetAttribute(tidSym); attrSym.VerifyValue(1, TypedConstantKind.Primitive, "EGoo, InteropAttribute, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); var field = (FieldSymbol)type3.GetMembers("One").First(); Assert.Equal(0, field.GetAttributes().Length); field = (FieldSymbol)type3.GetMembers("Two").First(); Assert.Equal(1, field.GetAttributes().Length); attrSym = field.GetAttributes().First(); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)TypeLibVarFlags.FDisplayBind); field = (FieldSymbol)type3.GetMembers("Three").First(); attrSym = field.GetAttributes().First(); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "message"); attrSym.VerifyValue(1, TypedConstantKind.Primitive, false); } }; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator, symbolValidator: null); } [ConditionalFact(typeof(DesktopOnly))] public void TestPseudoAttributes1() { #region "Source" var text = @" using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; [ComImport(), Guid(""6B29FC40-CA47-1067-B31D-00DD010662DA"")] public interface IBar { ulong Method1([OptionalAttribute(), DefaultParameterValue(99uL)]ref ulong v); string Method2([InAttribute(), Out(), DefaultParameterValue(""Ref"")]ref string v); object Method3( [InAttribute(), OptionalAttribute(), DefaultParameterValue(' ')]char v1, [Out()][OptionalAttribute()][DefaultParameterValue(0f)]float v2, [InAttribute()][OptionalAttribute()][DefaultParameterValue(null)]string v3); [PreserveSig()] void Method4( [DateTimeConstant(123456)]DateTime p1, [DecimalConstant(0, 0, 100, 100, 100)]decimal p2, [OptionalAttribute(), IDispatchConstant()]ref object p3); } [Serializable(), StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8, CharSet = System.Runtime.InteropServices.CharSet.Unicode)] public class CBar { [NonSerialized(), MarshalAs(UnmanagedType.I8), FieldOffset(0)] public long field; } class C { public static void Main() {} } "; #endregion #region Verifier Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var assembly = m.ContainingSymbol; // get expected attr symbol NamespaceSymbol sysNS = Get_System_NamespaceSymbol(m); NamespaceSymbol interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(sysNS); NamespaceSymbol compsrvNS = Get_System_Runtime_CompilerServices_NamespaceSymbol(sysNS); var serSym = sysNS.GetTypeMember("SerializableAttribute"); var nosSym = sysNS.GetTypeMember("NonSerializedAttribute"); var ciptSym = interopNS.GetTypeMember("ComImportAttribute"); var laySym = interopNS.GetTypeMember("StructLayoutAttribute"); var sigSym = interopNS.GetTypeMember("PreserveSigAttribute"); var offSym = interopNS.GetTypeMember("FieldOffsetAttribute"); var mshSym = interopNS.GetTypeMember("MarshalAsAttribute"); var optSym = interopNS.GetTypeMember("OptionalAttribute"); var inSym = interopNS.GetTypeMember("InAttribute"); var outSym = interopNS.GetTypeMember("OutAttribute"); // non pseudo var dtcSym = compsrvNS.GetTypeMember("DateTimeConstantAttribute"); var dmcSym = compsrvNS.GetTypeMember("DecimalConstantAttribute"); var iscSym = compsrvNS.GetTypeMember("IDispatchConstantAttribute"); var globalNS = m.GlobalNamespace; // Interface IBar var type1 = globalNS.GetTypeMember("IBar"); var attrSym = type1.GetAttribute(ciptSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); MethodSymbol method = null; ParameterSymbol parm = null; var sourceAssembly = assembly as SourceAssemblySymbol; if (sourceAssembly != null) { // Default attribute is in system.dll not mscorlib. Only do this check for source attributes. var defvSym = interopNS.GetTypeMember("DefaultParameterValueAttribute"); method = type1.GetMember<MethodSymbol>("Method1"); parm = method.Parameters[0]; attrSym = parm.GetAttribute(defvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 99uL); attrSym = parm.GetAttribute(optSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); method = type1.GetMember<MethodSymbol>("Method2"); parm = method.Parameters[0]; Assert.Equal(3, parm.GetAttributes().Length); attrSym = parm.GetAttribute(defvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "Ref"); attrSym = parm.GetAttribute(inSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); attrSym = parm.GetAttribute(outSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); method = type1.GetMember<MethodSymbol>("Method3"); parm = method.Parameters[1]; // v2 Assert.Equal(3, parm.GetAttributes().Length); attrSym = parm.GetAttribute(defvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 0f); attrSym = parm.GetAttribute(optSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); attrSym = parm.GetAttribute(outSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); } method = type1.GetMember<MethodSymbol>("Method4"); attrSym = method.GetAttributes().First(); Assert.Equal("PreserveSigAttribute", attrSym.AttributeClass.Name); parm = method.Parameters[0]; attrSym = parm.GetAttributes().First(); Assert.Equal("DateTimeConstantAttribute", attrSym.AttributeClass.Name); // attrSym.VerifyValue(0, TypedConstantKind.Primitive, 123456); parm = method.Parameters[1]; attrSym = parm.GetAttributes().First(); Assert.Equal("DecimalConstantAttribute", attrSym.AttributeClass.Name); Assert.Equal(5, attrSym.CommonConstructorArguments.Length); attrSym.VerifyValue(2, TypedConstantKind.Primitive, 100); parm = method.Parameters[2]; attrSym = parm.GetAttribute(iscSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); // class CBar var type2 = globalNS.GetTypeMember("CBar"); Assert.Equal(2, type2.GetAttributes().Length); attrSym = type2.GetAttribute(serSym); Assert.Equal("SerializableAttribute", attrSym.AttributeClass.Name); attrSym = type2.GetAttribute(laySym); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)LayoutKind.Explicit); Assert.Equal(3, attrSym.CommonNamedArguments.Length); attrSym.VerifyNamedArgumentValue(0, "Size", TypedConstantKind.Primitive, 16); attrSym.VerifyNamedArgumentValue(1, "Pack", TypedConstantKind.Primitive, 8); attrSym.VerifyNamedArgumentValue(2, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); var field = (FieldSymbol)type2.GetMembers("field").First(); Assert.Equal(3, field.GetAttributes().Length); attrSym = field.GetAttribute(nosSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); attrSym = field.GetAttribute(mshSym); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)UnmanagedType.I8); attrSym = field.GetAttribute(offSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 0); }; #endregion // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerifyWithMscorlib46(text, references: new[] { TestBase.SystemRef_v46 }, sourceSymbolValidator: attributeValidator); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttribute() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class Bar { public void Method([DateTimeConstant(-1)]DateTime p1) { } } "; #endregion // The native C# compiler emits this: // .param[1] // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( // 01 00 ff ff ff ff ff ff ff ff 00 00 // ) Action<ModuleSymbol> verifier = (module) => { var bar = (NamedTypeSymbol)((ModuleSymbol)module).GlobalNamespace.GetMember("Bar"); var method = (MethodSymbol)bar.GetMember("Method"); var parameters = method.GetParameters(); var theParameter = (PEParameterSymbol)parameters[0]; var peModule = (PEModuleSymbol)module; Assert.Equal(ParameterAttributes.HasDefault, theParameter.Flags); // native compiler has None instead // let's find the attribute in the PE metadata var attributeInfo = PEModule.FindTargetAttribute(peModule.Module.MetadataReader, theParameter.Handle, AttributeDescription.DateTimeConstantAttribute); Assert.True(attributeInfo.HasValue); long attributeValue; Assert.True(peModule.Module.TryExtractLongValueFromAttribute(attributeInfo.Handle, out attributeValue)); Assert.Equal(-1L, attributeValue); // check the attribute is constructed with a -1 // check .param has no value var constantValue = peModule.Module.GetParamDefaultValue(theParameter.Handle); Assert.Equal(ConstantValue.Null, constantValue); }; var comp = CompileAndVerify(source, symbolValidator: verifier); comp.VerifyDiagnostics(); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeReferencedViaRef() { #region "Source" var source1 = @" using System; using System.Runtime.CompilerServices; public class Bar { public void Method([DateTimeConstant(-1)]DateTime p1) { } } "; var source2 = @" public class Consumer { public static void M() { new Bar().Method(); } } "; #endregion var libComp = CreateCompilation(source1); var libCompRef = new CSharpCompilationReference(libComp); var comp2 = CreateCompilation(source2, new[] { libCompRef }); comp2.VerifyDiagnostics( // (6,19): error CS7036: There is no argument given that corresponds to the required formal parameter 'p1' of 'Bar.Method(DateTime)' // new Bar().Method(); Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Method").WithArguments("p1", "Bar.Method(System.DateTime)").WithLocation(6, 19) ); // The native compiler also gives an error: error CS1501: No overload for method 'Method' takes 0 arguments var libAssemblyRef = libComp.EmitToImageReference(); var comp3 = CreateCompilation(source2, new[] { libAssemblyRef }); comp3.VerifyDiagnostics( // (6,19): error CS7036: There is no argument given that corresponds to the required formal parameter 'p1' of 'Bar.Method(DateTime)' // new Bar().Method(); Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Method").WithArguments("p1", "Bar.Method(System.DateTime)").WithLocation(6, 19) ); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeWithBadDefaultValue() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class Bar { public DateTime M1([DateTimeConstant(-1)] DateTime x = default(DateTime)) { return x; } public static void Main() { Console.WriteLine(new Bar().M1().Ticks); } } "; #endregion // The native C# compiler would succeed and emit this: // .method public hidebysig instance void M1([opt] valuetype[mscorlib] System.DateTime x) cil managed // { // .param [1] = nullref // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 FF FF FF FF FF FF FF FF 00 00 ) var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (7,60): error CS8017: The parameter has multiple distinct default values. // public DateTime M1([DateTimeConstant(-1)] DateTime x = default(DateTime)) { return x; } Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "default(DateTime)").WithLocation(7, 60) ); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeWithValidDefaultValue() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class Bar { public DateTime M1([DateTimeConstant(42)] DateTime x = default(DateTime)) { return x; } public static void Main() { Console.WriteLine(new Bar().M1().Ticks); } } "; #endregion // The native C# compiler emits this: // .param [1] = nullref // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = (01 00 2A 00 00 00 00 00 00 00 00 00 ) var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (7,60): error CS8017: The parameter has multiple distinct default values. // public DateTime M1([DateTimeConstant(42)] DateTime x = default(DateTime)) { return x; } Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "default(DateTime)").WithLocation(7, 60) ); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeWithBadDefaultValueOnField() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class C { [DateTimeConstant(-1)] public DateTime F = default(DateTime); public static void Main() { System.Console.WriteLine(new C().F.Ticks); } } "; #endregion // The native C# compiler emits this: // .field public valuetype[mscorlib] System.DateTime F // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 FF FF FF FF FF FF FF FF 00 00 ) // using the native compiler, this code outputs 0 var comp = CompileAndVerify(source, expectedOutput: "0"); comp.VerifyDiagnostics(); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeWithValidDefaultValueOnField() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class C { [DateTimeConstant(42)] public DateTime F = default(DateTime); public static void Main() { System.Console.WriteLine(new C().F.Ticks); } } "; #endregion // The native C# compiler emits this: // .field public valuetype[mscorlib] System.DateTime F // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 2A 00 00 00 00 00 00 00 00 00 ) // Using the native compiler, the code executes to output 0 var comp = CompileAndVerify(source, expectedOutput: "0"); comp.VerifyDiagnostics(); } [Fact, WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void LoadingDateTimeConstantWithBadValue() { var ilsource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .method public hidebysig instance valuetype [mscorlib]System.DateTime Method([opt] valuetype [mscorlib]System.DateTime p) cil managed { .param [1] .custom instance void [mscorlib]System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 FF FF FF FF FF FF FF FF 00 00 ) // Code size 7 (0x7) .maxstack 1 .locals init (valuetype [mscorlib]System.DateTime V_0) IL_0000: nop IL_0001: ldarg.1 IL_0002: stloc.0 IL_0003: br.s IL_0005 IL_0005: ldloc.0 IL_0006: ret } // end of method C::Method .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method C::.ctor } // end of class C "; var cssource = @" public class D { public static void Main() { System.Console.WriteLine(new C().Method().Ticks); } } "; var ilReference = CompileIL(ilsource); CompileAndVerify(cssource, expectedOutput: "0", references: new[] { ilReference }); // The native compiler would produce a working exe, but that exe would fail at runtime } [Fact] public void TestDecimalConstantAttribute() { #region "Source" var text = @" using System; using System.Reflection; namespace TestProject { class Program { static void Main(string[] args) { foreach (var field in typeof(CCC).GetFields()) { PrintAttribute(field); } } static void PrintAttribute(FieldInfo field ) { var attr = field.GetCustomAttributesData()[0]; Console.WriteLine(""{0}, {1}, {2}, {3}, {4}, {5}"", attr.ConstructorArguments[0], attr.ConstructorArguments[1], attr.ConstructorArguments[2], attr.ConstructorArguments[3], attr.ConstructorArguments[4], field.IsInitOnly); } } } public class CCC { public const Decimal _Min = Decimal.MinValue; public const Decimal _Max = Decimal.MaxValue; public const Decimal _One = Decimal.One; public const Decimal _MinusOne = Decimal.MinusOne; public const Decimal _Zero = Decimal.Zero; }"; #endregion CompileAndVerify( text, expectedOutput: @" (Byte)0, (Byte)128, (UInt32)4294967295, (UInt32)4294967295, (UInt32)4294967295, True (Byte)0, (Byte)0, (UInt32)4294967295, (UInt32)4294967295, (UInt32)4294967295, True (Byte)0, (Byte)0, (UInt32)0, (UInt32)0, (UInt32)1, True (Byte)0, (Byte)128, (UInt32)0, (UInt32)0, (UInt32)1, True (Byte)0, (Byte)0, (UInt32)0, (UInt32)0, (UInt32)0, True"); } #endregion #region DefaultParameterValueAttribute, OptionalAttribute [Fact] public void DPV_Decimal() { string source = @" using System.Runtime.InteropServices; public class C { public static void f([Optional, DefaultParameterValue(default(decimal))]decimal a) { } } "; CreateCompilation(source).VerifyDiagnostics( // (6,59): error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(decimal)")); } [Fact] public void DPV_ImplicitConversion() { var source = @" using System.Runtime.InteropServices; public class C { public void M([DefaultParameterValue((short)1)]int goo) { } }"; Action<ModuleSymbol> verifier = (module) => { var c = (NamedTypeSymbol)((ModuleSymbol)module).GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); //EDMAURER the language doesn't believe the parameter is optional and //doesn't import the default parameter. Assert.False(ps[0].HasExplicitDefaultValue); Assert.Throws<InvalidOperationException>(() => ps[0].ExplicitDefaultValue); var theParameter = (PEParameterSymbol)ps[0]; object value = theParameter.ImportConstantValue().Value; Assert.True(value is short, "Expected value to be Int16"); Assert.Equal((short)1, value); Assert.False(ps[0].IsOptional); Assert.Equal(0, ps[0].GetAttributes().Length); }; CompileAndVerify(source, symbolValidator: verifier); } [Fact] public void DPV_String() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; public class C { public void M([DefaultParameterValue(""default str"")]string str) { } } "); Action<ModuleSymbol> verifier = module => { var c = (NamedTypeSymbol)module.GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); var theParameter = (PEParameterSymbol)ps[0]; Assert.Equal("default str", theParameter.ImportConstantValue().StringValue); Assert.False(ps[0].IsOptional); Assert.Equal(0, ps[0].GetAttributes().Length); }; CompileAndVerify(compilation, symbolValidator: verifier); } [Fact] public void OptionalAttribute() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; public class C { public void M([Optional]int i) { } } "); Action<ModuleSymbol> verifier = module => { var c = (NamedTypeSymbol)module.GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); Assert.False(ps[0].HasExplicitDefaultValue); Assert.Throws<InvalidOperationException>(() => ps[0].ExplicitDefaultValue); Assert.True(ps[0].IsOptional); Assert.Equal(0, ps[0].GetAttributes().Length); }; CompileAndVerify(compilation, symbolValidator: verifier); } [Fact] public void DPV_Optional_CallFromAnotherCompilation() { var c1 = CreateCompilation(@" using System.Runtime.InteropServices; public class C { public int O([Optional]int i) { return i; } public int D([DefaultParameterValue(1)]int i) { return i; } public int OD([Optional, DefaultParameterValue(2)]int i) { return i; } } "); var c2 = CreateCompilation(@" public class D { public void M() { C c = new C(); c.O(10); c.O(); c.D(20); // c.D(); ... can't call d with not arguments as it doesn't have [Optional] parameter c.OD(30); c.OD(); } } ", new[] { new CSharpCompilationReference(c1) }); c2.VerifyDiagnostics(); } [Fact] public void CustomDefaultParameterValueAttribute1() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Parameter)] public sealed class DefaultParameterValueAttribute : Attribute { public DefaultParameterValueAttribute() { } } } public class C { public static void M([Optional, DefaultParameterValue]int i) { } public static void Main() { M(); } } "); Action<ModuleSymbol> verifier = module => { var c = (NamedTypeSymbol)module.GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); // DPV is ignore if it has invalid signature Assert.False(ps[0].HasExplicitDefaultValue); Assert.Throws<InvalidOperationException>(() => ps[0].ExplicitDefaultValue); Assert.True(ps[0].IsOptional); }; CompileAndVerify(compilation, symbolValidator: verifier); } [Fact] public void CustomDefaultParameterValueAttribute2() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Parameter)] public sealed class DefaultParameterValueAttribute : Attribute { public DefaultParameterValueAttribute(object value, object trueValue) { } } } public class C { public static void M([Optional, DefaultParameterValue(null, 1)]int i) { } public static void Main() { M(); } } "); Action<ModuleSymbol> verifier = module => { var c = (NamedTypeSymbol)module.GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); // DPV is ignore if it has invalid signature Assert.False(ps[0].HasExplicitDefaultValue); Assert.Throws<InvalidOperationException>(() => ps[0].ExplicitDefaultValue); Assert.True(ps[0].IsOptional); }; CompileAndVerify(compilation, symbolValidator: verifier); } [Fact] public void DPV_Optional_Indexers() { string source = @" using System.Runtime.InteropServices; public class C { public int this[[Optional, DefaultParameterValue(1)]int a, int b = 2, [Optional, DefaultParameterValue(null)]params int[] args] { get { return 0; } [param: Optional, DefaultParameterValue(3)] set { } } }"; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var paramDef in metadataReader.GetParameters()) { var param = metadataReader.GetParameter(paramDef); Assert.Equal(ParameterAttributes.Optional | ParameterAttributes.HasDefault, param.Attributes); } foreach (var handle in metadataReader.GetConstants()) { var constant = metadataReader.GetConstant(handle); var paramRow = metadataReader.GetParameter((ParameterHandle)constant.Parent); string name = metadataReader.GetString(paramRow.Name); byte[] expectedConstant; switch (name) { case "args": expectedConstant = new byte[] { 0x00, 0x00, 0x00, 0x00 }; break; case "a": expectedConstant = new byte[] { 0x01, 0x00, 0x00, 0x00 }; break; case "b": expectedConstant = new byte[] { 0x02, 0x00, 0x00, 0x00 }; break; case "value": expectedConstant = new byte[] { 0x03, 0x00, 0x00, 0x00 }; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } var actual = metadataReader.GetBlobBytes(constant.Value); AssertEx.Equal(expectedConstant, actual); } }); } [Fact] public void DPV_Optional_Delegates() { string source = @" using System.Runtime.InteropServices; public delegate void D([Optional, DefaultParameterValue(1)]ref int a, int b = 2, [Optional, DefaultParameterValue(null)]params int[] args); "; // Dev11: doesn't allow DPV(null) on int[], we do. CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var methodHandle in metadataReader.MethodDefinitions) { var methodDef = metadataReader.GetMethodDefinition(methodHandle); string methodName = metadataReader.GetString(methodDef.Name); foreach (var paramDef in methodDef.GetParameters()) { var paramRow = metadataReader.GetParameter(paramDef); string paramName = metadataReader.GetString(paramRow.Name); ParameterAttributes expectedFlags; string completeName = methodName + "." + paramName; switch (completeName) { case "BeginInvoke.a": case "BeginInvoke.args": case "EndInvoke.a": case "Invoke.a": case "Invoke.b": case "Invoke.args": expectedFlags = ParameterAttributes.Optional | ParameterAttributes.HasDefault; break; case ".ctor.object": case ".ctor.method": case "BeginInvoke.b": case "BeginInvoke.callback": case "BeginInvoke.object": case "EndInvoke.result": expectedFlags = 0; break; default: throw TestExceptionUtilities.UnexpectedValue(completeName); } Assert.Equal(expectedFlags, paramRow.Attributes); } } foreach (var handle in metadataReader.GetConstants()) { var constant = metadataReader.GetConstant(handle); var paramRow = metadataReader.GetParameter((ParameterHandle)constant.Parent); string name = metadataReader.GetString(paramRow.Name); byte[] expectedConstant; switch (name) { case "a": expectedConstant = new byte[] { 0x01, 0x00, 0x00, 0x00 }; break; case "args": expectedConstant = new byte[] { 0x00, 0x00, 0x00, 0x00 }; // null break; case "b": expectedConstant = new byte[] { 0x02, 0x00, 0x00, 0x00 }; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } var actual = metadataReader.GetBlobBytes(constant.Value); AssertEx.Equal(expectedConstant, actual); } }); } [Fact] public void OptionalAttribute_AttributeArrayParameter() { var text = @" using System; using System.Runtime.InteropServices; [A] public class A : Attribute { public A([Optional]int[] a) { } }"; CompileAndVerify(text); } [Fact] public void DefaultParameterValue_Null() { var text = @"using System.Runtime.InteropServices; public class C { } public class D { } public interface ISomeInterface { void Test1([DefaultParameterValue(null)]int[] arg); void Test2([DefaultParameterValue(null)]System.Type arg); void Test3([DefaultParameterValue(null)]System.Array arg); void Test4([DefaultParameterValue(null)]C arg); void Test5([DefaultParameterValue((C)null)]D arg); void Test6<T>([DefaultParameterValue(null)]T arg) where T : class; } "; // Dev10 reports CS1909, we don't CompileAndVerify(text); } [Fact, WorkItem(544934, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544934")] public void Bug13129() { string source = @" using System; using System.Runtime.InteropServices; class C { static void Goo([Optional][DefaultParameterValue(5)] decimal? x) { Console.WriteLine(x); } static void Main() { Goo(); } }"; CompileAndVerify(source, expectedOutput: @"5"); } [Fact] public void OptionalParameterInTheMiddle() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; using System; public class X { public int InTheMiddle(int a, [Optional, DefaultParameterValue((short)1)]int b, int c){ return 2; } }"); CompileAndVerify(compilation); } [Fact] public void OptionalAttributeParameter_Numeric() { var compilation = CreateCompilation(@" using System; [AttributeUsage(AttributeTargets.Parameter)] public sealed class X : Attribute { public X(int x, int y, int z, [System.Runtime.InteropServices.Optional]int w) { } } public class C { public static void M([X(0, z: 2, y: 1)]int i) { } } "); CompileAndVerify(compilation); } [Fact] public void OptionalAttributeParameter_Enum() { var compilation = CreateCompilation(@" using System; public enum E { A, B, C } [AttributeUsage(AttributeTargets.Parameter)] public sealed class X : Attribute { public X(int x, [System.Runtime.InteropServices.Optional]int y, int z, [System.Runtime.InteropServices.Optional]E w) { } } public class C { public static void M([X(x:0, z: 2)]int i) { } } "); CompileAndVerify(compilation); } [Fact, WorkItem(546785, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546785")] public void OptionalAttributeOnPartialMethodParameters() { var source = @" using System.Runtime.InteropServices; using System.Runtime.CompilerServices; partial class C { partial void Goo([Optional] int x); partial void Goo([DefaultParameterValue(0)] int x) { } partial void Goo2([DefaultParameterValue(0)] int x); partial void Goo2([Optional] int x) { } partial void Goo3([Optional][DefaultParameterValue(0)] int x); partial void Goo3(int x) { } partial void Goo4(int x); partial void Goo4([Optional][DefaultParameterValue(0)] int x) { } } "; Action<SourceOrdinaryMethodSymbol> partialValidator = (SourceOrdinaryMethodSymbol sourceMethod) => { Assert.True(sourceMethod.IsPartial, "Not a partial method?"); MethodSymbol partialDefPart = sourceMethod.IsPartialDefinition ? sourceMethod : sourceMethod.PartialDefinitionPart; var param = (SourceParameterSymbol)partialDefPart.Parameters[0]; Assert.True(param.HasOptionalAttribute, "No OptionalAttribute?"); MethodSymbol partialImplPart = sourceMethod.IsPartialImplementation ? sourceMethod : sourceMethod.PartialImplementationPart; param = (SourceParameterSymbol)partialImplPart.Parameters[0]; Assert.True(param.HasOptionalAttribute, "No OptionalAttribute?"); }; Action<ModuleSymbol> sourceValidator = (ModuleSymbol m) => { var typeC = m.GlobalNamespace.GetTypeMember("C"); var sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo"); partialValidator(sourceMethod); sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo2"); partialValidator(sourceMethod); sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo3"); partialValidator(sourceMethod); sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo4"); partialValidator(sourceMethod); }; CompileAndVerify(source, sourceSymbolValidator: sourceValidator); } [WorkItem(544303, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544303")] [Fact] public void OptionalAttributeBindingCycle() { string source = @" using System; using System.Runtime.InteropServices; [Goo] public class Goo: Attribute { public Goo([Optional][Goo]int y) {} public static void Main() {} }"; CompileAndVerify(source, expectedOutput: ""); } [Fact] public void OptionalAttributeBindingCycle_02() { string source = @" using System; using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { public class OptionalAttribute: Attribute { public OptionalAttribute(bool isOpt = true) {} } } public class Goo: Attribute { public Goo([Optional(isOpt: false)][Goo]int y) {} public static void Main() {} }"; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (15,17): warning CS0436: The type 'System.Runtime.InteropServices.OptionalAttribute' in '' conflicts with the imported type 'System.Runtime.InteropServices.OptionalAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in ''. // public Goo([Optional(isOpt: false)][Goo]int y) {} Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Optional").WithArguments("", "System.Runtime.InteropServices.OptionalAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Runtime.InteropServices.OptionalAttribute").WithLocation(15, 17), // (15,41): error CS7036: There is no argument given that corresponds to the required formal parameter 'y' of 'Goo.Goo(int)' // public Goo([Optional(isOpt: false)][Goo]int y) {} Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(15, 41)); } [Fact] public void OptionalAttributeBindingCycle_03() { string source = @" using System; using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Class)] public class OptionalAttribute: Attribute { public OptionalAttribute() {} } } public class Goo: Attribute { public Goo([Optional][Goo]int y) {} public static void Main() {} }"; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (16,17): warning CS0436: The type 'System.Runtime.InteropServices.OptionalAttribute' in '' conflicts with the imported type 'System.Runtime.InteropServices.OptionalAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in ''. // public Goo([Optional][Goo]int y) {} Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Optional").WithArguments("", "System.Runtime.InteropServices.OptionalAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Runtime.InteropServices.OptionalAttribute"), // (16,17): error CS0592: Attribute 'Optional' is not valid on this declaration type. It is only valid on 'class' declarations. // public Goo([Optional][Goo]int y) {} Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Optional").WithArguments("Optional", "class")); } [Fact] public void OptionalAttributeBindingCycle_04() { string source = @" using System; using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Class)] public class OptionalAttribute: Attribute { public OptionalAttribute(object o) {} } } public class Goo: Attribute { public Goo([Optional(new Goo())][Goo]int y) {} public static void Main() {} }"; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (16,17): warning CS0436: The type 'System.Runtime.InteropServices.OptionalAttribute' in '' conflicts with the imported type 'System.Runtime.InteropServices.OptionalAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in ''. // public Goo([Optional(new Goo())][Goo]int y) {} Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Optional").WithArguments("", "System.Runtime.InteropServices.OptionalAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Runtime.InteropServices.OptionalAttribute").WithLocation(16, 17), // (16,30): error CS7036: There is no argument given that corresponds to the required formal parameter 'y' of 'Goo.Goo(int)' // public Goo([Optional(new Goo())][Goo]int y) {} Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(16, 30), // (16,38): error CS7036: There is no argument given that corresponds to the required formal parameter 'y' of 'Goo.Goo(int)' // public Goo([Optional(new Goo())][Goo]int y) {} Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(16, 38)); } [Fact, WorkItem(546624, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546624")] public void DPV_Optional_Valid() { string source = @" using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustomAttribute : Attribute { public MyCustomAttribute(SecurityAction action, [Optional][MarshalAs(UnmanagedType.Interface)]object x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom2Attribute : Attribute { public MyCustom2Attribute(SecurityAction action, [Optional]object x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom3Attribute : Attribute { public MyCustom3Attribute([Optional]object x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom4Attribute : Attribute { public MyCustom4Attribute([Optional]SecurityAction x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom7Attribute : Attribute { public MyCustom7Attribute(SecurityAction action, [Optional]int x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom10Attribute: Attribute { public MyCustom10Attribute(SecurityAction x, [Optional][DefaultParameterValueAttribute(SecurityAction.Demand)]object y) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom11Attribute: Attribute { public MyCustom11Attribute([Optional][DefaultParameterValue(SecurityAction.Demand)]SecurityAction x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom12Attribute: Attribute { public MyCustom12Attribute(SecurityAction action, [Optional][DefaultParameterValue(null)]object x) { } } [MyCustom(SecurityAction.Demand, null)] [MyCustom2(SecurityAction.Demand, null)] [MyCustom3(SecurityAction.Demand)] [MyCustom4Attribute] [MyCustom4(SecurityAction.Demand)] [MyCustom7(SecurityAction.Demand, 0)] [MyCustom10(SecurityAction.Demand, null)] [MyCustom10(SecurityAction.Demand, SecurityAction.Demand)] [MyCustom11()] [MyCustom11(SecurityAction.Demand)] [MyCustom12(SecurityAction.Demand)] [MyCustom12(SecurityAction.Demand, 0)] class C { public static void Main() { typeof(C).GetCustomAttributes(false); } } "; CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: ""); } [Fact, WorkItem(546624, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546624")] public void CS7067ERR_BadAttributeParamDefaultArgument() { string source = @" using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermissionAttribute : CodeAccessSecurityAttribute { public MyPermissionAttribute(SecurityAction action, [Optional][MarshalAs(UnmanagedType.Interface)]object x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission2Attribute : CodeAccessSecurityAttribute { public MyPermission2Attribute(SecurityAction action, [Optional]object x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission3Attribute : CodeAccessSecurityAttribute { public MyPermission3Attribute([Optional]object x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission4Attribute : CodeAccessSecurityAttribute { public MyPermission4Attribute([Optional]SecurityAction x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission5Attribute : CodeAccessSecurityAttribute { public MyPermission5Attribute(SecurityAction action, object x = SecurityAction.Demand) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission6Attribute : CodeAccessSecurityAttribute { public MyPermission6Attribute(object x = SecurityAction.Demand) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission7Attribute : CodeAccessSecurityAttribute { public MyPermission7Attribute(SecurityAction action, [Optional]int x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } class MyPermission8Attribute : CodeAccessSecurityAttribute { public MyPermission8Attribute([Optional][DefaultParameterValueAttribute(null)]SecurityAction x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } class MyPermission9Attribute : CodeAccessSecurityAttribute { public MyPermission9Attribute([Optional][DefaultParameterValueAttribute(-1)]SecurityAction x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } class MyPermission10Attribute : CodeAccessSecurityAttribute { public MyPermission10Attribute(SecurityAction x, [Optional][DefaultParameterValueAttribute(SecurityAction.Demand)]object y) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [MyPermission(SecurityAction.Demand)] [MyPermission(SecurityAction.Demand, null)] [MyPermission2(SecurityAction.Demand)] [MyPermission2(SecurityAction.Demand, null)] [MyPermission3()] [MyPermission3(SecurityAction.Demand)] [MyPermission3(null)] [MyPermission4()] [MyPermission4(SecurityAction.Demand)] [MyPermission4(null)] [MyPermission5(SecurityAction.Demand)] [MyPermission5(SecurityAction.Demand, null)] [MyPermission6()] [MyPermission6(SecurityAction.Demand)] [MyPermission6(null)] [MyPermission7(SecurityAction.Demand)] [MyPermission7(SecurityAction.Demand, 0)] [MyPermission8()] [MyPermission8(SecurityAction.Demand)] [MyPermission9()] [MyPermission9(SecurityAction.Demand)] [MyPermission10(SecurityAction.Demand)] [MyPermission10(SecurityAction.Demand, null)] class C { public static void Main() { } } "; CreateCompilation(source).VerifyDiagnostics( // (63,65): error CS1763: 'x' is of type 'object'. A default parameter value of a reference type other than string can only be initialized with null // public MyPermission5Attribute(SecurityAction action, object x = SecurityAction.Demand) : base(SecurityAction.Demand) Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "object"), // (76,42): error CS1763: 'x' is of type 'object'. A default parameter value of a reference type other than string can only be initialized with null // public MyPermission6Attribute(object x = SecurityAction.Demand) : base(SecurityAction.Demand) Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "object"), // (101,46): error CS1908: The type of the argument to the DefaultParameterValue attribute must match the parameter type // public MyPermission8Attribute([Optional][DefaultParameterValueAttribute(null)]SecurityAction x) : base(SecurityAction.Demand) Diagnostic(ErrorCode.ERR_DefaultValueTypeMustMatch, "DefaultParameterValueAttribute"), // (113,46): error CS1908: The type of the argument to the DefaultParameterValue attribute must match the parameter type // public MyPermission9Attribute([Optional][DefaultParameterValueAttribute(-1)]SecurityAction x) : base(SecurityAction.Demand) Diagnostic(ErrorCode.ERR_DefaultValueTypeMustMatch, "DefaultParameterValueAttribute"), // (137,2): error CS7067: Attribute constructor parameter 'x' is optional, but no default parameter value was specified. // [MyPermission(SecurityAction.Demand)] Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission").WithArguments("x"), // (140,2): error CS7067: Attribute constructor parameter 'x' is optional, but no default parameter value was specified. // [MyPermission2(SecurityAction.Demand)] Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission2").WithArguments("x"), // (143,2): error CS7067: Attribute constructor parameter 'x' is optional, but no default parameter value was specified. // [MyPermission3()] Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission3").WithArguments("x"), // (149,16): error CS1503: Argument 1: cannot convert from '<null>' to 'System.Security.Permissions.SecurityAction' // [MyPermission4(null)] Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("1", "<null>", "System.Security.Permissions.SecurityAction"), // (167,2): error CS1763: 'y' is of type 'object'. A default parameter value of a reference type other than string can only be initialized with null // [MyPermission10(SecurityAction.Demand)] Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "MyPermission10(SecurityAction.Demand)").WithArguments("y", "object"), // (145,2): error CS7048: First argument to a security attribute must be a valid SecurityAction // [MyPermission3(null)] Diagnostic(ErrorCode.ERR_SecurityAttributeMissingAction, "MyPermission3"), // (147,2): error CS7049: Security attribute 'MyPermission4' has an invalid SecurityAction value '0' // [MyPermission4()] Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "MyPermission4()").WithArguments("MyPermission4", "0"), // (156,2): error CS7048: First argument to a security attribute must be a valid SecurityAction // [MyPermission6(null)] Diagnostic(ErrorCode.ERR_SecurityAttributeMissingAction, "MyPermission6")); } [Fact] [WorkItem(1036356, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1036356")] public void EnumAsDefaultParameterValue() { const string source = @" using System; using System.Runtime.InteropServices; class Program { static void Goo([Optional][DefaultParameterValue(DayOfWeek.Monday)] Enum x) { } static void Main() { Goo(); // 1 } }"; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (13,9): error CS0029: Cannot implicitly convert type 'int' to 'System.Enum' // Goo(); // 1 Diagnostic(ErrorCode.ERR_NoImplicitConv, "Goo()").WithArguments("int", "System.Enum").WithLocation(13, 9)); } #endregion #region DecimalConstantAttribute [Fact, WorkItem(544438, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544438"), WorkItem(538206, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538206")] public void DefaultParameterValueIntToObj() { // The native compiler's behavior: // It does honour int default values in attributes whether the parameter // is int or object, and whether the attributes appear in source or metadata. // The native compiler does NOT honor decimal and datetime attributes in source // but does honour them in metadata. // // Roslyn removes this inconsistency; we honour the decimal and datetime // attributes whether they appear in metadata or source. string source = @" using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; public class Parent { public void Goo1([Optional][DecimalConstant(0, 0, (uint)0, (uint)0, (uint)100)] decimal i) { Console.Write(i); } public void Goo3([Optional][DateTimeConstant(200)] DateTime dt) { Console.Write(dt.Ticks); } public void Goo4([Optional][DefaultParameterValue(300)] int i) { Console.Write(i); } public void Goo5([Optional][DefaultParameterValue(400)] object i) { Console.Write(i); } } class Test { public static void Main() { var p = new Parent(); p.Goo1(); p.Goo3(); p.Goo4(); p.Goo5(); } } "; CompileAndVerify(source, expectedOutput: @"100200300400"); } [WorkItem(544516, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544516")] [Fact] public void DecimalConstantAttributesAsMetadata() { var source = @" using System; using System.Reflection; using System.Runtime.CompilerServices; public class MyClass { //should have DecimalConstantAttribute. public const decimal DecI1 = 10000.213213M; //should not have DecimalConstantAttribute. public static readonly decimal DecI2 = 10000.213213M; public static void Main() { FieldInfo fi = typeof(MyClass).GetField(""DecI1""); object[] Attrs = fi.GetCustomAttributes(false); if (Attrs != null && Attrs.Length == 1 && Attrs[0].GetType() == typeof(DecimalConstantAttribute)) { Console.WriteLine(""Has DecimalConstantAttribute""); } fi = typeof(MyClass).GetField(""DecI2""); Attrs = fi.GetCustomAttributes(false); if (Attrs == null || Attrs.Length == 0) { Console.WriteLine(""No DecimalConstantAttribute""); } } }"; CompileAndVerify(source, expectedOutput: @"Has DecimalConstantAttribute No DecimalConstantAttribute"); } [ConditionalFact(typeof(ClrOnly), Reason = "https://github.com/dotnet/roslyn/issues/23760")] public void DecimalConstant_Indexers() { string source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { public decimal this[[Optional, DecimalConstant(1,2,3,4,5)]decimal a, decimal b = 2m] { get { return 0; } [param: Optional, DecimalConstant(10,20,30,40,50)] set { } } } "; var comp = CompileAndVerify(source, expectedSignatures: new[] { Signature("C", "get_Item", ".method public hidebysig specialname instance System.Decimal get_Item(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal a = -5534023223830852403.7, " + "[System.Runtime.CompilerServices.DecimalConstantAttribute(0, 0, 0, 0, 2)] [opt] System.Decimal b = 2) " + "cil managed"), Signature("C", "set_Item", ".method public hidebysig specialname instance System.Void set_Item(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal a = -5534023223830852403.7, " + "[System.Runtime.CompilerServices.DecimalConstantAttribute(0, 0, 0, 0, 2)] [opt] System.Decimal b = 2, " + "[System.Runtime.CompilerServices.DecimalConstantAttribute(10, 20, 30, 40, 50)] [opt] System.Decimal value = -55340232238.3085240370) " + "cil managed") }); } [ConditionalFact(typeof(ClrOnly), Reason = "https://github.com/dotnet/roslyn/issues/23760")] public void DecimalConstant_Delegates() { string source = @" using System.Runtime.InteropServices; using System.Runtime.CompilerServices; public delegate void D([Optional, DecimalConstantAttribute(hi: 3, sign: 2, mid: 4, low: 5, scale: 1)]ref decimal a, decimal b = 2m); "; var comp = CompileAndVerify(source, expectedSignatures: new[] { Signature("D", "BeginInvoke", ".method public hidebysig newslot virtual instance System.IAsyncResult BeginInvoke(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal& a = -5534023223830852403.7, " + "System.Decimal b, " + "System.AsyncCallback callback, " + "System.Object object) " + "runtime managed"), Signature("D", "EndInvoke", ".method public hidebysig newslot virtual instance System.Void EndInvoke(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal& a = -5534023223830852403.7, " + "System.IAsyncResult result) " + "runtime managed"), Signature("D", "Invoke", ".method public hidebysig newslot virtual instance System.Void Invoke(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal& a = -5534023223830852403.7, " + "[System.Runtime.CompilerServices.DecimalConstantAttribute(0, 0, 0, 0, 2)] [opt] System.Decimal b = 2) " + "runtime managed") }); } #endregion #region InAttribute, OutAttribute [Fact] public void InOutAttributes() { var source = @" using System.Runtime.InteropServices; class C { public static void M1([In]ref int a, [In] int b, [In]params object[] c) { throw null; } public static void M2([Out]out int d, [Out] int e, [Out]params object[] f) { throw null; } public static void M3([In, Out]ref int g, [In, Out] int h, [In, Out]params object[] i) { throw null; } public static void M4([In]int j = 1, [Out]int k = 2, [In, Out]int l = 3) { throw null; } public static void M5(int m, out int n, ref int o) { throw null; } } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(15, metadataReader.GetTableRowCount(TableIndex.Param)); foreach (var paramDef in metadataReader.GetParameters()) { var row = metadataReader.GetParameter(paramDef); string name = metadataReader.GetString(row.Name); ParameterAttributes expectedFlags; switch (name) { case "m": case "o": expectedFlags = 0; break; case "a": case "b": case "c": expectedFlags = ParameterAttributes.In; break; case "d": case "e": case "f": case "n": expectedFlags = ParameterAttributes.Out; break; case "g": case "h": case "i": expectedFlags = ParameterAttributes.In | ParameterAttributes.Out; break; case "j": expectedFlags = ParameterAttributes.In | ParameterAttributes.HasDefault | ParameterAttributes.Optional; break; case "k": expectedFlags = ParameterAttributes.Out | ParameterAttributes.HasDefault | ParameterAttributes.Optional; break; case "l": expectedFlags = ParameterAttributes.In | ParameterAttributes.Out | ParameterAttributes.HasDefault | ParameterAttributes.Optional; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } Assert.Equal(expectedFlags, row.Attributes); } }); } [Fact] public void InAttribute_RefParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In]ref int p) { } }").VerifyDiagnostics(); } [Fact] public void OutAttribute_RefParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([Out]ref int p) { } }").VerifyDiagnostics( // (5,39): error CS0662: Cannot specify the Out attribute on a ref parameter without also specifying the In attribute. // public static void M([Out]ref int p) { } Diagnostic(ErrorCode.ERR_OutAttrOnRefParam, "p").WithLocation(5, 39)); } [Fact] public void InAndOutAttributes_RefParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In, Out]ref int p) { } }").VerifyDiagnostics(); } [Fact] public void InAttribute_OutParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In]out int p) { p = 0; } }").VerifyDiagnostics( // (5,38): error CS0036: An out parameter cannot have the In attribute // public static void M([In]out int p) { p = 0; } Diagnostic(ErrorCode.ERR_InAttrOnOutParam, "p").WithLocation(5, 38)); } [Fact] public void OutAttribute_OutParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([Out]out int p) { p = 0; } }").VerifyDiagnostics(); } [Fact] public void InAndOutAttributes_OutParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In, Out]out int p) { p = 0; } }").VerifyDiagnostics( // (5,43): error CS0036: An out parameter cannot have the In attribute // public static void M([In, Out]out int p) { p = 0; } Diagnostic(ErrorCode.ERR_InAttrOnOutParam, "p").WithLocation(5, 43)); } [Fact] public void InAttribute_InParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In]in int p) { } }").VerifyDiagnostics(); } [Fact] public void OutAttribute_InParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([Out]in int p) { } }").VerifyDiagnostics( // (5,38): error CS8355: An in parameter cannot have the Out attribute. // public static void M([Out]in int p) { } Diagnostic(ErrorCode.ERR_OutAttrOnInParam, "p").WithLocation(5, 38)); } [Fact] public void OutAndInAttributes_InParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([Out, In]in int p) { } }").VerifyDiagnostics( // (5,42): error CS8355: An in parameter cannot have the Out attribute. // public static void M([Out, In]in int p) { } Diagnostic(ErrorCode.ERR_OutAttrOnInParam, "p").WithLocation(5, 42)); } [Fact] public void InOutAttributes_Delegates() { var source = @" using System.Runtime.InteropServices; public delegate int F([Out]int a, [In]int b, [In, Out]ref int c, [In]ref int d, ref int e, [Out]out int f, out int g); "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var paramDef in metadataReader.GetParameters()) { var row = metadataReader.GetParameter(paramDef); string name = metadataReader.GetString(row.Name); ParameterAttributes expectedFlags; switch (name) { case "e": case "callback": case "object": case "method": case "result": expectedFlags = 0; break; case "b": case "d": expectedFlags = ParameterAttributes.In; break; case "a": case "g": case "f": expectedFlags = ParameterAttributes.Out; break; case "c": expectedFlags = ParameterAttributes.In | ParameterAttributes.Out; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } Assert.Equal(expectedFlags, row.Attributes); } }); } [Fact] public void InOutAttributes_Indexers() { var source = @" using System.Runtime.InteropServices; public class C { public int this[[Out]int a, [In]int b, [In, Out]int c, int d] { get { return 0; } set { } } } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var paramDef in metadataReader.GetParameters()) { var row = metadataReader.GetParameter(paramDef); string name = metadataReader.GetString(row.Name); ParameterAttributes expectedFlags; switch (name) { case "d": case "value": expectedFlags = 0; break; case "b": expectedFlags = ParameterAttributes.In; break; case "a": expectedFlags = ParameterAttributes.Out; break; case "c": expectedFlags = ParameterAttributes.In | ParameterAttributes.Out; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } Assert.Equal(expectedFlags, row.Attributes); } }); } [Fact] public void InOutAttributes_Accessors() { var source = @" using System; using System.Runtime.InteropServices; class C { event Action E { [param: In, Out] add { } [param: In, Out] remove { } } } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); ParameterHandle[] ps = metadataReader.GetParameters().ToArray(); Assert.Equal(2, ps.Length); Assert.Equal(ParameterAttributes.In | ParameterAttributes.Out, metadataReader.GetParameter(ps[0]).Attributes); Assert.Equal(ParameterAttributes.In | ParameterAttributes.Out, metadataReader.GetParameter(ps[1]).Attributes); }); } #endregion #region DllImportAttribute, MethodImplAttribute, DefaultCharSetAttribute [Fact] public void TestPseudoDllImport() { var source = CreateCompilation(@" using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; /// PreserveSigAttribute: automatically insert by compiler public class DllImportTest { //Metadata - .method public static pinvokeimpl(""unmanaged.dll"" lasterr fastcall) // void DllImportSub() cil managed preservesig [DllImport(""unmanaged.dll"", CallingConvention = CallingConvention.FastCall, SetLastError = true)] public static extern void DllImportSub(); // Metadata .method public static pinvokeimpl(""user32.dll"" unicode winapi) // int32 MessageBox(native int hwnd, string t, string caption, uint32 t2) cil managed preservesig // // MSDN has table for 'default' ExactSpelling value // C#|C++: always 'false' // VB: true if CharSet is ANSI|UniCode; otherwise false [DllImportAttribute(""user32.dll"", CharSet = CharSet.Unicode, ExactSpelling = false, EntryPoint = ""MessageBox"")] public static extern int MessageBox(IntPtr hwnd, string t, string caption, UInt32 t2); } class C { public static void Main() {} } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { // get expected attr symbol var type1 = m.GlobalNamespace.GetTypeMember("DllImportTest"); MethodSymbol method = null; method = type1.GetMember<MethodSymbol>("DllImportSub"); var attrSym = method.GetAttributes().First(); Assert.Equal("DllImportAttribute", attrSym.AttributeClass.Name); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "unmanaged.dll"); attrSym.VerifyNamedArgumentValue(0, "CallingConvention", TypedConstantKind.Enum, (int)CallingConvention.FastCall); attrSym.VerifyNamedArgumentValue(1, "SetLastError", TypedConstantKind.Primitive, true); method = (MethodSymbol)type1.GetMembers("MessageBox").First(); attrSym = method.GetAttributes().First(); Assert.Equal("DllImportAttribute", attrSym.AttributeClass.Name); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "user32.dll"); attrSym.VerifyNamedArgumentValue(0, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); attrSym.VerifyNamedArgumentValue(1, "ExactSpelling", TypedConstantKind.Primitive, false); attrSym.VerifyNamedArgumentValue(2, "EntryPoint", TypedConstantKind.Primitive, "MessageBox"); }; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator); } [Fact] [WorkItem(544180, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544180"), WorkItem(545030, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545030")] public void DllImport_AttributeRedefinition() { var source = @" namespace System.Runtime.InteropServices { [DllImport] public class DllImportAttribute { } } "; // NOTE (tomat) // Dev10 reports: // warning CS1685: The predefined type 'System.Runtime.InteropServices.DllImportAttribute' is defined in multiple assemblies in the global alias; // using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll' // error CS0616: 'System.Runtime.InteropServices.DllImportAttribute' is not an attribute class // // DllImportAttribute is defined both in source and PE. // Both Dev10 and Roslyn correctly bind to the source symbol. // Dev10 generates incorrect warning CS1685. // CONSIDER: We may want to generate warning CS0436 in Roslyn: // (4,6): warning CS0436: The type 'DllImport' in '' conflicts with the imported type 'System.Runtime.InteropServices.DllImportAttribute' in // 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in ''. CreateCompilation(source).VerifyDiagnostics( // (4,6): error CS0616: 'System.Runtime.InteropServices.DllImportAttribute' is not an attribute class // [DllImport] Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "DllImport").WithArguments("System.Runtime.InteropServices.DllImportAttribute")); } [Fact] public void DllImport_InvalidArgs1() { var source = @" using System.Runtime.InteropServices; class C { [DllImport(null)] public extern static void F1(); [DllImport("""")] public extern static void F2(); [DllImport(""goo"", EntryPoint = null)] public extern static void F3(); [DllImport(""goo"", EntryPoint = """")] public extern static void F4(); [DllImport(null, EntryPoint = null)] public extern static void F5(); [DllImport(""\0"")] static extern void Empty1(); [DllImport(""\0b"")] static extern void Empty2(); [DllImport(""b\0"")] static extern void Empty3(); [DllImport(""x\0y"")] static extern void Empty4(); [DllImport(""x"", EntryPoint = ""x\0y"")] static extern void Empty5(); [DllImport(""\uD800"")] static extern void LeadingSurrogate(); [DllImport(""\uDC00"")] static extern void TrailingSurrogate(); [DllImport(""\uDC00\uD800"")] static extern void ReversedSurrogates1(); [DllImport(""x"", EntryPoint = ""\uDC00\uD800"")] static extern void ReversedSurrogates2(); } "; // Dev10 fails in Emit or emits invalid metadata CreateCompilation(source).VerifyDiagnostics( // (6,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "null").WithArguments("DllImport"), // (9,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""""").WithArguments("DllImport"), // (12,23): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "EntryPoint = null").WithArguments("EntryPoint"), // (15,23): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, @"EntryPoint = """"").WithArguments("EntryPoint"), // (18,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "null").WithArguments("DllImport"), // (18,22): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "EntryPoint = null").WithArguments("EntryPoint"), // (21,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\0""").WithArguments("DllImport"), // (24,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\0b""").WithArguments("DllImport"), // (27,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""b\0""").WithArguments("DllImport"), // (30,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""x\0y""").WithArguments("DllImport"), // (33,21): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, @"EntryPoint = ""x\0y""").WithArguments("EntryPoint"), // (36,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\uD800""").WithArguments("DllImport"), // (39,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\uDC00""").WithArguments("DllImport"), // (42,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\uDC00\uD800""").WithArguments("DllImport"), // (45,21): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, @"EntryPoint = ""\uDC00\uD800""").WithArguments("EntryPoint")); } [Fact] public void DllImport_SpecialCharactersInName() { var source = @" using System; using System.Runtime.InteropServices; class Program { [DllImport(""\uFFFF"")] static extern void InvalidCharacter(); [DllImport(""\uD800\uDC00"")] static extern void SurrogatePairMin(); [DllImport(""\uDBFF\uDFFF"")] static extern void SurrogatePairMax(); } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(3, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); Assert.Equal(3, metadataReader.GetTableRowCount(TableIndex.ImplMap)); foreach (var method in metadataReader.GetImportedMethods()) { var import = method.GetImport(); string moduleName = metadataReader.GetString(metadataReader.GetModuleReference(import.Module).Name); string methodName = metadataReader.GetString(method.Name); switch (methodName) { case "InvalidCharacter": Assert.Equal("\uFFFF", moduleName); break; case "SurrogatePairMin": Assert.Equal("\uD800\uDC00", moduleName); break; case "SurrogatePairMax": Assert.Equal("\uDBFF\uDFFF", moduleName); break; default: throw TestExceptionUtilities.UnexpectedValue(methodName); } } }); } [Fact] [WorkItem(544176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544176")] public void TestPseudoAttributes_DllImport_AllTrue() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { [DllImport(""mscorlib"", EntryPoint = ""bar"", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode, ExactSpelling = true, PreserveSig = true, SetLastError = true, BestFitMapping = true, ThrowOnUnmappableChar = true)] public static extern void M(); } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); // ModuleRef: var moduleRefName = metadataReader.GetModuleReference(metadataReader.GetModuleReferences().Single()).Name; Assert.Equal("mscorlib", metadataReader.GetString(moduleRefName)); // FileRef: // Although the Metadata spec says there should be a File entry for each ModuleRef entry // Dev10 compiler doesn't add it and peverify doesn't complain. Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.File)); // ImplMap: Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap)); var import = metadataReader.GetImportedMethods().Single().GetImport(); Assert.Equal("bar", metadataReader.GetString(import.Name)); Assert.Equal(1, metadataReader.GetRowNumber(import.Module)); Assert.Equal( MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode | MethodImportAttributes.SetLastError | MethodImportAttributes.CallingConventionCDecl | MethodImportAttributes.BestFitMappingEnable | MethodImportAttributes.ThrowOnUnmappableCharEnable, import.Attributes); // MethodDef: MethodDefinitionHandle[] methodDefs = metadataReader.MethodDefinitions.AsEnumerable().ToArray(); Assert.Equal(2, methodDefs.Length); // M, ctor Assert.Equal(MethodImplAttributes.PreserveSig, metadataReader.GetMethodDefinition(methodDefs[0]).ImplAttributes); }, symbolValidator: module => { var c = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); var m = c.GetMember<MethodSymbol>("M"); var info = m.GetDllImportData(); Assert.Equal("mscorlib", info.ModuleName); Assert.Equal("bar", info.EntryPointName); Assert.Equal(CharSet.Unicode, info.CharacterSet); Assert.True(info.ExactSpelling); Assert.True(info.SetLastError); Assert.True(info.BestFitMapping); Assert.True(info.ThrowOnUnmappableCharacter); Assert.Equal( MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode | MethodImportAttributes.SetLastError | MethodImportAttributes.CallingConventionCDecl | MethodImportAttributes.BestFitMappingEnable | MethodImportAttributes.ThrowOnUnmappableCharEnable, ((Cci.IPlatformInvokeInformation)info).Flags); }); } [Fact] [WorkItem(544601, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544601")] public void GetDllImportData_UnspecifiedProperties() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { [DllImport(""mscorlib"")] public static extern void M(); public static void N() { } } "; Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => { var c = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); var m = c.GetMember<MethodSymbol>("M"); var info = m.GetDllImportData(); Assert.Equal("mscorlib", info.ModuleName); Assert.Equal("M", info.EntryPointName); Assert.Equal(CharSet.None, info.CharacterSet); Assert.Equal(CallingConvention.Winapi, info.CallingConvention); Assert.False(info.ExactSpelling); Assert.False(info.SetLastError); Assert.Null(info.BestFitMapping); Assert.Null(info.ThrowOnUnmappableCharacter); var n = c.GetMember<MethodSymbol>("N"); Assert.Null(n.GetDllImportData()); }; CompileAndVerify(source, sourceSymbolValidator: validator(true), symbolValidator: validator(false)); } [Fact] public void TestPseudoAttributes_DllImport_OperatorsAndAccessors() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { [DllImport(""goo"")] public static extern int operator +(C a, C b); public extern static int F { [DllImport(""a"")]get; [DllImport(""b"")]set; } [method: DllImport(""c"")] public extern static event System.Action G; } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); // no backing fields should be generated -- all members are "extern" members: Assert.Equal(0, metadataReader.FieldDefinitions.AsEnumerable().Count()); Assert.Equal(4, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); Assert.Equal(5, metadataReader.GetTableRowCount(TableIndex.ImplMap)); var visitedEntryPoints = new Dictionary<string, bool>(); foreach (var method in metadataReader.GetImportedMethods()) { string moduleName = metadataReader.GetString(metadataReader.GetModuleReference(method.GetImport().Module).Name); string entryPointName = metadataReader.GetString(method.Name); switch (entryPointName) { case "op_Addition": Assert.Equal("goo", moduleName); break; case "get_F": Assert.Equal("a", moduleName); break; case "set_F": Assert.Equal("b", moduleName); break; case "add_G": case "remove_G": Assert.Equal("c", moduleName); break; default: throw TestExceptionUtilities.UnexpectedValue(entryPointName); } // This throws if we visit one entry point name twice. // We used to incorrectly share entry point name among event accessors. visitedEntryPoints.Add(entryPointName, true); } Assert.Equal(5, visitedEntryPoints.Count); }); } [Fact] public void TestPseudoAttributes_DllImport_Flags() { var cases = new[] { // calling convention: new { attr = MakeDllImport(), expected = MethodImportAttributes.CallingConventionWinApi}, // M0 new { attr = MakeDllImport(cc: CallingConvention.Cdecl), expected = MethodImportAttributes.CallingConventionCDecl }, // M1 new { attr = MakeDllImport(cc: CallingConvention.FastCall), expected = MethodImportAttributes.CallingConventionFastCall }, // M2 new { attr = MakeDllImport(cc: CallingConvention.StdCall), expected = MethodImportAttributes.CallingConventionStdCall }, // M3 new { attr = MakeDllImport(cc: CallingConvention.ThisCall), expected = MethodImportAttributes.CallingConventionThisCall }, // M4 new { attr = MakeDllImport(cc: CallingConvention.Winapi), expected = MethodImportAttributes.CallingConventionWinApi }, // M5 // charset & exact spelling: new { attr = MakeDllImport(), expected = MethodImportAttributes.CallingConventionWinApi }, // M6 new { attr = MakeDllImport(charSet: CharSet.None), expected = MethodImportAttributes.CallingConventionWinApi }, // M7 new { attr = MakeDllImport(charSet: CharSet.Ansi), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAnsi }, // M8 new { attr = MakeDllImport(charSet: CharSet.Unicode), expected =MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetUnicode }, // M9 new { attr = MakeDllImport(charSet: CharSet.Auto), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAuto }, // M10 new { attr = MakeDllImport(exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling }, // M11 new { attr = MakeDllImport(exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi }, // M12 new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAnsi }, // M13 new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAnsi }, // M14 new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode },// M15 new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetUnicode }, // M16 new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAuto }, // M17 new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAuto }, // M18 // preservesig: new { attr = MakeDllImport(preserveSig: true), expected = MethodImportAttributes.CallingConventionWinApi}, // M19 new { attr = MakeDllImport(preserveSig: false), expected = MethodImportAttributes.CallingConventionWinApi}, // M20 // setLastError: new { attr = MakeDllImport(setLastError: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError}, // M21 new { attr = MakeDllImport(setLastError: false), expected = MethodImportAttributes.CallingConventionWinApi}, // M22 // bestFitMapping: new { attr = MakeDllImport(bestFitMapping: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.BestFitMappingEnable}, // M23 new { attr = MakeDllImport(bestFitMapping: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.BestFitMappingDisable}, // M24 // throwOnUnmappableChar: new { attr = MakeDllImport(throwOnUnmappableChar: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ThrowOnUnmappableCharEnable}, // M23 new { attr = MakeDllImport(throwOnUnmappableChar: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ThrowOnUnmappableCharDisable}, // M24 // invalid enum values (ignored) new { attr = "[DllImport(\"bar\", CharSet = (CharSet)15, SetLastError = true)]", expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError }, // M25 // invalid enum values (ignored) new { attr = "[DllImport(\"bar\", CallingConvention = (CallingConvention)15, SetLastError = true)]", expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError }, // M26 }; StringBuilder sb = new StringBuilder(@" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { "); int i = 0; foreach (var testCase in cases) { sb.Append(testCase.attr); sb.AppendLine(); sb.Append("static extern void M" + (i++) + "();"); sb.AppendLine(); } sb.AppendLine("}"); var code = sb.ToString(); CompileAndVerify(code, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(cases.Length, metadataReader.GetTableRowCount(TableIndex.ImplMap)); int j = 0; foreach (var method in metadataReader.GetImportedMethods()) { Assert.Equal(cases[j].expected, method.GetImport().Attributes); j++; } }); } private string MakeDllImport( CallingConvention? cc = null, CharSet? charSet = null, bool? exactSpelling = null, bool? preserveSig = null, bool? setLastError = null, bool? bestFitMapping = null, bool? throwOnUnmappableChar = null) { StringBuilder sb = new StringBuilder("[DllImport(\"bar\""); if (cc != null) { sb.Append(", CallingConvention = CallingConvention."); sb.Append(cc.Value); } if (charSet != null) { sb.Append(", CharSet = CharSet."); sb.Append(charSet.Value); } if (exactSpelling != null) { sb.Append(", ExactSpelling = "); sb.Append(exactSpelling.Value ? "true" : "false"); } if (preserveSig != null) { sb.Append(", PreserveSig = "); sb.Append(preserveSig.Value ? "true" : "false"); } if (setLastError != null) { sb.Append(", SetLastError = "); sb.Append(setLastError.Value ? "true" : "false"); } if (bestFitMapping != null) { sb.Append(", BestFitMapping = "); sb.Append(bestFitMapping.Value ? "true" : "false"); } if (throwOnUnmappableChar != null) { sb.Append(", ThrowOnUnmappableChar = "); sb.Append(throwOnUnmappableChar.Value ? "true" : "false"); } sb.Append(")]"); return sb.ToString(); } [WorkItem(544238, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544238")] [WorkItem(544163, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544163")] [Fact] public void DllImport_InvalidCharsetValue_Null() { var source = @" using System.Runtime.InteropServices; class M { [DllImport(""1"", CharSet = null)] static extern int F1(); [DllImport(""2"", CharSet = CharSet)] static extern int F2(); [DllImport(""3"", CharSet = ""str"")] static extern int F3(); [DllImport(true)] static extern int F4(); [DllImport(CharSet)] static extern int F5(); [DllImport(1)] static extern int F6(); } "; CreateCompilation(source).VerifyDiagnostics( // (6,31): error CS0037: Cannot convert null to 'System.Runtime.InteropServices.CharSet' because it is a non-nullable value type Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("System.Runtime.InteropServices.CharSet"), // (9,31): error CS0119: 'System.Runtime.InteropServices.CharSet' is a type, which is not valid in the given context Diagnostic(ErrorCode.ERR_BadSKunknown, "CharSet").WithArguments("System.Runtime.InteropServices.CharSet", "type"), // (12,31): error CS0029: Cannot implicitly convert type 'string' to 'System.Runtime.InteropServices.CharSet' Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""str""").WithArguments("string", "System.Runtime.InteropServices.CharSet"), // (15,16): error CS1503: Argument 1: cannot convert from 'bool' to 'string' Diagnostic(ErrorCode.ERR_BadArgType, "true").WithArguments("1", "bool", "string"), // (18,16): error CS0119: 'System.Runtime.InteropServices.CharSet' is a type, which is not valid in the given context Diagnostic(ErrorCode.ERR_BadSKunknown, "CharSet").WithArguments("System.Runtime.InteropServices.CharSet", "type"), // (21,16): error CS1503: Argument 1: cannot convert from 'int' to 'string' Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string")); } [Fact] public void TestMethodImplAttribute_VerifiableMD() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; abstract class C { [MethodImpl(MethodImplOptions.ForwardRef)] public static void ForwardRef() { System.Console.WriteLine(0); } [MethodImpl(MethodImplOptions.NoInlining)] public static void NoInlining() { System.Console.WriteLine(1); } [MethodImpl(MethodImplOptions.NoOptimization)] public static void NoOptimization() { System.Console.WriteLine(2); } [MethodImpl(MethodImplOptions.Synchronized)] public static void Synchronized() { System.Console.WriteLine(3); } [MethodImpl(MethodImplOptions.InternalCall)] public extern static void InternalCallStatic(); [MethodImpl(MethodImplOptions.InternalCall)] public extern void InternalCallInstance(); [MethodImpl(MethodImplOptions.InternalCall)] public abstract void InternalCallAbstract(); } "; Action<PEAssembly> validator = (assembly) => { var peReader = assembly.GetMetadataReader(); foreach (var methodHandle in peReader.MethodDefinitions) { var methodDef = peReader.GetMethodDefinition(methodHandle); var actualFlags = methodDef.ImplAttributes; MethodImplAttributes expectedFlags; string methodName = peReader.GetString(methodDef.Name); switch (methodName) { case "NoInlining": expectedFlags = MethodImplAttributes.NoInlining; break; case "NoOptimization": expectedFlags = MethodImplAttributes.NoOptimization; break; case "Synchronized": expectedFlags = MethodImplAttributes.Synchronized; break; case "InternalCallStatic": case "InternalCallInstance": case "InternalCallAbstract": expectedFlags = MethodImplAttributes.InternalCall; break; case "ForwardRef": expectedFlags = MethodImplAttributes.ForwardRef; break; case ".ctor": expectedFlags = MethodImplAttributes.IL; break; default: throw TestExceptionUtilities.UnexpectedValue(methodName); } Assert.Equal(expectedFlags, actualFlags); } }; CompileAndVerify(source, assemblyValidator: validator); } [Fact] public void TestMethodImplAttribute_UnverifiableMD() { var compilation = CreateCompilation(@" using System.Runtime.CompilerServices; class C { [MethodImpl(MethodImplOptions.Unmanaged)] public static void Unmanaged() { System.Console.WriteLine(1); } // peverify: type load failed [MethodImpl(MethodCodeType = MethodCodeType.Native)] public static void Native() { System.Console.WriteLine(2); } // peverify: type load failed [MethodImpl(MethodCodeType = MethodCodeType.OPTIL)] public static void OPTIL() { System.Console.WriteLine(3); } // peverify: type load failed [MethodImpl(MethodCodeType = MethodCodeType.Runtime)] public static void Runtime() { System.Console.WriteLine(4); } // peverify: Runtime method shouldn't have a body [MethodImpl(MethodImplOptions.InternalCall)] public static void InternalCallStatic() { System.Console.WriteLine(5); } // peverify: InternalCall method shouldn't have a body [MethodImpl(MethodImplOptions.InternalCall)] public extern static void InternalCallGeneric1<T>(); // peverify: type load failed (InternalCall method can't be generic) } class C<T> { [MethodImpl(MethodImplOptions.InternalCall)] public extern static void InternalCallGeneric2(); // peverify: type load failed (InternalCall method can't be in a generic type) } "); compilation.VerifyDiagnostics(); var image = compilation.EmitToStream(); using (var metadata = ModuleMetadata.CreateFromStream(image)) { var metadataReader = metadata.MetadataReader; foreach (var methodHandle in metadataReader.MethodDefinitions) { var methodDef = metadataReader.GetMethodDefinition(methodHandle); var actualFlags = methodDef.ImplAttributes; MethodImplAttributes expectedFlags; string methodName = metadataReader.GetString(methodDef.Name); switch (methodName) { case "Unmanaged": expectedFlags = MethodImplAttributes.Unmanaged; break; case "Native": expectedFlags = MethodImplAttributes.Native; break; case "Runtime": expectedFlags = MethodImplAttributes.Runtime; break; case "OPTIL": expectedFlags = MethodImplAttributes.OPTIL; break; case ".ctor": expectedFlags = MethodImplAttributes.IL; break; case "InternalCallStatic": case "InternalCallGeneric1": case "InternalCallGeneric2": expectedFlags = MethodImplAttributes.InternalCall; break; default: throw TestExceptionUtilities.UnexpectedValue(methodName); } Assert.Equal(expectedFlags, actualFlags); } } } [Fact] public void TestMethodImplAttribute_PreserveSig() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; abstract class C { C() {} [PreserveSig] abstract public void f0(); [MethodImpl(MethodImplOptions.PreserveSig)] abstract public void f1(); [DllImport(""goo"")] public extern static void f2(); [DllImport(""goo"", PreserveSig=true)] public extern static void f3(); // false [DllImport(""goo"", PreserveSig=false)] public extern static void f4(); [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=true)] public extern static void f5(); // false [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=false)] public extern static void f6(); [MethodImpl(MethodImplOptions.PreserveSig)] [PreserveSig] abstract public void f7(); [DllImport(""goo"")] [PreserveSig] public extern static void f8(); [PreserveSig] [DllImport(""goo"", PreserveSig=true)] public extern static void f9(); [DllImport(""goo"", PreserveSig=false)] [PreserveSig] public extern static void f10(); [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=true)] [PreserveSig] public extern static void f11(); [DllImport(""goo"", PreserveSig=false)] [PreserveSig] [MethodImpl(MethodImplOptions.PreserveSig)] public extern static void f12(); [DllImport(""goo"", PreserveSig=false)] [MethodImpl(MethodImplOptions.PreserveSig)] [PreserveSig] public extern static void f13(); [PreserveSig] [DllImport(""goo"", PreserveSig=false)] [MethodImpl(MethodImplOptions.PreserveSig)] public extern static void f14(); // false [PreserveSig] [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=false)] public extern static void f15(); // false [MethodImpl(MethodImplOptions.PreserveSig)] [PreserveSig] [DllImport(""goo"", PreserveSig=false)] public extern static void f16(); [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=false)] [PreserveSig] public extern static void f17(); public static void f18() {} [MethodImpl(MethodImplOptions.Synchronized)] [DllImport(""goo"", PreserveSig=false)] [PreserveSig] public extern static void f19(); [PreserveSig] [DllImport(""goo"")] [MethodImpl(MethodImplOptions.Synchronized)] public extern static void f20(); [PreserveSig] [DllImport(""goo"", PreserveSig=false)] [MethodImpl(MethodImplOptions.Synchronized)] public extern static void f21(); } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var peReader = assembly.GetMetadataReader(); foreach (var methodHandle in peReader.MethodDefinitions) { var row = peReader.GetMethodDefinition(methodHandle); var actualFlags = row.ImplAttributes; MethodImplAttributes expectedFlags; var name = peReader.GetString(row.Name); switch (name) { case ".ctor": case "f4": case "f6": case "f15": case "f16": case "f18": expectedFlags = 0; break; case "f0": case "f1": case "f2": case "f3": case "f5": case "f7": case "f8": case "f9": case "f10": case "f11": case "f12": case "f13": case "f14": case "f17": expectedFlags = MethodImplAttributes.PreserveSig; break; case "f19": case "f20": expectedFlags = MethodImplAttributes.PreserveSig | MethodImplAttributes.Synchronized; break; case "f21": expectedFlags = MethodImplAttributes.Synchronized; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } Assert.Equal(expectedFlags, actualFlags); } // no custom attributes applied on methods: foreach (var ca in peReader.CustomAttributes) { var ctor = peReader.GetCustomAttribute(ca).Constructor; Assert.NotEqual(HandleKind.MethodDefinition, ctor.Kind); } }); } [Fact] public void TestMethodImplAttribute_PreserveSig_Invalid() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; class C { [MethodImpl(MethodImplOptions.PreserveSig)] public static void f1() { } }"; CompileAndVerify(source); } [Fact] public void MethodImplAttribute_Errors() { string source = @" using System.Runtime.CompilerServices; class Program1 { [MethodImpl((short)0)] // ok void f0() { } [MethodImpl(1)] // error void f1() { } [MethodImpl(2)] // error void f2() { } [MethodImpl(3)] // error void f3() { } [MethodImpl(4)] // ok void f4() { } [MethodImpl(5)] // error void f5() { } [MethodImpl((MethodImplOptions)2)] // error void f6() { } [MethodImpl(4, MethodCodeType = (MethodCodeType)8, MethodCodeType = (MethodCodeType)9)] // errors void f7() { } } "; CreateCompilation(source).VerifyDiagnostics( // (9,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "1").WithArguments("MethodImpl"), // (12,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "2").WithArguments("MethodImpl"), // (15,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "3").WithArguments("MethodImpl"), // (21,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "5").WithArguments("MethodImpl"), // (27,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(MethodImplOptions)2").WithArguments("MethodImpl"), // (27,56): error CS0643: 'MethodCodeType' duplicate named attribute argument Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, "MethodCodeType = (MethodCodeType)9").WithArguments("MethodCodeType"), // (27,20): error CS0599: Invalid value for named attribute argument 'MethodCodeType' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "MethodCodeType = (MethodCodeType)8").WithArguments("MethodCodeType"), // (27,56): error CS0599: Invalid value for named attribute argument 'MethodCodeType' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "MethodCodeType = (MethodCodeType)9").WithArguments("MethodCodeType")); } [Fact, WorkItem(544518, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544518")] public void DllImport_DefaultCharSet1() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Ansi)] abstract class C { [DllImport(""goo"")] static extern void f1(); } "; // Ref.Emit doesn't implement custom attributes yet CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap)); // the attribute is emitted: Assert.False(MetadataValidation.FindCustomAttribute(metadataReader, "DefaultCharSetAttribute").IsNil); var import = metadataReader.GetImportedMethods().Single().GetImport(); Assert.Equal(MethodImportAttributes.CharSetAnsi, import.Attributes & MethodImportAttributes.CharSetMask); }); } [Fact] public void DllImport_DefaultCharSet2() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.None)] [StructLayout(LayoutKind.Explicit)] abstract class C { [DllImport(""goo"")] static extern void f1(); } "; // Ref.Emit doesn't implement custom attributes yet CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap)); // the attribute is emitted: Assert.False(MetadataValidation.FindCustomAttribute(metadataReader, "DefaultCharSetAttribute").IsNil); var import = metadataReader.GetImportedMethods().Single().GetImport(); Assert.Equal(MethodImportAttributes.None, import.Attributes & MethodImportAttributes.CharSetMask); foreach (var typeHandle in metadataReader.TypeDefinitions) { var def = metadataReader.GetTypeDefinition(typeHandle); var name = metadataReader.GetString(def.Name); switch (name) { case "C": Assert.Equal(TypeAttributes.ExplicitLayout | TypeAttributes.Abstract | TypeAttributes.BeforeFieldInit, def.Attributes); break; case "<Module>": break; default: throw TestExceptionUtilities.UnexpectedValue(name); } } }); } [Fact] public void DllImport_DefaultCharSet_Errors() { var source = @" using System.Runtime.InteropServices; [module: DefaultCharSet((CharSet)int.MaxValue)] "; // Ref.Emit doesn't implement custom attributes yet CreateCompilation(source).VerifyDiagnostics( // (4,25): error CS0591: Invalid value for argument to 'DefaultCharSet' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(CharSet)int.MaxValue").WithArguments("DefaultCharSet")); } [Fact] public void DefaultCharSet_Types() { var source = @" using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; [module:DefaultCharSet(CharSet.Unicode)] class C { class D { int[] arr = new[] { 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0}; void goo() { int a = 1; int b = 2; var q = new { f = 1, g = 2 }; var z = new Action(() => Console.WriteLine(a + arr[b])); } IEnumerable<int> En() { yield return 1; yield return 2; } } } [SpecialName] public class Special { } [StructLayout(LayoutKind.Sequential, Pack=4, Size=10)] public struct SeqLayout { } struct S { } enum E { } interface I { } delegate void D(); "; // Ref.Emit doesn't implement custom attributes yet CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var typeHandle in metadataReader.TypeDefinitions) { var row = metadataReader.GetTypeDefinition(typeHandle); var name = metadataReader.GetString(row.Name); var actual = row.Attributes & TypeAttributes.StringFormatMask; if (name == "<Module>" || name.StartsWith("__StaticArrayInitTypeSize=", StringComparison.Ordinal) || name.StartsWith("<PrivateImplementationDetails>", StringComparison.Ordinal)) { Assert.Equal(TypeAttributes.AnsiClass, actual); } else { Assert.Equal(TypeAttributes.UnicodeClass, actual); } } }); } [Fact] public void DllImport_InvalidTargets() { var source = @" using System.Runtime.InteropServices; class C { [DllImport(""D.DLL"")] void F1() { } [DllImport(""D.DLL"")] enum E1 { a, b, c, d }; [DllImport(""D.DLL"")] int F2(int bufSize, string buf); [DllImport(""D.DLL"")] public static int i =2; [DllImport(""d.dll"")] int F3 { get {return 0;}} [DllImport(""D.DLL""), DllImport(""GDI.DLL"")] static extern int F4(int bufSize, string buf); void F5() { [DllImport(""d.dll"")] int loc = i; } } [DllImport(""dd.dllL"")] public class C1 { } [DllImport(""dd.dll"")] public class C2 { } "; // Dev10 fails in Emit or emits invalid metadata CreateCompilation(source).VerifyDiagnostics( // (13,9): error CS0501: 'C.F2(int, string)' must declare a body because it is not marked abstract, extern, or partial // int F2(int bufSize, string buf); Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "F2").WithArguments("C.F2(int, string)").WithLocation(13, 9), // (6,6): error CS0601: The DllImport attribute must be specified on a method marked 'static' and 'extern' // [DllImport("D.DLL")] Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").WithLocation(6, 6), // (9,6): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("D.DLL")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(9, 6), // (12,6): error CS0601: The DllImport attribute must be specified on a method marked 'static' and 'extern' // [DllImport("D.DLL")] Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").WithLocation(12, 6), // (15,6): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("D.DLL")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(15, 6), // (18,6): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("d.dll")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(18, 6), // (21,26): error CS0579: Duplicate 'DllImport' attribute // [DllImport("D.DLL"), DllImport("GDI.DLL")] Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DllImport").WithArguments("DllImport").WithLocation(21, 26), // (26,8): error CS7014: Attributes are not valid in this context. // [DllImport("d.dll")] Diagnostic(ErrorCode.ERR_AttributesNotAllowed, @"[DllImport(""d.dll"")]").WithLocation(26, 8), // (31,2): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("dd.dllL")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(31, 2), // (34,2): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("dd.dll")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(34, 2)); } #endregion #region ComImportAttribute, CoClassAttribute [Fact] public void TestComImportAttribute() { string source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] class A { public static extern void Goo(); } public class MainClass { public static int Main () { A.Goo(); return 0; } }"; Action<ModuleSymbol> sourceValidator = (ModuleSymbol m) => { MethodImplAttributes expectedMethodImplAttributes = MethodImplAttributes.Managed | MethodImplAttributes.Runtime | MethodImplAttributes.InternalCall; var typeA = m.GlobalNamespace.GetTypeMember("A"); Assert.True(typeA.IsComImport); Assert.Equal(2, typeA.GetAttributes().Length); var ctorA = typeA.InstanceConstructors.First(); Assert.Equal(expectedMethodImplAttributes, ctorA.ImplementationAttributes); Assert.True(((Cci.IMethodDefinition)ctorA.GetCciAdapter()).IsExternal); var methodGoo = (Cci.IMethodDefinition)typeA.GetMember("Goo").GetCciAdapter(); Assert.True(methodGoo.IsExternal); }; Action<ModuleSymbol> metadataValidator = (ModuleSymbol m) => { var typeA = m.GlobalNamespace.GetTypeMember("A"); Assert.True(typeA.IsComImport); Assert.Equal(1, typeA.GetAttributes().Length); var ctorA = typeA.InstanceConstructors.First(); Assert.False(ctorA.IsExtern); var methodGoo = (MethodSymbol)typeA.GetMember("Goo"); Assert.False(methodGoo.IsExtern); }; // the resulting code does not need to verify // This is consistent with Dev10 behavior CompileAndVerify(source, options: TestOptions.ReleaseDll, verify: Verification.Fails, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator); } [Fact, WorkItem(544507, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544507")] public void TestCoClassAttribute_NewOnInterface_FromSource() { string source = @" using System; using System.Runtime.InteropServices; class WorksheetClass : IWorksheet { int i; public WorksheetClass() { this.i = 0; } public WorksheetClass(int i) { this.i = i; } public int M1() { return i; } } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] interface IWorksheet { int M1(); } public class MainClass { public static int Main () { var a = new IWorksheet(); Console.WriteLine(a.M1()); IWorksheet b = new IWorksheet(1); Console.WriteLine(b.M1()); var c = (WorksheetClass)new IWorksheet(); Console.WriteLine(c.M1()); return 0; } }"; Func<bool, Action<ModuleSymbol>> attributeValidator = isFromSource => (ModuleSymbol m) => { NamespaceSymbol interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(m); var guidType = interopNS.GetTypeMember("GuidAttribute"); var comImportType = interopNS.GetTypeMember("ComImportAttribute"); var coClassType = interopNS.GetTypeMember("CoClassAttribute"); var worksheetInterface = m.GlobalNamespace.GetTypeMember("IWorksheet"); var attrs = worksheetInterface.GetAttributes().AsEnumerable(); Assert.True(worksheetInterface.IsComImport, "Must be ComImport"); if (isFromSource) { Assert.Equal(3, attrs.Count()); attrs = worksheetInterface.GetAttributes(comImportType); Assert.Equal(1, attrs.Count()); } else { Assert.Equal(2, attrs.Count()); // ComImportAttribute: Pseudo custom attribute shouldn't have been emitted attrs = worksheetInterface.GetAttributes(comImportType); Assert.Equal(0, attrs.Count()); } attrs = worksheetInterface.GetAttributes(guidType); Assert.Equal(1, attrs.Count()); attrs = worksheetInterface.GetAttributes(coClassType); Assert.Equal(1, attrs.Count()); }; string expectedOutput = @"0 1 0"; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator(true), symbolValidator: attributeValidator(false), expectedOutput: expectedOutput); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata() { var source = @" using System; using System.Runtime.InteropServices; public class Wrapper { public class WorksheetClass : IWorksheet { int i; public WorksheetClass() { this.i = 0; } public WorksheetClass(int i) { this.i = i; } public int M1() { return i; } } } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(Wrapper.WorksheetClass))] public interface IWorksheet { int M1(); } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_FromMetadata"); var source2 = @" using System; public class MainClass { public static int Main () { var a = new IWorksheet(); Console.WriteLine(a.M1()); IWorksheet b = new IWorksheet(1); Console.WriteLine(b.M1()); var c = (Wrapper.WorksheetClass)new IWorksheet(); Console.WriteLine(c.M1()); return 0; } }"; string expectedOutput = @"0 1 0"; // Verify attributes from source and then load metadata to see attributes are written correctly. // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CompileAndVerify(source2, references: new[] { compDll.ToMetadataReference() }, expectedOutput: expectedOutput); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CompileAndVerify(source2, references: new[] { compDll.EmitToImageReference() }, expectedOutput: expectedOutput); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_GenericTypeCoClass() { string source = @" using System; using System.Runtime.InteropServices; public class WorksheetClass<T, U>: IWorksheet<T> { public WorksheetClass(U x) { Console.WriteLine(x);} } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass<int, string>))] public interface IWorksheet<T> { } public class MainClass { public static int Main () { var a = new IWorksheet<int>(""string""); return 0; } }"; Func<bool, Action<ModuleSymbol>> attributeValidator = isFromSource => (ModuleSymbol m) => { NamespaceSymbol interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(m); var guidType = interopNS.GetTypeMember("GuidAttribute"); var comImportType = interopNS.GetTypeMember("ComImportAttribute"); var coClassType = interopNS.GetTypeMember("CoClassAttribute"); var worksheetInterface = m.GlobalNamespace.GetTypeMember("IWorksheet"); var attrs = worksheetInterface.GetAttributes().AsEnumerable(); Assert.True(worksheetInterface.IsComImport, "Must be ComImport"); if (isFromSource) { Assert.Equal(3, attrs.Count()); attrs = worksheetInterface.GetAttributes(comImportType); Assert.Equal(1, attrs.Count()); } else { Assert.Equal(2, attrs.Count()); // ComImportAttribute: Pseudo custom attribute shouldn't have been emitted attrs = worksheetInterface.GetAttributes(comImportType); Assert.Equal(0, attrs.Count()); } attrs = worksheetInterface.GetAttributes(guidType); Assert.Equal(1, attrs.Count()); attrs = worksheetInterface.GetAttributes(coClassType); Assert.Equal(1, attrs.Count()); }; string expectedOutput = @"string"; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator(true), symbolValidator: attributeValidator(false), expectedOutput: expectedOutput); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_GenericTypeCoClass() { var source = @" using System; using System.Runtime.InteropServices; public class WorksheetClass<T, U>: IWorksheet<T> { public WorksheetClass(U x) { Console.WriteLine(x);} } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass<int, string>))] public interface IWorksheet<T> { } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_GenericTypeCoClass"); var source2 = @" using System; public class MainClass { public static int Main () { var a = new IWorksheet<int>(""string""); return 0; } }"; string expectedOutput = @"string"; // Verify attributes from source and then load metadata to see attributes are written correctly. // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CompileAndVerify(source2, references: new[] { compDll.ToMetadataReference() }, expectedOutput: expectedOutput); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CompileAndVerify(source2, references: new[] { compDll.EmitToImageReference() }, expectedOutput: expectedOutput); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_InaccessibleInterface() { string source = @" using System; using System.Runtime.InteropServices; public class Wrapper { public class WorksheetClass : IWorksheet { } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] private interface IWorksheet { } } public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (22,29): error CS0122: 'Wrapper.IWorksheet' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").WithLocation(22, 29)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_InaccessibleInterface() { var source = @" using System; using System.Runtime.InteropServices; public class Wrapper { public class WorksheetClass : IWorksheet { } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] private interface IWorksheet { } } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_InaccessibleInterface"); var source2 = @" public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( // (6,29): error CS0122: 'Wrapper.IWorksheet' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").WithLocation(6, 29)); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( // (6,29): error CS0122: 'Wrapper.IWorksheet' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").WithLocation(6, 29)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_InaccessibleCoClass() { string source = @" using System; using System.Runtime.InteropServices; public class Wrapper { private class WorksheetClass : IWorksheet { } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] public interface IWorksheet { } } public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (22,21): error CS0122: 'Wrapper.WorksheetClass.WorksheetClass()' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").WithLocation(22, 21)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_InaccessibleCoClass() { var source = @" using System; using System.Runtime.InteropServices; public class Wrapper { private class WorksheetClass : IWorksheet { } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] public interface IWorksheet { } } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_InaccessibleCoClass"); var source2 = @" public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( // (6,21): error CS0122: 'Wrapper.WorksheetClass.WorksheetClass()' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").WithLocation(6, 21)); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( // (6,21): error CS0122: 'Wrapper.WorksheetClass.WorksheetClass()' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").WithLocation(6, 21)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_CoClass_Without_ComImport() { string source = @" using System.Runtime.InteropServices; public class Wrapper { private class WorksheetClass : IWorksheet { } [CoClass(typeof(WorksheetClass))] public interface IWorksheet { } } public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (10,6): warning CS0684: 'IWorksheet' interface marked with 'CoClassAttribute' not marked with 'ComImportAttribute' // [CoClass(typeof(WorksheetClass))] Diagnostic(ErrorCode.WRN_CoClassWithoutComImport, "CoClass(typeof(WorksheetClass))").WithArguments("IWorksheet").WithLocation(10, 6), // (20,17): error CS0144: Cannot create an instance of the abstract type or interface 'Wrapper.IWorksheet' // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(20, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_CoClass_Without_ComImport() { var source = @" using System.Runtime.InteropServices; public class Wrapper { private class WorksheetClass : IWorksheet { } [CoClass(typeof(WorksheetClass))] public interface IWorksheet { } } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_CoClass_Without_ComImport"); var source2 = @" public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'Wrapper.IWorksheet' // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(6, 17)); var assemblyRef = compDll.EmitToImageReference(expectedWarnings: new[] { // (11,6): warning CS0684: 'IWorksheet' interface marked with 'CoClassAttribute' not marked with 'ComImportAttribute' // [CoClass(typeof(WorksheetClass))] Diagnostic(ErrorCode.WRN_CoClassWithoutComImport, "CoClass(typeof(WorksheetClass))").WithArguments("IWorksheet") }); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CreateCompilation(source2, references: new[] { assemblyRef }).VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'Wrapper.IWorksheet' // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_StructTypeInCoClassAttribute() { string source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(Wrapper.WorksheetClass))] public interface IWorksheet { } public class Wrapper { public struct WorksheetClass : IWorksheet { } } public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (22,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(22, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_StructTypeInCoClassAttribute() { var source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(Wrapper.WorksheetClass))] public interface IWorksheet { } public class Wrapper { public struct WorksheetClass : IWorksheet { } } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_StructTypeInCoClassAttribute"); var source2 = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17)); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_InaccessibleTypeInCoClassAttribute() { string source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(Wrapper.WorksheetClass))] interface IWorksheet { } public class Wrapper { private class WorksheetClass : IWorksheet { } } public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (6,25): error CS0122: 'Wrapper.WorksheetClass' is inaccessible due to its protection level // [CoClass(typeof(Wrapper.WorksheetClass))] Diagnostic(ErrorCode.ERR_BadAccess, "WorksheetClass").WithArguments("Wrapper.WorksheetClass").WithLocation(6, 25), // (22,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(22, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_CoClassDoesntImplementInterface() { string source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] interface IWorksheet { } class WorksheetClass { } public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; CompileAndVerify(source); } [Fact] public void TestCoClassAttribute_NewOnInterface_UsingCustomIL() { var ilSource = @" .class interface public abstract auto ansi import IWorksheet { .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 30 30 30 32 30 38 31 30 2D 30 30 30 30 2D 30 30 30 30 2D 43 30 30 30 2D 30 30 30 30 30 30 30 30 30 30 34 36 00 00 ) .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 0E 57 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 00 00 ) } .class public auto ansi beforefieldinit WorksheetClass extends [mscorlib]System.Object implements IWorksheet { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } }"; var source = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); compilation.VerifyDiagnostics(); } [Fact] public void TestCoClassAttribute_NewOnInterface_UsingCustomIL_StructTypeCoClass() { var ilSource = @" .class interface public abstract auto ansi import IWorksheet { .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 30 30 30 32 30 38 31 30 2D 30 30 30 30 2D 30 30 30 30 2D 43 30 30 30 2D 30 30 30 30 30 30 30 30 30 30 34 36 00 00 ) .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 0E 57 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 00 00 ) } .class sequential ansi sealed public beforefieldinit WorksheetClass extends [mscorlib]System.ValueType { .pack 0 .size 1 } "; var source = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); compilation.VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_UsingCustomIL_InvalidTypeName() { var ilSource = @" .class interface public abstract auto ansi import IWorksheet { .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 30 30 30 32 30 38 31 30 2D 30 30 30 30 2D 30 30 30 30 2D 43 30 30 30 2D 30 30 30 30 30 30 30 30 30 30 34 36 00 00 ) // correct attribute arguments signature: 01 00 0E 57 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 00 00 .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 0E 59 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 00 00 ) } .class public auto ansi beforefieldinit WorksheetClass extends [mscorlib]System.Object implements IWorksheet { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } }"; var source = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); compilation.VerifyDiagnostics( // (6,17): error CS1613: The managed coclass wrapper class 'YorksheetClass' for interface 'IWorksheet' cannot be found (are you missing an assembly reference?) // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_MissingCoClass, "new IWorksheet()").WithArguments("YorksheetClass", "IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_UsingCustomIL_UnboundGenericTypeCoClass() { var ilSource = @" .class interface public abstract auto ansi import IWorksheet { .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 30 30 30 32 30 38 31 30 2D 30 30 30 30 2D 30 30 30 30 2D 43 30 30 30 2D 30 30 30 30 30 30 30 30 30 30 34 36 00 00 ) // [CoClass(typeof(WorksheetClass<>))] .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 10 57 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 60 31 00 00 ) } .class public auto ansi beforefieldinit WorksheetClass`1<T> extends [mscorlib]System.Object implements IWorksheet { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } }"; var source = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); compilation.VerifyDiagnostics( // (6,17): error CS1639: The managed coclass wrapper class signature 'WorksheetClass<>' for interface 'IWorksheet' is not a valid class name signature // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_BadCoClassSig, "new IWorksheet()").WithArguments("WorksheetClass<>", "IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_Within_AttributeArgument() { string source = @" using System; using System.Runtime.InteropServices; class CoClassType : InterfaceType { } class AAttribute: Attribute { public AAttribute(object o) {} } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(CoClassType))] [AAttribute(new InterfaceType())] interface InterfaceType { } public class MainClass { public static int Main () { return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (16,13): error CS0144: Cannot create an instance of the abstract type or interface 'InterfaceType' // [AAttribute(new InterfaceType())] Diagnostic(ErrorCode.ERR_NoNewAbstract, "new InterfaceType()").WithArguments("InterfaceType").WithLocation(16, 13)); } [Fact, WorkItem(544237, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544237")] public void TestCoClassAttribute_NewOnInterface_NoConversion() { string source = @" using System; using System.Runtime.InteropServices; [ComImport] [Guid(""69D3E2A0-BB0F-4FE3-9860-ED714C510756"")] [CoClass(typeof(StackOverflowException))] interface I { } class A { static void Main() { var x = new I(); // error CS0030: Cannot convert type 'System.StackOverflowException' to 'I' } } "; CreateCompilation(source).VerifyDiagnostics( // (14,17): error CS0030: Cannot convert type 'System.StackOverflowException' to 'I' // var x = new I(); // error CS0030: Cannot convert type 'System.StackOverflowException' to 'I' Diagnostic(ErrorCode.ERR_NoExplicitConv, "new I()").WithArguments("System.StackOverflowException", "I").WithLocation(14, 17)); } #endregion #region GuidAttribute [Fact] public void TestInvalidGuidAttribute() { string source = @" using System; using System.Runtime.InteropServices; [ComImport] [Guid(""69D3E2A0-BB0F-4FE3-9860-ED714C510756"")] // valid (36 chars) class A {} [Guid(""69D3E2A0-BB0F-4FE3-9860-ED714C51075"")] // incorrect length (35 chars) class B {} [Guid(""69D3E2A0BB0F--4FE3-9860-ED714C510756"")] // invalid format class C {} [Guid("""")] // empty string class D {} [Guid(null)] // null class E {} "; CreateCompilation(source).VerifyDiagnostics( // (9,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("69D3E2A0-BB0F-4FE3-9860-ED714C51075")] // incorrect length (35 chars) Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0-BB0F-4FE3-9860-ED714C51075""").WithArguments("Guid").WithLocation(9, 7), // (12,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("69D3E2A0BB0F--4FE3-9860-ED714C510756")] // invalid format Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F--4FE3-9860-ED714C510756""").WithArguments("Guid").WithLocation(12, 7), // (15,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("")] // empty string Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""""").WithArguments("Guid").WithLocation(15, 7), // (18,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid(null)] // null Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "null").WithArguments("Guid").WithLocation(18, 7)); } [WorkItem(545490, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545490")] [Fact] public void TestInvalidGuidAttribute_02() { string source = @" using System; using System.Runtime.InteropServices; // Following are alternate valid Guid formats, but disallowed by the native compiler. Ensure we disallow them. [Guid(""69D3E2A0BB0F4FE39860ED714C510756"")] // 32 digits, no hyphens class A {} [Guid(""{69D3E2A0-BB0F-4FE3-9860-ED714C510756}"")] // 32 digits separated by hyphens, enclosed in braces class B {} [Guid(""(69D3E2A0-BB0F-4FE3-9860-ED714C510756)"")] // 32 digits separated by hyphens, enclosed in parentheses class C {} [Guid(""{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}"")] // Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces class D {} "; CreateCompilation(source).VerifyDiagnostics( // (7,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("69D3E2A0BB0F4FE39860ED714C510756")] // 32 digits, no hyphens Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F4FE39860ED714C510756""").WithArguments("Guid").WithLocation(7, 7), // (10,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("{69D3E2A0-BB0F-4FE3-9860-ED714C510756}")] // 32 digits separated by hyphens, enclosed in braces Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""{69D3E2A0-BB0F-4FE3-9860-ED714C510756}""").WithArguments("Guid").WithLocation(10, 7), // (13,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("(69D3E2A0-BB0F-4FE3-9860-ED714C510756)")] // 32 digits separated by hyphens, enclosed in parentheses Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""(69D3E2A0-BB0F-4FE3-9860-ED714C510756)""").WithArguments("Guid").WithLocation(13, 7), // (16,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}")] // Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}""").WithArguments("Guid").WithLocation(16, 7)); } [Fact] public void TestInvalidGuidAttribute_Assembly() { string source = @" using System; using System.Runtime.InteropServices; [assembly: Guid(""69D3E2A0BB0F--4FE3-9860-ED714C510756"")] // invalid format "; CreateCompilation(source).VerifyDiagnostics( // (5,17): error CS0591: Invalid value for argument to 'Guid' attribute // [assembly: Guid("69D3E2A0BB0F--4FE3-9860-ED714C510756")] // invalid format Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F--4FE3-9860-ED714C510756""").WithArguments("Guid").WithLocation(5, 17)); } #endregion #region SpecialNameAttribute [Fact, WorkItem(544392, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544392")] public void SpecialName() { string source = @" using System; using System.Runtime.CompilerServices; [SpecialName] class Z { [SpecialName] void m() { } [SpecialName] int f; [SpecialName] int p1 { get; set; } [SpecialName] int p2 { get { return 1; } } [SpecialName] int p3 { [SpecialName] get { return 1; } [SpecialName] set { } } [SpecialName] [field: SpecialName] [method: SpecialName] event Action e; } enum En { [SpecialName] A = 1 } [SpecialName] struct S { } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var ca in metadataReader.CustomAttributes) { var name = MetadataValidation.GetAttributeName(metadataReader, ca); Assert.NotEqual("SpecialNameAttribute", name); } foreach (var typeDef in metadataReader.TypeDefinitions) { var row = metadataReader.GetTypeDefinition(typeDef); var name = metadataReader.GetString(row.Name); switch (name) { case "S": case "Z": Assert.Equal(TypeAttributes.SpecialName, row.Attributes & TypeAttributes.SpecialName); break; case "<Module>": case "En": Assert.Equal((TypeAttributes)0, row.Attributes & TypeAttributes.SpecialName); break; default: throw TestExceptionUtilities.UnexpectedValue(name); } } foreach (var methodHandle in metadataReader.MethodDefinitions) { var flags = metadataReader.GetMethodDefinition(methodHandle).Attributes; Assert.Equal(MethodAttributes.SpecialName, flags & MethodAttributes.SpecialName); } foreach (var fieldDef in metadataReader.FieldDefinitions) { var field = metadataReader.GetFieldDefinition(fieldDef); var name = metadataReader.GetString(field.Name); var flags = field.Attributes; switch (name) { case "e": case "f": case "value__": case "A": Assert.Equal(FieldAttributes.SpecialName, flags & FieldAttributes.SpecialName); break; case "<p1>k__BackingField": Assert.Equal((FieldAttributes)0, flags & FieldAttributes.SpecialName); break; default: throw TestExceptionUtilities.UnexpectedValue(name); } } foreach (var propertyDef in metadataReader.PropertyDefinitions) { var flags = metadataReader.GetPropertyDefinition(propertyDef).Attributes; Assert.Equal(PropertyAttributes.SpecialName, flags & PropertyAttributes.SpecialName); } foreach (var eventDef in metadataReader.EventDefinitions) { var flags = metadataReader.GetEventDefinition(eventDef).Attributes; Assert.Equal(EventAttributes.SpecialName, flags & EventAttributes.SpecialName); } }); } #endregion #region SerializableAttribute [Fact, WorkItem(544392, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544392")] public void Serializable() { string source = @" using System; using System.Runtime.CompilerServices; [Serializable] class A { [field: NonSerialized] event Action e; } [Serializable] struct B { [NonSerialized] int x; } [Serializable] enum E { [NonSerialized] A = 1 } [Serializable] delegate void D(); "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var ca in metadataReader.CustomAttributes) { var name = MetadataValidation.GetAttributeName(metadataReader, ca); Assert.NotEqual("SpecialNameAttribute", name); } foreach (var typeDef in metadataReader.TypeDefinitions) { var row = metadataReader.GetTypeDefinition(typeDef); var name = metadataReader.GetString(row.Name); switch (name) { case "A": case "B": case "E": case "D": Assert.Equal(TypeAttributes.Serializable, row.Attributes & TypeAttributes.Serializable); break; case "<Module>": Assert.Equal((TypeAttributes)0, row.Attributes & TypeAttributes.Serializable); break; default: throw TestExceptionUtilities.UnexpectedValue(name); } } foreach (var fieldDef in metadataReader.FieldDefinitions) { var field = metadataReader.GetFieldDefinition(fieldDef); var name = metadataReader.GetString(field.Name); var flags = field.Attributes; switch (name) { case "e": case "x": case "A": Assert.Equal(FieldAttributes.NotSerialized, flags & FieldAttributes.NotSerialized); break; case "value__": Assert.Equal((FieldAttributes)0, flags & FieldAttributes.NotSerialized); break; } } }); } [Fact] [WorkItem(3898, "https://github.com/dotnet/roslyn/issues/3898")] void SerializableFromPE() { string lib_cs = @" using System; [Serializable, Bob] public class C { } [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class BobAttribute : Attribute { }"; var lib_comp = CreateCompilation(lib_cs); verify(lib_comp, isSerializablePresent: true); var client1 = CreateCompilation("", references: new[] { lib_comp.ToMetadataReference() }); verify(client1, isSerializablePresent: true); var client2 = CreateCompilation("", references: new[] { lib_comp.EmitToImageReference() }); verify(client2, isSerializablePresent: false); void verify(CSharpCompilation comp, bool isSerializablePresent) { NamedTypeSymbol typeC = comp.GetTypeByMetadataName("C"); var expectedAttributes = isSerializablePresent ? new[] { "System.SerializableAttribute", "BobAttribute" } : new[] { "BobAttribute" }; AssertEx.SetEqual(expectedAttributes, typeC.GetAttributes().Select(a => a.ToString())); Assert.True(typeC.IsSerializable); NamedTypeSymbol typeBobAttribute = comp.GetTypeByMetadataName("BobAttribute"); Assert.False(typeBobAttribute.IsSerializable); } } [Fact] [WorkItem(3898, "https://github.com/dotnet/roslyn/issues/3898")] public void TestIsSerializableProperty() { string missing = @" public class TopLevel { public class Nested { } } public class TopLevel<T> { public class Nested<U> { } } public class Constructed<T> { } "; string source = @" public class C<T> { public class Nested { } } [System.Serializable] public class CS<T> { [System.Serializable] public class NestedS { } } public class SubstitutedNested : C<int>.Nested { } public class SubstitutedNestedS : CS<int>.NestedS { } public class Constructed : C<int> { } public class ConstructedS : CS<int> { } public class MissingTopLevel : TopLevel { } public class MissingNested : TopLevel.Nested { } public class MissingConstructed : Constructed<int> { } public class MissingSubstitutedNested<T, U> : TopLevel<T>.Nested<U> { } namespace System { [System.Serializable] public struct ValueTuple<T1, T2> { } } public class ValueTupleS { (int, int) M() => throw null; } "; string errors = @" public class ExtendedError : ExtendedErrorBase { } public class Unbound : Constructed<> { } "; var lib = CreateCompilationWithMscorlib46(missing, assemblyName: "missing"); lib.VerifyDiagnostics(); var comp = CreateCompilationWithMscorlib46(source, references: new[] { lib.EmitToImageReference() }); comp.VerifyDiagnostics(); var comp2 = CreateCompilationWithMscorlib46(errors, references: new[] { comp.EmitToImageReference() }); var substitutedNested = comp.GetTypeByMetadataName("SubstitutedNested").BaseType(); Assert.IsType<SubstitutedNestedTypeSymbol>(substitutedNested); Assert.False(((NamedTypeSymbol)substitutedNested).IsSerializable); var substitutedNestedS = comp.GetTypeByMetadataName("SubstitutedNestedS").BaseType(); Assert.IsType<SubstitutedNestedTypeSymbol>(substitutedNestedS); Assert.True(((NamedTypeSymbol)substitutedNestedS).IsSerializable); var valueTupleS = comp.GetTypeByMetadataName("ValueTupleS").GetMember("M").GetTypeOrReturnType().Type; Assert.True(valueTupleS.IsTupleType); Assert.True(((NamedTypeSymbol)valueTupleS).IsSerializable); var constructed = comp.GetTypeByMetadataName("Constructed").BaseType(); Assert.IsType<ConstructedNamedTypeSymbol>(constructed); Assert.False(((NamedTypeSymbol)constructed).IsSerializable); var constructedS = comp.GetTypeByMetadataName("ConstructedS").BaseType(); Assert.IsType<ConstructedNamedTypeSymbol>(constructedS); Assert.True(((NamedTypeSymbol)constructedS).IsSerializable); var extendedError = comp2.GetTypeByMetadataName("ExtendedError").BaseType(); Assert.IsType<ExtendedErrorTypeSymbol>(extendedError); Assert.False(((NamedTypeSymbol)extendedError).IsSerializable); var topLevel = comp2.GetTypeByMetadataName("MissingTopLevel").BaseType(); Assert.IsType<MissingMetadataTypeSymbol.TopLevel>(topLevel); Assert.False(((NamedTypeSymbol)topLevel).IsSerializable); var nested = comp2.GetTypeByMetadataName("MissingNested").BaseType(); Assert.IsType<MissingMetadataTypeSymbol.Nested>(nested); Assert.False(((NamedTypeSymbol)nested).IsSerializable); var constructedError = comp2.GetTypeByMetadataName("MissingConstructed").BaseType(); Assert.IsType<ConstructedErrorTypeSymbol>(constructedError); Assert.False(((NamedTypeSymbol)constructedError).IsSerializable); var nestedSubstitutedError = comp2.GetTypeByMetadataName("MissingSubstitutedNested`2").BaseType().ConstructedFrom; Assert.IsType<SubstitutedNestedErrorTypeSymbol>(nestedSubstitutedError); Assert.False(((NamedTypeSymbol)nestedSubstitutedError).IsSerializable); var unbound = comp2.GetTypeByMetadataName("Unbound").BaseType().TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type; Assert.IsType<UnboundArgumentErrorTypeSymbol>(unbound); Assert.False(((NamedTypeSymbol)unbound).IsSerializable); var script = CreateCompilation("", parseOptions: TestOptions.Script); var scriptClass = script.GetTypeByMetadataName("Script"); Assert.IsType<ImplicitNamedTypeSymbol>(scriptClass); Assert.False(((NamedTypeSymbol)scriptClass).IsSerializable); } #endregion #region ParamArrayAttribute [Fact] public void TestParamArrayAttributeForParams() { string source = @" using System; namespace AttributeTest { public class MyClass { public static void UseParams(params int[] list) { for ( int i = 0 ; i < list.Length ; i++ ) Console.WriteLine(list[i]); Console.WriteLine(); } public static void NoParams(object list) { Console.WriteLine(); } public static void Main() { UseParams(1, 2, 3); NoParams(1); int[] myarray = new int[3] {10,11,12}; UseParams(myarray); } } } "; var compilation = CreateCompilation(source); // Verify attributes from source and then load metadata to see attributes are written correctly. var comp = CompileAndVerify( compilation, expectedSignatures: new[] { Signature("AttributeTest.MyClass", "UseParams", ".method public hidebysig static System.Void UseParams([System.ParamArrayAttribute()] System.Int32[] list) cil managed"), Signature("AttributeTest.MyClass", "NoParams", ".method public hidebysig static System.Void NoParams(System.Object list) cil managed"), }, symbolValidator: module => { var @namespace = module.GlobalNamespace.GetNestedNamespace("AttributeTest"); var type = @namespace.GetTypeMember("MyClass"); var useParamsMethod = type.GetMethod("UseParams"); var paramsParameter = useParamsMethod.Parameters[0]; VerifyParamArrayAttribute(paramsParameter); var noParamsMethod = type.GetMethod("NoParams"); var noParamsParameter = noParamsMethod.Parameters[0]; Assert.Empty(noParamsParameter.GetAttributes()); }); } #endregion #region AttributeUsageAttribute [WorkItem(541733, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541733")] [Fact] public void TestSourceOverrideWellKnownAttribute_01() { string source = @" namespace System { [AttributeUsage(AttributeTargets.Class)] [AttributeUsage(AttributeTargets.Class)] class AttributeUsageAttribute : Attribute { public AttributeUsageAttribute(AttributeTargets x) { } } }"; var syntaxTree = Parse(source, filename: "test.cs"); var compilation = CreateCompilationWithMscorlib40(syntaxTree); var comp = compilation.VerifyDiagnostics( // test.cs(4,6): warning CS0436: The type 'AttributeUsageAttribute' in 'test.cs' conflicts with the imported type 'AttributeUsageAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in 'test.cs'. // [AttributeUsage(AttributeTargets.Class)] Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AttributeUsage").WithArguments("test.cs", "System.AttributeUsageAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.AttributeUsageAttribute").WithLocation(4, 6), // test.cs(5,6): warning CS0436: The type 'AttributeUsageAttribute' in 'test.cs' conflicts with the imported type 'AttributeUsageAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in 'test.cs'. // [AttributeUsage(AttributeTargets.Class)] Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AttributeUsage").WithArguments("test.cs", "System.AttributeUsageAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.AttributeUsageAttribute").WithLocation(5, 6), // test.cs(5,6): error CS0579: Duplicate 'AttributeUsage' attribute // [AttributeUsage(AttributeTargets.Class)] Diagnostic(ErrorCode.ERR_DuplicateAttribute, "AttributeUsage").WithArguments("AttributeUsage").WithLocation(5, 6)); } [WorkItem(541733, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541733")] [WorkItem(546102, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546102")] [Fact] public void TestSourceOverrideWellKnownAttribute_02() { string source = @" namespace System { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] class AttributeUsageAttribute : Attribute { public AttributeUsageAttribute(AttributeTargets x) { } public bool AllowMultiple { get { return false; } set { } } } }"; var syntaxTree = Parse(source, filename: "test.cs"); var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var ns = (NamespaceSymbol)m.GlobalNamespace.GetMember("System"); var attrType = ns.GetTypeMember("AttributeUsageAttribute"); var attrs = attrType.GetAttributes(attrType); Assert.Equal(2, attrs.Count()); // Verify attributes var attrSym = attrs.First(); Assert.Equal(1, attrSym.CommonConstructorArguments.Length); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)AttributeTargets.Class); Assert.Equal(1, attrSym.CommonNamedArguments.Length); attrSym.VerifyNamedArgumentValue(0, "AllowMultiple", TypedConstantKind.Primitive, true); attrSym = attrs.ElementAt(1); Assert.Equal(1, attrSym.CommonConstructorArguments.Length); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)AttributeTargets.Class); Assert.Equal(1, attrSym.CommonNamedArguments.Length); attrSym.VerifyNamedArgumentValue(0, "AllowMultiple", TypedConstantKind.Primitive, false); // Verify AttributeUsage var attributeUsage = attrType.GetAttributeUsageInfo(); Assert.Equal(AttributeTargets.Class, attributeUsage.ValidTargets); Assert.True(attributeUsage.AllowMultiple); Assert.True(attributeUsage.Inherited); }; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator, symbolValidator: attributeValidator); } [WorkItem(546102, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546102")] [Fact] public void TestAttributeUsageAllowMultiple() { string source = @" using System; namespace System { class AttributeUsageAttribute : Attribute { public AttributeUsageAttribute(AttributeTargets x) { } public bool AllowMultiple { get { return false; } set { } } } } [A, A] [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] class A: Attribute {} "; CompileAndVerify(source); } [WorkItem(546056, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546056")] [Fact] public void TestBadAttributeUsageArgument() { string source = @" using System; [AttributeUsage(badAttributeTargets)] public class MyAttribute : Attribute { public const AttributeTargets badAttributeTargets = Missing; } "; CreateCompilation(source).VerifyDiagnostics( // (7,54): error CS0103: The name 'Missing' does not exist in the current context // public const AttributeTargets badAttributeTargets = Missing; Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing"), // (4,17): error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type // [AttributeUsage(badAttributeTargets)] Diagnostic(ErrorCode.ERR_BadAttributeArgument, "badAttributeTargets")); } #endregion #region InternalsVisibleToAttribute [WorkItem(542173, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542173")] [Fact] public void MergeMemberImplWithImportedInternals() { #region "Text" string text1 = @" [assembly: System.Runtime.CompilerServices.InternalsVisibleTo(""Child"")] [assembly: System.Runtime.CompilerServices.InternalsVisibleTo(""Child2"")] public abstract class Parent { internal abstract string M1(); public abstract int GetInt(); } "; string text2 = @" [assembly: System.Runtime.CompilerServices.InternalsVisibleTo(""Child2"")] public abstract class Child: Parent { internal override string M1() { return ""Child""; } } "; string text3 = @" public class Child2: Child { public override int GetInt() { return 2; } } "; #endregion var opt = TestOptions.ReleaseDll; var comp1 = CreateCompilation(text1, options: opt); var compref1 = new CSharpCompilationReference(comp1); var comp2 = CreateCompilation(text2, references: new[] { compref1 }, options: opt, assemblyName: "Child"); var comp3 = CreateCompilation(text3, references: new[] { compref1, new CSharpCompilationReference(comp2) }, options: opt, assemblyName: "Child2"); // OK comp3.VerifyDiagnostics(); comp3 = CreateCompilation(text3, references: new[] { compref1, new CSharpCompilationReference(comp2) }, options: opt, assemblyName: "Child2"); comp3.VerifyDiagnostics(); } #endregion #region CustomConstantAttribute [Fact, WorkItem(544440, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544440"), WorkItem(538206, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538206")] public void CustomConstantAttributeIntToObj() { #region "Source" string source = @" using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)] sealed class ObjectConstantAttribute : CustomConstantAttribute { private object _obj; public override object Value { get { return _obj; } } public ObjectConstantAttribute(object objectValue) { _obj = objectValue; } } public class Test { public void Goo2([Optional][ObjectConstant(1000)] object obj) { Console.WriteLine(obj); } public static void Main() { new Test().Goo2(); } } "; #endregion CompileAndVerify(source, expectedOutput: @"System.Reflection.Missing") .VerifyIL("Test.Main", @"{ // Code size 16 (0x10) .maxstack 2 IL_0000: newobj ""Test..ctor()"" IL_0005: ldsfld ""object System.Type.Missing"" IL_000a: call ""void Test.Goo2(object)"" IL_000f: ret }"); } #endregion #region AssemblyKeyFileAttribute // See InternalsVisibleToAndStrongNameTests #endregion #region ClassInterfaceAttribute [Fact] public void TestClassInterfaceAttribute() { var source = @" using System.Runtime.InteropServices; // Valid cases [assembly: ClassInterface(ClassInterfaceType.None)] [ClassInterface(ClassInterfaceType.AutoDispatch)] public class Class1 {} [ClassInterface(ClassInterfaceType.AutoDual)] public class Class2 {} [ClassInterface((short)0)] public class Class4 {} [ClassInterface((short)1)] public class Class5 {} [ClassInterface((short)2)] public class Class6 {} // Invalid cases [ClassInterface((ClassInterfaceType)(-1))] public class InvalidClass1 {} [ClassInterface((ClassInterfaceType)3)] public class InvalidClass2 {} [ClassInterface((short)(-1))] public class InvalidClass3 {} [ClassInterface((short)3)] public class InvalidClass4 {} [ClassInterface(System.Int32.MaxValue)] public class InvalidClass5 { } [ClassInterface(ClassInterfaceType.None)] public interface InvalidTarget {} "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (26,17): error CS0591: Invalid value for argument to 'ClassInterface' attribute // [ClassInterface((ClassInterfaceType)(-1))] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(ClassInterfaceType)(-1)").WithArguments("ClassInterface"), // (29,17): error CS0591: Invalid value for argument to 'ClassInterface' attribute // [ClassInterface((ClassInterfaceType)3)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(ClassInterfaceType)3").WithArguments("ClassInterface"), // (32,17): error CS0591: Invalid value for argument to 'ClassInterface' attribute // [ClassInterface((short)(-1))] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(short)(-1)").WithArguments("ClassInterface"), // (35,17): error CS0591: Invalid value for argument to 'ClassInterface' attribute // [ClassInterface((short)3)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(short)3").WithArguments("ClassInterface"), // (38,17): error CS1503: Argument 1: cannot convert from 'int' to 'System.Runtime.InteropServices.ClassInterfaceType' // [ClassInterface(System.Int32.MaxValue)] Diagnostic(ErrorCode.ERR_BadArgType, "System.Int32.MaxValue").WithArguments("1", "int", "System.Runtime.InteropServices.ClassInterfaceType"), // (41,2): error CS0592: Attribute 'ClassInterface' is not valid on this declaration type. It is only valid on 'assembly, class' declarations. // [ClassInterface(ClassInterfaceType.None)] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ClassInterface").WithArguments("ClassInterface", "assembly, class")); } #endregion #region InterfaceTypeAttribute [Fact] public void TestInterfaceTypeAttribute() { var source = @" using System.Runtime.InteropServices; // Valid cases [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface Interface1 {} [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface Interface2 {} [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface Interface4 {} // ComInterfaceType.InterfaceIsIInspectable seems to be undefined in version of mscorlib used by the test framework. [InterfaceType((ComInterfaceType)3)] public interface Interface3 {} [InterfaceType((short)0)] public interface Interface5 {} [InterfaceType((short)1)] public interface Interface6 {} [InterfaceType((short)2)] public interface Interface7 {} [InterfaceType((short)3)] public interface Interface8 {} // Invalid cases [InterfaceType((ComInterfaceType)(-1))] public interface InvalidInterface1 {} [InterfaceType((ComInterfaceType)4)] public interface InvalidInterface2 {} [InterfaceType((short)(-1))] public interface InvalidInterface3 {} [InterfaceType((short)4)] public interface InvalidInterface4 {} [InterfaceType(System.Int32.MaxValue)] public interface InvalidInterface5 {} [InterfaceType(ComInterfaceType.InterfaceIsDual)] public class InvalidTarget {} "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (34,16): error CS0591: Invalid value for argument to 'InterfaceType' attribute // [InterfaceType((ComInterfaceType)(-1))] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(ComInterfaceType)(-1)").WithArguments("InterfaceType"), // (37,16): error CS0591: Invalid value for argument to 'InterfaceType' attribute // [InterfaceType((ComInterfaceType)4)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(ComInterfaceType)4").WithArguments("InterfaceType"), // (40,16): error CS0591: Invalid value for argument to 'InterfaceType' attribute // [InterfaceType((short)(-1))] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(short)(-1)").WithArguments("InterfaceType"), // (43,16): error CS0591: Invalid value for argument to 'InterfaceType' attribute // [InterfaceType((short)4)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(short)4").WithArguments("InterfaceType"), // (46,16): error CS1503: Argument 1: cannot convert from 'int' to 'System.Runtime.InteropServices.ComInterfaceType' // [InterfaceType(System.Int32.MaxValue)] Diagnostic(ErrorCode.ERR_BadArgType, "System.Int32.MaxValue").WithArguments("1", "int", "System.Runtime.InteropServices.ComInterfaceType"), // (49,2): error CS0592: Attribute 'InterfaceType' is not valid on this declaration type. It is only valid on 'interface' declarations. // [InterfaceType(ComInterfaceType.InterfaceIsDual)] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "InterfaceType").WithArguments("InterfaceType", "interface")); } #endregion #region TypeLibVersionAttribute [Fact] public void TestTypeLibVersionAttribute_Valid() { var source = @" using System.Runtime.InteropServices; [assembly: TypeLibVersionAttribute(0, int.MaxValue)] "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics(); } [Fact] public void TestTypeLibVersionAttribute_Valid2() { var source = @" using System.Runtime.InteropServices; [assembly: TypeLibVersionAttribute(C.S * C.S, unchecked((int)((long)-int.MinValue - 1)))] public class C { public const short S = short.MaxValue; } "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics(); } [Fact] public void TestTypeLibVersionAttribute_Invalid() { var source = @" using System.Runtime.InteropServices; [assembly: TypeLibVersionAttribute(-1, int.MinValue)] "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (4,36): error CS0591: Invalid value for argument to 'TypeLibVersionAttribute' attribute // [assembly: TypeLibVersionAttribute(-1, int.MinValue)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("TypeLibVersionAttribute"), // (4,40): error CS0591: Invalid value for argument to 'TypeLibVersionAttribute' attribute // [assembly: TypeLibVersionAttribute(-1, int.MinValue)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "int.MinValue").WithArguments("TypeLibVersionAttribute")); } [Fact] public void TestTypeLibVersionAttribute_Invalid_02() { var source = @" using System.Runtime.InteropServices; [assembly: TypeLibVersionAttribute(""str"", 0)] "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (4,36): error CS1503: Argument 1: cannot convert from 'string' to 'int' // [assembly: TypeLibVersionAttribute("str", 0)] Diagnostic(ErrorCode.ERR_BadArgType, @"""str""").WithArguments("1", "string", "int")); } #endregion #region ComCompatibleVersionAttribute [Fact] public void TestComCompatibleVersionAttribute_Valid() { var source = @" using System.Runtime.InteropServices; [assembly: ComCompatibleVersionAttribute(0, 0, 0, 0)] "; CreateCompilation(source).VerifyDiagnostics(); } [Fact] public void TestComCompatibleVersionAttribute_Invalid() { var source = @" using System.Runtime.InteropServices; [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] "; CreateCompilation(source).VerifyDiagnostics( // (4,42): error CS0591: Invalid value for argument to 'ComCompatibleVersionAttribute' attribute // [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("ComCompatibleVersionAttribute"), // (4,46): error CS0591: Invalid value for argument to 'ComCompatibleVersionAttribute' attribute // [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("ComCompatibleVersionAttribute"), // (4,50): error CS0591: Invalid value for argument to 'ComCompatibleVersionAttribute' attribute // [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("ComCompatibleVersionAttribute"), // (4,54): error CS0591: Invalid value for argument to 'ComCompatibleVersionAttribute' attribute // [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("ComCompatibleVersionAttribute")); } [Fact] public void TestComCompatibleVersionAttribute_Invalid_02() { var source = @" using System.Runtime.InteropServices; [assembly: ComCompatibleVersionAttribute(""str"", 0)] "; CreateCompilation(source).VerifyDiagnostics( // (4,12): error CS7036: There is no argument given that corresponds to the required formal parameter 'build' of 'System.Runtime.InteropServices.ComCompatibleVersionAttribute.ComCompatibleVersionAttribute(int, int, int, int)' // [assembly: ComCompatibleVersionAttribute("str", 0)] Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, @"ComCompatibleVersionAttribute(""str"", 0)").WithArguments("build", "System.Runtime.InteropServices.ComCompatibleVersionAttribute.ComCompatibleVersionAttribute(int, int, int, int)").WithLocation(4, 12)); } #endregion #region WindowsRuntimeImportAttribute [Fact] public void TestWindowsRuntimeImportAttribute() { var source = @" using System; using System.Runtime.InteropServices; namespace System.Runtime.InteropServices.WindowsRuntime { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Struct | AttributeTargets.Delegate, Inherited = false)] internal sealed class WindowsRuntimeImportAttribute : Attribute { public WindowsRuntimeImportAttribute() { } } } [System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeImport] class A { public static void Main() {} } "; Action<ModuleSymbol> sourceValidator = (ModuleSymbol module) => { NamespaceSymbol windowsRuntimeNS = Get_System_Runtime_InteropServices_WindowsRuntime_NamespaceSymbol(module); NamedTypeSymbol windowsRuntimeImportAttrType = windowsRuntimeNS.GetTypeMember("WindowsRuntimeImportAttribute"); NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); Assert.Equal(1, typeA.GetAttributes(windowsRuntimeImportAttrType).Count()); Assert.True(typeA.IsWindowsRuntimeImport, "Metadata flag not set for IsWindowsRuntimeImport"); }; Action<ModuleSymbol> metadataValidator = (ModuleSymbol module) => { NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); Assert.Equal(0, typeA.GetAttributes().Length); Assert.True(typeA.IsWindowsRuntimeImport, "Metadata flag not set for IsWindowsRuntimeImport"); }; // Verify that PEVerify will fail despite the fact that compiler produces no errors // This is consistent with Dev10 behavior // // Dev10 PEVerify failure: // [token 0x02000003] Type load failed. // // Dev10 Runtime Exception: // Unhandled Exception: System.TypeLoadException: Windows Runtime types can only be declared in Windows Runtime assemblies. var verifier = CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, verify: Verification.Fails, targetFramework: TargetFramework.Mscorlib40); } #endregion #region DynamicSecurityMethodAttribute [Fact] public void TestDynamicSecurityMethodAttribute() { var source = @" using System; using System.Security; namespace System.Security { // DynamicSecurityMethodAttribute: // Indicates that calling the target method requires space for a security // object to be allocated on the callers stack. This attribute is only ever // set on certain security methods defined within mscorlib. [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false )] sealed internal class DynamicSecurityMethodAttribute : System.Attribute { } } class A { [DynamicSecurityMethodAttribute] public static void SecurityMethod() { } public static void Main() { SecurityMethod(); } } "; Action<ModuleSymbol> sourceValidator = (ModuleSymbol module) => { NamespaceSymbol securityNS = Get_System_Security_NamespaceSymbol(module); NamedTypeSymbol dynamicSecurityMethodAttrType = securityNS.GetTypeMembers("DynamicSecurityMethodAttribute").Single(type => type.DeclaringSyntaxReferences.Any()); NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); MethodSymbol method = typeA.GetMember<MethodSymbol>("SecurityMethod"); Assert.Equal(1, method.GetAttributes(dynamicSecurityMethodAttrType).Count()); Assert.True(method.RequiresSecurityObject, "Metadata flag RequiresSecurityObject is not set"); }; Action<ModuleSymbol> metadataValidator = (ModuleSymbol module) => { NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); MethodSymbol method = typeA.GetMember<MethodSymbol>("SecurityMethod"); Assert.Equal(0, method.GetAttributes().Length); Assert.True(method.RequiresSecurityObject, "Metadata flag RequiresSecurityObject is not set"); }; CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, expectedOutput: ""); } [Fact] public void TestDynamicSecurityMethodAttribute_LocalFunction() { var source = @" using System; using System.Security; namespace System.Security { // DynamicSecurityMethodAttribute: // Indicates that calling the target method requires space for a security // object to be allocated on the callers stack. This attribute is only ever // set on certain security methods defined within mscorlib. [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false )] sealed internal class DynamicSecurityMethodAttribute : System.Attribute { } } class A { public static void Main() { SecurityMethod(); [DynamicSecurityMethodAttribute] static void SecurityMethod() { } } } "; void metadataValidator(ModuleSymbol module) { NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); MethodSymbol method = typeA.GetMember<MethodSymbol>("<Main>g__SecurityMethod|0_0"); Assert.Equal(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(method.GetAttributes())); Assert.True(method.RequiresSecurityObject); }; var verifier = CompileAndVerify( source, symbolValidator: metadataValidator, expectedOutput: "", parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation = verifier.Compilation; var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var localFunctionSyntax = tree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Single(); var localFunctionSymbol = model.GetDeclaredSymbol(localFunctionSyntax).GetSymbol<LocalFunctionSymbol>(); Assert.True(localFunctionSymbol.RequiresSecurityObject); } #endregion #region ObsoleteAttribute [Fact, WorkItem(546062, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546062")] public void TestObsoleteAttributeOnTypes() { var source = @" using System; class Test { Class1 field1; Class1 Prop1 { get; set; } void Method1(Class1 c) {} public static void Main() { Class1 c = null; Test t = new Test(); t.field1 = c; t.Prop1 = c; t.Method1(new Class1()); Mydeleg x = (i) => i; } } [Obsolete(""Do not use this type"", true)] class Class1 {} [Obsolete] [SelfRecursive] class SelfRecursiveAttribute : Attribute {} [Obsolete(""Do not use A1"", false)] [A2] class A1 : Attribute {} [Obsolete] [A1] class A2: Attribute {} [A1] class A3: Attribute {} class AttrWithType : Attribute { public AttrWithType(Type t) {} } [Obsolete] [Another] class G<T, U> {} [Obsolete] [AttrWithType(typeof(G<int, AnotherAttribute>))] class AnotherAttribute: Attribute {} [AttrWithType(typeof(G<int, AnotherAttribute>))] class AnotherAttribute1: Attribute {} [System.Obsolete(""This message"" + "" should be concat'ed"", !(false))] [SelfRecursive1] class SelfRecursive1Attribute : Attribute {} [Obsolete] public delegate int Mydeleg(int x); [GooAttribute.BarAttribute.Baz] [Obsolete(""Blah"")] class GooAttribute : Attribute { class BazAttribute : Attribute { } class BarAttribute : GooAttribute { } } namespace TypeClashWithNS { class BarAttribute : Attribute {} } [TypeClashWithNS.Bar] class TypeClashWithNS : Attribute { class BarAttribute : Attribute { } } interface IGoo<T> {} [Obsolete] class SelfReferenceInBase : IGoo<SelfReferenceInBase> {} class SelfReferenceInBase1 : IGoo<SelfReferenceInBase> {} "; CreateCompilation(source).VerifyDiagnostics( // (78,7): error CS0101: The namespace '<global namespace>' already contains a definition for 'TypeClashWithNS' // class TypeClashWithNS : Attribute Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "TypeClashWithNS").WithArguments("TypeClashWithNS", "<global namespace>").WithLocation(78, 7), // (53,29): warning CS0612: 'AnotherAttribute' is obsolete // [AttrWithType(typeof(G<int, AnotherAttribute>))] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "AnotherAttribute").WithArguments("AnotherAttribute").WithLocation(53, 29), // (53,22): warning CS0612: 'G<int, AnotherAttribute>' is obsolete // [AttrWithType(typeof(G<int, AnotherAttribute>))] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "G<int, AnotherAttribute>").WithArguments("G<int, AnotherAttribute>").WithLocation(53, 22), // (7,5): error CS0619: 'Class1' is obsolete: 'Do not use this type' // Class1 Prop1 { get; set; } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(7, 5), // (87,35): warning CS0612: 'SelfReferenceInBase' is obsolete // class SelfReferenceInBase1 : IGoo<SelfReferenceInBase> {} Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "SelfReferenceInBase").WithArguments("SelfReferenceInBase").WithLocation(87, 35), // (6,5): error CS0619: 'Class1' is obsolete: 'Do not use this type' // Class1 field1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(6, 5), // (37,2): warning CS0618: 'A1' is obsolete: 'Do not use A1' // [A1] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "A1").WithArguments("A1", "Do not use A1").WithLocation(37, 2), // (8,18): error CS0619: 'Class1' is obsolete: 'Do not use this type' // void Method1(Class1 c) {} Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(8, 18), // (12,9): error CS0619: 'Class1' is obsolete: 'Do not use this type' // Class1 c = null; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(12, 9), // (16,23): error CS0619: 'Class1' is obsolete: 'Do not use this type' // t.Method1(new Class1()); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(16, 23), // (18,9): warning CS0612: 'Mydeleg' is obsolete // Mydeleg x = (i) => i; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Mydeleg").WithArguments("Mydeleg").WithLocation(18, 9)); } [Fact] public void TestObsoleteAttributeOnMembersAndAccessors() { var source = @" using System; public class Test { public static void Main() { ObsoleteMethod1(); ObsoleteMethod2(); ObsoleteMethod3(); ObsoleteMethod5(); Test t = new Test(); t.ObsoleteMethod4(); var f = t.field1; var p1 = t.Property1; var p2 = t.Property2; var p3 = t.Prop2; t.Prop2 = p3; var p4 = t.Prop3; t.Prop3 = p4; var p5 = t.Prop4; t.Prop4 = p5; t.event1(); t.event1 += () => { }; t.ObsoleteExtensionMethod1(); Action<int> func = t.ObsoleteMethod4; func(1); Action func1 = t.ObsoleteMethod4; func1(); Test t1 = new Test { Property1 = 10, Property2 =20}; var i1 = t1[10]; GenericTest<int> gt = new GenericTest<int>(); gt.ObsoleteMethod1<double>(); var gf = gt.field1; var gp1 = gt.Property1; gt.event1 += (i) => { }; } [Obsolete] public static void ObsoleteMethod1() { } [Obsolete(""Do not call this method"")] public static void ObsoleteMethod2() { } [Obsolete("""", true)] public static void ObsoleteMethod3() { } [Obsolete(""Do not call this method"")] public void ObsoleteMethod4() { } [Obsolete(""Do not call this method"")] public void ObsoleteMethod4(int x) { } [Obsolete(null, true)] public static void ObsoleteMethod5() { } [Obsolete(""Do not use this field"")] public int field1 = 0; [Obsolete(""Do not use this property"")] public int Property1 { get; set; } [Obsolete(""Do not use this property"")] public int Property2 { get { return 10; } set { } } [Obsolete(""Do not use this event"")] public event Action event1; public int Prop2 { [Obsolete] get { return 10; } set {} } public int Prop3 { get { return 10; } [Obsolete] set { } } public int Prop4 { [Obsolete] get { return 10; } [Obsolete] set { } } public event Action event2 { [Obsolete] add {} [Obsolete(""Don't use remove accessor"")] remove {} } [Obsolete] public int this[int x] { get { return 10; } } } public class GenericTest<T> { [Obsolete] public void ObsoleteMethod1<U>() { } [Obsolete(""Do not use this field"")] public T field1 = default(T); [Obsolete(""Do not use this property"")] public T Property1 { get; set; } [Obsolete(""Do not use this event"")] public event Action<T> event1; } public static class TestExtension { [Obsolete(""Do not call this extension method"")] public static void ObsoleteExtensionMethod1(this Test t) { } } "; CreateCompilationWithMscorlib40(source, new[] { TestMetadata.Net40.SystemCore }).VerifyDiagnostics( // (98,10): error CS8423: Attribute 'System.ObsoleteAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Obsolete] add {} Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(98, 10), // (99,10): error CS8423: Attribute 'System.ObsoleteAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Obsolete("Don't use remove accessor")] remove {} Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(99, 10), // (8,9): warning CS0612: 'Test.ObsoleteMethod1()' is obsolete // ObsoleteMethod1(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteMethod1()").WithArguments("Test.ObsoleteMethod1()").WithLocation(8, 9), // (9,9): warning CS0618: 'Test.ObsoleteMethod2()' is obsolete: 'Do not call this method' // ObsoleteMethod2(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "ObsoleteMethod2()").WithArguments("Test.ObsoleteMethod2()", "Do not call this method").WithLocation(9, 9), // (10,9): error CS0619: 'Test.ObsoleteMethod3()' is obsolete: '' // ObsoleteMethod3(); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "ObsoleteMethod3()").WithArguments("Test.ObsoleteMethod3()", "").WithLocation(10, 9), // (11,9): warning CS0612: 'Test.ObsoleteMethod5()' is obsolete // ObsoleteMethod5(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteMethod5()").WithArguments("Test.ObsoleteMethod5()").WithLocation(11, 9), // (15,9): warning CS0618: 'Test.ObsoleteMethod4()' is obsolete: 'Do not call this method' // t.ObsoleteMethod4(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4()").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").WithLocation(15, 9), // (16,17): warning CS0618: 'Test.field1' is obsolete: 'Do not use this field' // var f = t.field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.field1").WithArguments("Test.field1", "Do not use this field").WithLocation(16, 17), // (17,18): warning CS0618: 'Test.Property1' is obsolete: 'Do not use this property' // var p1 = t.Property1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.Property1").WithArguments("Test.Property1", "Do not use this property").WithLocation(17, 18), // (18,18): warning CS0618: 'Test.Property2' is obsolete: 'Do not use this property' // var p2 = t.Property2; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.Property2").WithArguments("Test.Property2", "Do not use this property").WithLocation(18, 18), // (20,18): warning CS0612: 'Test.Prop2.get' is obsolete // var p3 = t.Prop2; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop2").WithArguments("Test.Prop2.get").WithLocation(20, 18), // (24,9): warning CS0612: 'Test.Prop3.set' is obsolete // t.Prop3 = p4; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop3").WithArguments("Test.Prop3.set").WithLocation(24, 9), // (26,18): warning CS0612: 'Test.Prop4.get' is obsolete // var p5 = t.Prop4; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop4").WithArguments("Test.Prop4.get").WithLocation(26, 18), // (27,9): warning CS0612: 'Test.Prop4.set' is obsolete // t.Prop4 = p5; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop4").WithArguments("Test.Prop4.set").WithLocation(27, 9), // (32,9): warning CS0618: 'TestExtension.ObsoleteExtensionMethod1(Test)' is obsolete: 'Do not call this extension method' // t.ObsoleteExtensionMethod1(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteExtensionMethod1()").WithArguments("TestExtension.ObsoleteExtensionMethod1(Test)", "Do not call this extension method").WithLocation(32, 9), // (34,28): warning CS0618: 'Test.ObsoleteMethod4(int)' is obsolete: 'Do not call this method' // Action<int> func = t.ObsoleteMethod4; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4(int)", "Do not call this method").WithLocation(34, 28), // (36,24): warning CS0618: 'Test.ObsoleteMethod4()' is obsolete: 'Do not call this method' // Action func1 = t.ObsoleteMethod4; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").WithLocation(36, 24), // (38,30): warning CS0618: 'Test.Property1' is obsolete: 'Do not use this property' // Test t1 = new Test { Property1 = 10, Property2 =20}; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Property1").WithArguments("Test.Property1", "Do not use this property").WithLocation(38, 30), // (38,46): warning CS0618: 'Test.Property2' is obsolete: 'Do not use this property' // Test t1 = new Test { Property1 = 10, Property2 =20}; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Property2").WithArguments("Test.Property2", "Do not use this property").WithLocation(38, 46), // (39,18): warning CS0612: 'Test.this[int]' is obsolete // var i1 = t1[10]; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t1[10]").WithArguments("Test.this[int]").WithLocation(39, 18), // (42,9): warning CS0612: 'GenericTest<int>.ObsoleteMethod1<U>()' is obsolete // gt.ObsoleteMethod1<double>(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "gt.ObsoleteMethod1<double>()").WithArguments("GenericTest<int>.ObsoleteMethod1<U>()").WithLocation(42, 9), // (43,18): warning CS0618: 'GenericTest<int>.field1' is obsolete: 'Do not use this field' // var gf = gt.field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.field1").WithArguments("GenericTest<int>.field1", "Do not use this field").WithLocation(43, 18), // (44,19): warning CS0618: 'GenericTest<int>.Property1' is obsolete: 'Do not use this property' // var gp1 = gt.Property1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.Property1").WithArguments("GenericTest<int>.Property1", "Do not use this property").WithLocation(44, 19), // (30,9): warning CS0618: 'Test.event1' is obsolete: 'Do not use this event' // t.event1 += () => { }; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.event1").WithArguments("Test.event1", "Do not use this event").WithLocation(30, 9), // (45,9): warning CS0618: 'GenericTest<int>.event1' is obsolete: 'Do not use this event' // gt.event1 += (i) => { }; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.event1").WithArguments("GenericTest<int>.event1", "Do not use this event").WithLocation(45, 9), // (121,28): warning CS0067: The event 'GenericTest<T>.event1' is never used // public event Action<T> event1; Diagnostic(ErrorCode.WRN_UnreferencedEvent, "event1").WithArguments("GenericTest<T>.event1").WithLocation(121, 28)); } [Fact] public void TestObsoleteAttributeOnOperators() { var source = @" using System; public class Test { public static void Main() { Test t = new Test(); t = 10; t = (Test)""10""; Test c = new Test(); Test c1 = -c; Test c2 = c++; bool b1 = c? true: false; if (c && c1) { c1 += c; } } [Obsolete] static public implicit operator Test(int value) { return new Test(); } [Obsolete] static public explicit operator Test(string value) { return new Test(); } [Obsolete] static public Test operator -(Test x) { return new Test(); } [Obsolete] static public Test operator ++(Test x) { return new Test(); } [Obsolete] static public bool operator true(Test x) { return true; } [Obsolete] static public bool operator false(Test x) { return false; } [Obsolete] static public Test operator +(Test x, Test y) { return new Test(); } [Obsolete] static public Test operator &(Test x, Test x2) { return new Test(); } } "; CreateCompilation(source).VerifyDiagnostics( // (27,13): warning CS0612: 'Test.implicit operator Test(int)' is obsolete // t = 10; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "10").WithArguments("Test.implicit operator Test(int)"), // (28,13): warning CS0612: 'Test.explicit operator Test(string)' is obsolete // t = (Test)"10"; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, @"(Test)""10""").WithArguments("Test.explicit operator Test(string)"), // (13,19): warning CS0612: 'Test.operator -(Test)' is obsolete // Test c1 = -c; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "-c").WithArguments("Test.operator -(Test)"), // (14,19): warning CS0612: 'Test.operator ++(Test)' is obsolete // Test c2 = c++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c++").WithArguments("Test.operator ++(Test)"), // (15,19): warning CS0612: 'Test.operator true(Test)' is obsolete // bool b1 = c? true: false; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c").WithArguments("Test.operator true(Test)"), // (16,13): warning CS0612: 'Test.operator &(Test, Test)' is obsolete // if (c && c1) Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c && c1").WithArguments("Test.operator &(Test, Test)"), // (16,13): warning CS0612: 'Test.operator true(Test)' is obsolete // if (c && c1) Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c && c1").WithArguments("Test.operator true(Test)"), // (18,11): warning CS0612: 'Test.operator +(Test, Test)' is obsolete // c1 += c; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c1 += c").WithArguments("Test.operator +(Test, Test)")); } [Fact, WorkItem(546062, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546062")] public void TestObsoleteAttributeInMetadata() { var peSource = @" using System; [Obsolete] public class TestClass1 {} [Obsolete(""TestClass2 is obsolete"")] public class TestClass2 {} [Obsolete(""Do not use TestClass3"", true)] public class TestClass3 {} [Obsolete(""TestClass4 is obsolete"", false)] public class TestClass4 {} public class TestClass { [Obsolete(""Do not use TestMethod"")] public void TestMethod() {} [Obsolete(""Do not use Prop1"", false)] public int Prop1 { get; set; } public int Prop2 { [Obsolete(""Do not use Prop2.Get"")] get; set; } public int Prop3 { get; [Obsolete(""Do not use Prop3.Get"", true)] set; } [Obsolete(""Do not use field1"", true)] public TestClass field1; [Obsolete(""Do not use event"", true)] public Action event1; } "; var peReference = MetadataReference.CreateFromStream(CreateCompilation(peSource).EmitToStream()); var source = @" public class Test { public static void goo1(TestClass1 c) {} public static void goo2(TestClass2 c) {} public static void goo3(TestClass3 c) {} public static void goo4(TestClass4 c) {} public static void Main() { TestClass c = new TestClass(); c.TestMethod(); var i = c.Prop1; c = c.field1; c.event1(); c.event1 += () => {}; c.Prop2 = 42; i = c.Prop2; c.Prop3 = 42; i = c.Prop3; } } "; CreateCompilation(source, new[] { peReference }).VerifyDiagnostics( // (5,29): warning CS0618: 'TestClass2' is obsolete: 'TestClass2 is obsolete' // public static void goo2(TestClass2 c) {} Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestClass2").WithArguments("TestClass2", "TestClass2 is obsolete").WithLocation(5, 29), // (6,29): error CS0619: 'TestClass3' is obsolete: 'Do not use TestClass3' // public static void goo3(TestClass3 c) {} Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "TestClass3").WithArguments("TestClass3", "Do not use TestClass3").WithLocation(6, 29), // (7,29): warning CS0618: 'TestClass4' is obsolete: 'TestClass4 is obsolete' // public static void goo4(TestClass4 c) {} Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestClass4").WithArguments("TestClass4", "TestClass4 is obsolete").WithLocation(7, 29), // (4,29): warning CS0612: 'TestClass1' is obsolete // public static void goo1(TestClass1 c) {} Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "TestClass1").WithArguments("TestClass1").WithLocation(4, 29), // (12,9): warning CS0618: 'TestClass.TestMethod()' is obsolete: 'Do not use TestMethod' // c.TestMethod(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.TestMethod()").WithArguments("TestClass.TestMethod()", "Do not use TestMethod").WithLocation(12, 9), // (13,17): warning CS0618: 'TestClass.Prop1' is obsolete: 'Do not use Prop1' // var i = c.Prop1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.Prop1").WithArguments("TestClass.Prop1", "Do not use Prop1").WithLocation(13, 17), // (14,13): error CS0619: 'TestClass.field1' is obsolete: 'Do not use field1' // c = c.field1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.field1").WithArguments("TestClass.field1", "Do not use field1").WithLocation(14, 13), // (15,9): error CS0619: 'TestClass.event1' is obsolete: 'Do not use event' // c.event1(); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.event1").WithArguments("TestClass.event1", "Do not use event").WithLocation(15, 9), // (16,9): error CS0619: 'TestClass.event1' is obsolete: 'Do not use event' // c.event1 += () => {}; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.event1").WithArguments("TestClass.event1", "Do not use event").WithLocation(16, 9), // (18,13): warning CS0618: 'TestClass.Prop2.get' is obsolete: 'Do not use Prop2.Get' // i = c.Prop2; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.Prop2").WithArguments("TestClass.Prop2.get", "Do not use Prop2.Get").WithLocation(18, 13), // (19,9): error CS0619: 'TestClass.Prop3.set' is obsolete: 'Do not use Prop3.Get' // c.Prop3 = 42; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.Prop3").WithArguments("TestClass.Prop3.set", "Do not use Prop3.Get").WithLocation(19, 9)); } [Fact] public void TestObsoleteAttributeOnOverriddenMembers() { var source = @" using System; class C1 { public virtual void goo() {} } class C2 : C1 { [Obsolete] public override void goo() {} } class C3 : C1 { [Obsolete] public new void goo() {} } class C4 : C1 { public override void goo() {} } class C5 : C4 { [Obsolete] public override void goo() {} } class C6 : C5 { public override void goo() {} } class D1 { [Obsolete] public virtual void goo() {} } class D2 : D1 { public override void goo() {} } class D3 : D1 { public new void goo() {} } class D4 : D1 { [Obsolete] public override void goo() {} } class D5 : D4 { public override void goo() {} } class D6 : D5 { [Obsolete] public override void goo() {} } class E1 { public virtual int Goo {get; set;} } class E2 : E1 { public override int Goo { [Obsolete] get; set;} } class E3 : E1 { public new int Goo { [Obsolete] get; set;} } class E4 : E1 { public override int Goo {get; set;} } class E5 : E4 { public override int Goo { [Obsolete] get; set;} } class E6 : E5 { public override int Goo {get; set;} } class F1 { public virtual int Goo { [Obsolete] get; set;} } class F2 : F1 { public override int Goo {get; set;} } class F3 : F1 { public new int Goo {get; set;} } class F4 : F1 { public override int Goo { [Obsolete] get; set;} } class F5 : F4 { public override int Goo {get; set;} } class F6 : F5 { public override int Goo { [Obsolete] get; set;} } "; CreateCompilation(source).VerifyDiagnostics( // (10,26): warning CS0809: Obsolete member 'C2.goo()' overrides non-obsolete member 'C1.goo()' // public override void goo() {} Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "goo").WithArguments("C2.goo()", "C1.goo()").WithLocation(10, 26), // (90,30): warning CS0672: Member 'F2.Goo.get' overrides obsolete member 'F1.Goo.get'. Add the Obsolete attribute to 'F2.Goo.get'. // public override int Goo {get; set;} Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("F2.Goo.get", "F1.Goo.get").WithLocation(90, 30), // (77,42): warning CS0809: Obsolete member 'E5.Goo.get' overrides non-obsolete member 'E1.Goo.get' // public override int Goo { [Obsolete] get; set;} Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("E5.Goo.get", "E1.Goo.get").WithLocation(77, 42), // (51,26): warning CS0672: Member 'D5.goo()' overrides obsolete member 'D1.goo()'. Add the Obsolete attribute to 'D5.goo()'. // public override void goo() {} Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "goo").WithArguments("D5.goo()", "D1.goo()").WithLocation(51, 26), // (38,26): warning CS0672: Member 'D2.goo()' overrides obsolete member 'D1.goo()'. Add the Obsolete attribute to 'D2.goo()'. // public override void goo() {} Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "goo").WithArguments("D2.goo()", "D1.goo()").WithLocation(38, 26), // (24,26): warning CS0809: Obsolete member 'C5.goo()' overrides non-obsolete member 'C1.goo()' // public override void goo() {} Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "goo").WithArguments("C5.goo()", "C1.goo()").WithLocation(24, 26), // (102,30): warning CS0672: Member 'F5.Goo.get' overrides obsolete member 'F1.Goo.get'. Add the Obsolete attribute to 'F5.Goo.get'. // public override int Goo {get; set;} Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("F5.Goo.get", "F1.Goo.get").WithLocation(102, 30), // (65,42): warning CS0809: Obsolete member 'E2.Goo.get' overrides non-obsolete member 'E1.Goo.get' // public override int Goo { [Obsolete] get; set;} Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("E2.Goo.get", "E1.Goo.get").WithLocation(65, 42)); } [Fact] public void TestConsumptionOfObsoleteAttributeOnOverriddenAccessors() { var source = @" using System; class Base { public virtual int Boo { [Obsolete] get; set;} public virtual int Goo { get; set; } public virtual int Hoo { [Obsolete(""Base.Hoo is Obsolete"", true)] get; set; } public virtual int Joo { [Obsolete(""Base.Joo is Obsolete"", false)] get; set; } [Obsolete(""Base.Koo is Obsolete"")] public virtual int Koo { get; set; } } class Derived : Base { public override int Boo { get; set; } public override int Goo { [Obsolete] get; set; } public override int Hoo { [Obsolete(""Derived.Hoo is Obsolete"", false)] get; set; } public override int Joo { [Obsolete(""Derived.Joo is Obsolete"", true)] get; set; } public override int Koo { [Obsolete(""Derived.Koo is Obsolete"")] get; set; } } public class Program { public void Main() { var derived = new Derived(); _ = derived.Boo; _ = derived.Goo; _ = derived.Hoo; _ = derived.Joo; _ = derived.Koo; } } "; CreateCompilation(source).VerifyDiagnostics( // (14,31): warning CS0672: Member 'Derived.Boo.get' overrides obsolete member 'Base.Boo.get'. Add the Obsolete attribute to 'Derived.Boo.get'. // public override int Boo { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("Derived.Boo.get", "Base.Boo.get").WithLocation(14, 31), // (15,42): warning CS0809: Obsolete member 'Derived.Goo.get' overrides non-obsolete member 'Base.Goo.get' // public override int Goo { [Obsolete] get; set; } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("Derived.Goo.get", "Base.Goo.get").WithLocation(15, 42), // (18,25): warning CS0672: Member 'Derived.Koo' overrides obsolete member 'Base.Koo'. Add the Obsolete attribute to 'Derived.Koo'. // public override int Koo { [Obsolete("Derived.Koo is Obsolete")] get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "Koo").WithArguments("Derived.Koo", "Base.Koo").WithLocation(18, 25), // (18,69): warning CS0809: Obsolete member 'Derived.Koo.get' overrides non-obsolete member 'Base.Koo.get' // public override int Koo { [Obsolete("Derived.Koo is Obsolete")] get; set; } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("Derived.Koo.get", "Base.Koo.get").WithLocation(18, 69), // (26,7): warning CS0612: 'Base.Boo.get' is obsolete // _ = derived.Boo; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "derived.Boo").WithArguments("Base.Boo.get").WithLocation(26, 7), // (28,13): error CS0619: 'Base.Hoo.get' is obsolete: 'Base.Hoo is Obsolete' // _ = derived.Hoo; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "derived.Hoo").WithArguments("Base.Hoo.get", "Base.Hoo is Obsolete").WithLocation(28, 13), // (29,13): warning CS0618: 'Base.Joo.get' is obsolete: 'Base.Joo is Obsolete' // _ = derived.Joo; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "derived.Joo").WithArguments("Base.Joo.get", "Base.Joo is Obsolete").WithLocation(29, 13), // (30,13): warning CS0618: 'Base.Koo' is obsolete: 'Base.Koo is Obsolete' // _ = derived.Koo; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "derived.Koo").WithArguments("Base.Koo", "Base.Koo is Obsolete").WithLocation(30, 13)); } [Fact] public void TestObsoleteAttributeCycles() { var source = @" using System; public class Test { [Obsolete(""F1 is obsolete"")] [SomeAttr(F1)] public const int F1 = 10; [Obsolete(""F2 is obsolete"", true)] [SomeAttr(F3)] public const int F2 = 10; [Obsolete(""F3 is obsolete"")] [SomeAttr(F2)] public const int F3 = 10; [Obsolete(F4, true)] public const string F4 = ""blah""; [Obsolete(F5)] public string F5 = ""blah""; [Obsolete(P1, true)] public string P1 { get { return ""blah""; } } [Obsolete] [SomeAttr(P2, true)] public string P2 { get { return ""blah""; } } [Obsolete(Method1)] public void Method1() {} [Obsolete()] [SomeAttr1(Method2)] public void Method2() {} [Obsolete(F6)] [SomeAttr(F6)] [SomeAttr(F7)] public const string F6 = ""F6 is obsolete""; [Obsolete(F7, true)] [SomeAttr(F6)] [SomeAttr(F7)] public const string F7 = ""F7 is obsolete""; } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class SomeAttr: Attribute { public SomeAttr(int x) {} public SomeAttr(string x) {} } public class SomeAttr1: Attribute { public SomeAttr1(Action x) {} } "; CreateCompilation(source).VerifyDiagnostics( // (7,15): warning CS0618: 'Test.F1' is obsolete: 'F1 is obsolete' // [SomeAttr(F1)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F1").WithArguments("Test.F1", "F1 is obsolete").WithLocation(7, 15), // (15,15): error CS0619: 'Test.F2' is obsolete: 'F2 is obsolete' // [SomeAttr(F2)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F2").WithArguments("Test.F2", "F2 is obsolete").WithLocation(15, 15), // (11,15): warning CS0618: 'Test.F3' is obsolete: 'F3 is obsolete' // [SomeAttr(F3)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F3").WithArguments("Test.F3", "F3 is obsolete").WithLocation(11, 15), // (18,15): error CS0619: 'Test.F4' is obsolete: 'blah' // [Obsolete(F4, true)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F4").WithArguments("Test.F4", "blah").WithLocation(18, 15), // (21,15): error CS0120: An object reference is required for the non-static field, method, or property 'Test.F5' // [Obsolete(F5)] Diagnostic(ErrorCode.ERR_ObjectRequired, "F5").WithArguments("Test.F5").WithLocation(21, 15), // (24,15): error CS0120: An object reference is required for the non-static field, method, or property 'Test.P1' // [Obsolete(P1, true)] Diagnostic(ErrorCode.ERR_ObjectRequired, "P1").WithArguments("Test.P1").WithLocation(24, 15), // (28,15): warning CS0612: 'Test.P2' is obsolete // [SomeAttr(P2, true)] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "P2").WithArguments("Test.P2").WithLocation(28, 15), // (28,15): error CS0120: An object reference is required for the non-static field, method, or property 'Test.P2' // [SomeAttr(P2, true)] Diagnostic(ErrorCode.ERR_ObjectRequired, "P2").WithArguments("Test.P2").WithLocation(28, 15), // (28,6): error CS1729: 'SomeAttr' does not contain a constructor that takes 2 arguments // [SomeAttr(P2, true)] Diagnostic(ErrorCode.ERR_BadCtorArgCount, "SomeAttr(P2, true)").WithArguments("SomeAttr", "2").WithLocation(28, 6), // (31,15): error CS1503: Argument 1: cannot convert from 'method group' to 'string' // [Obsolete(Method1)] Diagnostic(ErrorCode.ERR_BadArgType, "Method1").WithArguments("1", "method group", "string").WithLocation(31, 15), // (35,16): warning CS0612: 'Test.Method2()' is obsolete // [SomeAttr1(Method2)] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Method2").WithArguments("Test.Method2()").WithLocation(35, 16), // (35,6): error CS0181: Attribute constructor parameter 'x' has type 'Action', which is not a valid attribute parameter type // [SomeAttr1(Method2)] Diagnostic(ErrorCode.ERR_BadAttributeParamType, "SomeAttr1").WithArguments("x", "System.Action").WithLocation(35, 6), // (43,15): error CS0619: 'Test.F7' is obsolete: 'F7 is obsolete' // [Obsolete(F7, true)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(43, 15), // (44,15): warning CS0618: 'Test.F6' is obsolete: 'F6 is obsolete' // [SomeAttr(F6)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(44, 15), // (45,15): error CS0619: 'Test.F7' is obsolete: 'F7 is obsolete' // [SomeAttr(F7)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(45, 15), // (38,15): warning CS0618: 'Test.F6' is obsolete: 'F6 is obsolete' // [Obsolete(F6)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(38, 15), // (39,15): warning CS0618: 'Test.F6' is obsolete: 'F6 is obsolete' // [SomeAttr(F6)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(39, 15), // (40,15): error CS0619: 'Test.F7' is obsolete: 'F7 is obsolete' // [SomeAttr(F7)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(40, 15)); } [WorkItem(546064, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546064")] [Fact] public void TestObsoleteAttributeCycles_02() { var source = @" [Goo] class Goo: Base {} [Goo] class Base: System.Attribute { public class Nested: Goo {} } "; CompileAndVerify(source); source = @" using System; [Obsolete] public class SomeType { public static SomeType Instance; public const string Message = ""goo""; } public class SomeAttr : Attribute { public SomeAttr(string message) {} } [Obsolete(SomeType.Message)] public class Derived : Base { } public class Base { [Obsolete(SomeType.Message)] public SomeType SomeProp { get; set; } } "; CreateCompilation(source, null, TestOptions.ReleaseDll.WithConcurrentBuild(false)).VerifyDiagnostics( // (23,15): warning CS0612: 'SomeType' is obsolete // [Obsolete(SomeType.Message)] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "SomeType").WithArguments("SomeType")); } [Fact] public void TestObsoleteAttributeSuppress() { var source = @" using System; [Obsolete] public class SomeType { public static SomeType Instance; public const string Message = ""goo""; } public class Test { [Obsolete] SomeType someField = SomeType.Instance; [Obsolete] Func<SomeType> someFuncField = () => new SomeType(); [Obsolete] event Action<SomeType> someEvent; [Obsolete] public static SomeType someProp { get => new SomeType(); set {} } public static string someProp2 { [Obsolete] get => new SomeType().ToString(); } public static SomeType someProp3 { [Obsolete] get => new SomeType(); } [Obsolete] SomeType this[int x] { get { SomeType y = new SomeType(); return y; } } [Obsolete] SomeType goo(SomeType x) { SomeType y = new SomeType(); return x; } [Obsolete] Test(SomeType x) { SomeType y = new SomeType(); } } [Obsolete] public class Base<T> {} [Obsolete] public class Derived : Base<Base<int>> {} "; CreateCompilation(source).VerifyDiagnostics( // (27,19): warning CS0612: 'SomeType' is obsolete // public static SomeType someProp3 { [Obsolete] get => new SomeType(); } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "SomeType").WithArguments("SomeType").WithLocation(27, 19), // (20,28): warning CS0067: The event 'Test.someEvent' is never used // event Action<SomeType> someEvent; Diagnostic(ErrorCode.WRN_UnreferencedEvent, "someEvent").WithArguments("Test.someEvent").WithLocation(20, 28)); } [Fact] public void TestNestedTypeMember() { var source = @" using System; using System.Diagnostics; [Conditional(Nested.ConstStr)] [Outer] // this attribute should not be emitted class Outer: Attribute { class Nested { public const string ConstStr = ""str""; } } "; CreateCompilation(source).VerifyDiagnostics(); } [Fact] public void TestObsoleteAttributeP2PReference() { string s = @" using System; [Obsolete] public class C { [Obsolete] public void Goo() {} } "; var other = CreateCompilation(s); s = @" public class A { protected A(C o) { o.Goo(); } } "; CreateCompilation(s, new[] { new CSharpCompilationReference(other) }).VerifyDiagnostics( // (3,17): warning CS0612: 'C' is obsolete // protected A(C o) Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "C").WithArguments("C"), // (5,9): warning CS0612: 'C.Goo()' is obsolete // o.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "o.Goo()").WithArguments("C.Goo()")); } [Fact] [WorkItem(546455, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546455"), WorkItem(546456, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546456"), WorkItem(546457, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546457")] public void TestObsoleteAttributeOnCollectionInitializer() { var source = @" using System; using System.Collections; class Test { public static void Main() { B coll = new B { 1, new B(), ""a"", false }; } } public class B : IEnumerable { [Obsolete()] public void Add(long i) { } [Obsolete(""Don't use this overload"")] public void Add(B i) { } [Obsolete(""Don't use this overload"", true)] public void Add(string s) { } [Obsolete(null, true)] public void Add(bool s) { } IEnumerator IEnumerable.GetEnumerator() { return null; } } "; CreateCompilation(source).VerifyDiagnostics( // (9,26): warning CS1064: The best overloaded Add method 'B.Add(long)' for the collection initializer element is obsolete. // B coll = new B { 1, new B(), "a", false }; Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "1").WithArguments("B.Add(long)"), // (9,29): warning CS1062: The best overloaded Add method 'B.Add(B)' for the collection initializer element is obsolete. Don't use this overload // B coll = new B { 1, new B(), "a", false }; Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAddStr, "new B()").WithArguments("B.Add(B)", "Don't use this overload"), // (9,38): error CS1063: The best overloaded Add method 'B.Add(string)' for the collection initializer element is obsolete. Don't use this overload // B coll = new B { 1, new B(), "a", false }; Diagnostic(ErrorCode.ERR_DeprecatedCollectionInitAddStr, @"""a""").WithArguments("B.Add(string)", "Don't use this overload"), // (9,43): warning CS1064: The best overloaded Add method 'B.Add(bool)' for the collection initializer element is obsolete. // B coll = new B { 1, new B(), "a", false }; Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "false").WithArguments("B.Add(bool)")); } [Fact] [WorkItem(546636, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546636")] public void TestObsoleteAttributeOnAttributes() { var source = @" using System; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class Att : Attribute { [Obsolete(""Constructor"", true)] public Att() { } [Obsolete(""Property"", true)] public int Prop { get { return 1; } set { } } [Obsolete(""Property"", true)] public int Prop2 { get; set; } public int Prop3 { get; [Obsolete(""setter"", true)]set; } [Obsolete(""Property"", true)] public int Prop4 { get; [Obsolete(""setter"", true)]set; } public int Prop5 { [Obsolete(""setter"", true)]get; set; } [Obsolete(""Field"", true)] public int Field; } [Att] [Att(Field = 1)] [Att(Prop = 1)] [Att(Prop2 = 1)] [Att(Prop3 = 1)] [Att(Prop4 = 1)] [Att(Prop5 = 1)] public class Test { [Att()] public static void Main() { } } "; CreateCompilation(source).VerifyDiagnostics( // (37,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att").WithArguments("Att.Att()", "Constructor").WithLocation(37, 2), // (38,6): error CS0619: 'Att.Field' is obsolete: 'Field' // [Att(Field = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Field = 1").WithArguments("Att.Field", "Field").WithLocation(38, 6), // (38,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Field = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Field = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(38, 2), // (39,6): error CS0619: 'Att.Prop' is obsolete: 'Property' // [Att(Prop = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop = 1").WithArguments("Att.Prop", "Property").WithLocation(39, 6), // (39,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(39, 2), // (40,6): error CS0619: 'Att.Prop2' is obsolete: 'Property' // [Att(Prop2 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop2 = 1").WithArguments("Att.Prop2", "Property").WithLocation(40, 6), // (40,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop2 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop2 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(40, 2), // (41,6): error CS0619: 'Att.Prop3.set' is obsolete: 'setter' // [Att(Prop3 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop3 = 1").WithArguments("Att.Prop3.set", "setter").WithLocation(41, 6), // (41,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop3 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop3 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(41, 2), // (42,6): error CS0619: 'Att.Prop4' is obsolete: 'Property' // [Att(Prop4 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop4 = 1").WithArguments("Att.Prop4", "Property").WithLocation(42, 6), // (42,6): error CS0619: 'Att.Prop4.set' is obsolete: 'setter' // [Att(Prop4 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop4 = 1").WithArguments("Att.Prop4.set", "setter").WithLocation(42, 6), // (42,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop4 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop4 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(42, 2), // (43,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop5 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop5 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(43, 2), // (46,6): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att()] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att()").WithArguments("Att.Att()", "Constructor").WithLocation(46, 6)); } [Fact] public void TestOverriddenObsoleteSetterOnAttributes() { var source = @" using System; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class BaseAtt : Attribute { public virtual int Prop { get { return 1; } [Obsolete(""setter"", true)] set { } } public virtual int Prop1 { get { return 1; } [Obsolete(""setter"", true)] set { } } public virtual int Prop2 { get { return 1; } [Obsolete(""base setter"", true)] set { } } public virtual int Prop3 { get { return 1; } set { } } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class DerivedAtt : BaseAtt { public override int Prop { get { return 1; } } public override int Prop1 { get { return 1; } set { } } public override int Prop2 { get { return 1; } [Obsolete(""derived setter"", true)] set { } } public override int Prop3 { get { return 1; } [Obsolete(""setter"", true)] set { } } } [DerivedAtt(Prop = 1)] [DerivedAtt(Prop1 = 1)] [DerivedAtt(Prop2 = 1)] [DerivedAtt(Prop3 = 1)] public class Test { public static void Main() { } } "; CreateCompilation(source).VerifyDiagnostics( // (43,9): warning CS0672: Member 'DerivedAtt.Prop1.set' overrides obsolete member 'BaseAtt.Prop1.set'. Add the Obsolete attribute to 'DerivedAtt.Prop1.set'. // set { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "set").WithArguments("DerivedAtt.Prop1.set", "BaseAtt.Prop1.set").WithLocation(43, 9), // (55,36): warning CS0809: Obsolete member 'DerivedAtt.Prop3.set' overrides non-obsolete member 'BaseAtt.Prop3.set' // [Obsolete("setter", true)] set { } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "set").WithArguments("DerivedAtt.Prop3.set", "BaseAtt.Prop3.set").WithLocation(55, 36), // (59,13): error CS0619: 'BaseAtt.Prop.set' is obsolete: 'setter' // [DerivedAtt(Prop = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop = 1").WithArguments("BaseAtt.Prop.set", "setter").WithLocation(59, 13), // (60,13): error CS0619: 'BaseAtt.Prop1.set' is obsolete: 'setter' // [DerivedAtt(Prop1 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop1 = 1").WithArguments("BaseAtt.Prop1.set", "setter").WithLocation(60, 13), // (61,13): error CS0619: 'BaseAtt.Prop2.set' is obsolete: 'base setter' // [DerivedAtt(Prop2 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop2 = 1").WithArguments("BaseAtt.Prop2.set", "base setter").WithLocation(61, 13)); } [Fact] public void TestObsoleteAttributeOnIndexerAccessors() { var source = @" using System; class C1 { public int this[int index] { [Obsolete] get => 1; set {} } } class C2 { public int this[int index] { get => 1; [Obsolete] set {} } } public class Program { public void Main() { var c1 = new C1(); c1[0] = c1[0]; var c2 = new C2(); c2[0] = c2[0]; } } "; CreateCompilation(source).VerifyDiagnostics( // (19,17): warning CS0612: 'C1.this[int].get' is obsolete // c1[0] = c1[0]; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c1[0]").WithArguments("C1.this[int].get").WithLocation(19, 17), // (21,9): warning CS0612: 'C2.this[int].set' is obsolete // c2[0] = c2[0]; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c2[0]").WithArguments("C2.this[int].set").WithLocation(21, 9)); } [Fact] public void TestObsoleteAttributeOnMembers2() { var source = @" using System; namespace A.B { [Obsolete] public class C { [Obsolete] public static int Field1 = 10; [Obsolete] public class D { [Obsolete] public static int Field2 = 20; } } [Obsolete] public class C1 { public class D { } } [Obsolete] public class C2<T> { [Obsolete] public static int Field1 = 10; public class D { } [Obsolete] public class E<U> { } } } class B<T> { } class D : B<A.B.C1.D> { } class D1 : B<A.B.C2<int>.D> { } class Program { static void Main(string[] args) { var x = A.B.C.Field1; var x1 = A.B.C.D.Field2; var y = new A.B.C1.D(); var y1 = new A.B.C2<int>.D(); var y2 = A.B.C2<int>.Field1; var y3 = new A.B.C2<int>.E<int>(); } } "; CreateCompilation(source).VerifyDiagnostics( // (42,13): warning CS0612: 'A.B.C1' is obsolete // class D : B<A.B.C1.D> { } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C1").WithArguments("A.B.C1"), // (43,14): warning CS0612: 'A.B.C2<int>' is obsolete // class D1 : B<A.B.C2<int>.D> { } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>").WithArguments("A.B.C2<int>"), // (49,17): warning CS0612: 'A.B.C' is obsolete // var x = A.B.C.Field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C").WithArguments("A.B.C"), // (49,17): warning CS0612: 'A.B.C.Field1' is obsolete // var x = A.B.C.Field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C.Field1").WithArguments("A.B.C.Field1"), // (50,18): warning CS0612: 'A.B.C' is obsolete // var x1 = A.B.C.D.Field2; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C").WithArguments("A.B.C"), // (50,18): warning CS0612: 'A.B.C.D' is obsolete // var x1 = A.B.C.D.Field2; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C.D").WithArguments("A.B.C.D"), // (50,18): warning CS0612: 'A.B.C.D.Field2' is obsolete // var x1 = A.B.C.D.Field2; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C.D.Field2").WithArguments("A.B.C.D.Field2"), // (51,21): warning CS0612: 'A.B.C1' is obsolete // var y = new A.B.C1.D(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C1").WithArguments("A.B.C1"), // (52,22): warning CS0612: 'A.B.C2<int>' is obsolete // var y1 = new A.B.C2<int>.D(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>").WithArguments("A.B.C2<int>"), // (53,18): warning CS0612: 'A.B.C2<int>' is obsolete // var y2 = A.B.C2<int>.Field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>").WithArguments("A.B.C2<int>"), // (53,18): warning CS0612: 'A.B.C2<int>.Field1' is obsolete // var y2 = A.B.C2<int>.Field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>.Field1").WithArguments("A.B.C2<int>.Field1"), // (54,22): warning CS0612: 'A.B.C2<int>' is obsolete // var y3 = new A.B.C2<int>.E<int>(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>").WithArguments("A.B.C2<int>"), // (54,22): warning CS0612: 'A.B.C2<int>.E<int>' is obsolete // var y3 = new A.B.C2<int>.E<int>(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>.E<int>").WithArguments("A.B.C2<int>.E<int>")); } [Fact] [WorkItem(546766, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546766")] public void TestObsoleteAttributeOnMembers3() { var source = @" using System; class C { [Obsolete(""Do not use"", true)] public C() { } } class D : C { public D() { } } class E : C { public E() : base() { } } class Event1 { [Obsolete(""Do not use"")] public event Action A; [field:Obsolete(""Do not use"")] public event Action A1; public void Test() { A(); A1(); A += () => {}; A1 += () => {}; } public static void Test1() { var e = new Event1(); e.A(); e.A1(); e.A += () => {}; e.A1 += () => {}; } } "; CreateCompilation(source).VerifyDiagnostics( // (11,5): error CS0619: 'C.C()' is obsolete: 'Do not use' // public D() { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "public D() { }").WithArguments("C.C()", "Do not use"), // (15,16): error CS0619: 'C.C()' is obsolete: 'Do not use' // public E() : base() { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, ": base()").WithArguments("C.C()", "Do not use"), // (29,9): warning CS0618: 'Event1.A1' is obsolete: 'Do not use' // A1(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "A1").WithArguments("Event1.A1", "Do not use"), // (30,9): warning CS0618: 'Event1.A' is obsolete: 'Do not use' // A += () => {}; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "A").WithArguments("Event1.A", "Do not use"), // (38,9): warning CS0618: 'Event1.A1' is obsolete: 'Do not use' // e.A1(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "e.A1").WithArguments("Event1.A1", "Do not use"), // (39,9): warning CS0618: 'Event1.A' is obsolete: 'Do not use' // e.A += () => {}; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "e.A").WithArguments("Event1.A", "Do not use")); } [Fact] [WorkItem(547024, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/547024")] public void TestObsoleteForeachMembers() { var source = @"using System; public class MyEnumerator : IDisposable { [Obsolete(""1"", false)] public bool MoveNext() { return false; } [Obsolete(""2"", false)] public int Current { get { return 0; } } [Obsolete(""3"", false)] public void Dispose() { } } class Foreachable { [Obsolete(""4"", false)] public MyEnumerator GetEnumerator() { return new MyEnumerator(); } } class Program { public static void Main(string[] args) { foreach (var x in new Foreachable()) { } } }"; CreateCompilation(source).VerifyDiagnostics( // (35,9): warning CS0618: 'Foreachable.GetEnumerator()' is obsolete: '4' // foreach (var x in new Foreachable()) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "foreach").WithArguments("Foreachable.GetEnumerator()", "4"), // (35,9): warning CS0618: 'MyEnumerator.MoveNext()' is obsolete: '1' // foreach (var x in new Foreachable()) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "foreach").WithArguments("MyEnumerator.MoveNext()", "1"), // (35,9): warning CS0618: 'MyEnumerator.Current' is obsolete: '2' // foreach (var x in new Foreachable()) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "foreach").WithArguments("MyEnumerator.Current", "2") ); } [Fact] public void TestObsoleteAttributeSuppress2() { var source = @" using System; using X = A; using Y = A.B; [Obsolete(""Do not use"")] class A { public class B { } } [Obsolete] interface I1 { void M(); } #pragma warning disable 612 internal sealed class C1 : I1 #pragma warning restore 612 { void I1.M() {} } "; CreateCompilation(source).VerifyDiagnostics( // (4,1): info CS8019: Unnecessary using directive. // using X = A; Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = A;"), // (5,1): info CS8019: Unnecessary using directive. // using Y = A.B; Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = A.B;")); } [Fact] public void TestObsoleteAndPropertyAccessors() { var source0 = @"using System; namespace Windows.Foundation.Metadata { public sealed class DeprecatedAttribute : Attribute { public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version) { } } public enum DeprecationType { Deprecate = 0, Remove = 1 } }"; var source1 = @"using Windows.Foundation.Metadata; [Deprecated(null, DeprecationType.Deprecate, 0)] class A { } [Deprecated(null, DeprecationType.Deprecate, 0)] class B { } [Deprecated(null, DeprecationType.Deprecate, 0)] class C { } class D { object P { get { return new A(); } } [Deprecated(null, DeprecationType.Deprecate, 0)] object Q { get { return new B(); } } object R { [Deprecated(null, DeprecationType.Deprecate, 0)] get { return new C(); } } }"; var comp = CreateCompilation(new[] { Parse(source0), Parse(source1) }); comp.VerifyDiagnostics( // (7,33): warning CS0612: 'A' is obsolete // object P { get { return new A(); } } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("A").WithLocation(7, 33)); } [Fact] public void TestObsoleteAndEventAccessors() { var source0 = @"using System; namespace Windows.Foundation.Metadata { public sealed class DeprecatedAttribute : Attribute { public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version) { } } public enum DeprecationType { Deprecate = 0, Remove = 1 } }"; var source1 = @"using System; using Windows.Foundation.Metadata; [Deprecated(null, DeprecationType.Deprecate, 0)] class A { } [Deprecated(null, DeprecationType.Deprecate, 0)] class B { } [Deprecated(null, DeprecationType.Deprecate, 0)] class C { } class D { event EventHandler E { add { } remove { M(new A()); } } [Deprecated(null, DeprecationType.Deprecate, 0)] event EventHandler F { add { } remove { M(new B()); } } event EventHandler G { add { } [Deprecated(null, DeprecationType.Deprecate, 0)] remove { M(new C()); } } static void M(object o) { } }"; var comp = CreateCompilation(new[] { Parse(source0), Parse(source1) }); comp.VerifyDiagnostics( // (11,24): warning CS0612: 'A' is obsolete // remove { M(new A()); } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("A").WithLocation(11, 24), // (21,10): error CS8423: Attribute 'Windows.Foundation.Metadata.DeprecatedAttribute' is not valid on event accessors. It is only valid on 'assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations. // [Deprecated(null, DeprecationType.Deprecate, 0)] remove { M(new C()); } Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter").WithLocation(21, 10)); } [Fact] [WorkItem(531071, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531071")] public void TestObsoleteTypeParameterInAlias() { var source = @"using System; public class List<T> { } namespace N { using X = A; using Y = List<A>; using Z = List<A[]>; [Obsolete(""Do not use"", true)] public class A { } public class B : X { } public class C : Y { } public class E : Z { } public class D : List<Y> { public X x; public Y y1; public List<Y> y2; public Z z; } }"; CreateCompilation(source).VerifyDiagnostics( // (12,22): error CS0619: 'A' is obsolete: 'Do not use' // public class E : Z { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Z").WithArguments("N.A", "Do not use").WithLocation(12, 22), // (13,27): error CS0619: 'A' is obsolete: 'Do not use' // public class D : List<Y> Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").WithLocation(13, 27), // (10,22): error CS0619: 'A' is obsolete: 'Do not use' // public class B : X { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "X").WithArguments("N.A", "Do not use").WithLocation(10, 22), // (11,22): error CS0619: 'A' is obsolete: 'Do not use' // public class C : Y { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").WithLocation(11, 22), // (16,16): error CS0619: 'A' is obsolete: 'Do not use' // public Y y1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").WithLocation(16, 16), // (17,21): error CS0619: 'A' is obsolete: 'Do not use' // public List<Y> y2; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").WithLocation(17, 21), // (18,16): error CS0619: 'A' is obsolete: 'Do not use' // public Z z; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Z").WithArguments("N.A", "Do not use").WithLocation(18, 16), // (15,16): error CS0619: 'A' is obsolete: 'Do not use' // public X x; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "X").WithArguments("N.A", "Do not use").WithLocation(15, 16)); } [ConditionalFact(typeof(IsEnglishLocal), Reason = "https://github.com/dotnet/roslyn/issues/28328")] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnBase() { var source = @" using System; public class A { [Obsolete] public virtual event Action E { add { } remove { } } [Obsolete] public virtual int P { get; set; } [Obsolete] public virtual void M() { } } public class B : A { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } } class Test { void M(A a, B b, C c) { a.E += null; a.P++; a.M(); b.E += null; b.P++; b.M(); c.E += null; c.P++; c.M(); } } "; // All member accesses produce obsolete warnings. CreateCompilation(source).VerifyDiagnostics( // (17,25): warning CS0672: Member 'B.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'B.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("B.P", "A.P"), // (18,26): warning CS0672: Member 'B.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'B.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M()", "A.M()"), // (16,34): warning CS0672: Member 'B.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'B.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("B.E", "A.E"), // (24,25): warning CS0672: Member 'C.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'C.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("C.P", "A.P"), // (25,26): warning CS0672: Member 'C.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'C.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("C.M()", "A.M()"), // (23,34): warning CS0672: Member 'C.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'C.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("C.E", "A.E"), // (32,9): warning CS0612: 'A.E' is obsolete // a.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "a.E").WithArguments("A.E"), // (33,9): warning CS0612: 'A.P' is obsolete // a.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "a.P").WithArguments("A.P"), // (34,9): warning CS0612: 'A.M()' is obsolete // a.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "a.M()").WithArguments("A.M()"), // (36,9): warning CS0612: 'A.E' is obsolete // b.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.E").WithArguments("A.E"), // (37,9): warning CS0612: 'A.P' is obsolete // b.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.P").WithArguments("A.P"), // (38,9): warning CS0612: 'A.M()' is obsolete // b.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.M()").WithArguments("A.M()"), // (40,9): warning CS0612: 'A.E' is obsolete // c.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c.E").WithArguments("A.E"), // (41,9): warning CS0612: 'A.P' is obsolete // c.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c.P").WithArguments("A.P"), // (42,9): warning CS0612: 'A.M()' is obsolete // c.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c.M()").WithArguments("A.M()")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnDerived() { var source = @" using System; public class A { public virtual event Action E { add { } remove { } } public virtual int P { get; set; } public virtual void M() { } } public class B : A { [Obsolete] public override event Action E { add { } remove { } } [Obsolete] public override int P { get; set; } [Obsolete] public override void M() { } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } } class Test { void M(A a, B b, C c) { a.E += null; a.P++; a.M(); b.E += null; b.P++; b.M(); c.E += null; c.P++; c.M(); } } "; // No member accesses produce obsolete warnings. CreateCompilation(source).VerifyDiagnostics( // (16,25): warning CS0809: Obsolete member 'B.P' overrides non-obsolete member 'A.P' // public override int P { get; set; } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "P").WithArguments("B.P", "A.P"), // (18,26): warning CS0809: Obsolete member 'B.M()' overrides non-obsolete member 'A.M()' // public override void M() { } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "M").WithArguments("B.M()", "A.M()"), // (14,34): warning CS0809: Obsolete member 'B.E' overrides non-obsolete member 'A.E' // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "E").WithArguments("B.E", "A.E")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_GenericType() { var source = @" using System; public class A<T> { [Obsolete] public virtual void M() { } } public class B : A<int> { public override void M() { } } public class C<T> : A<T> { public override void M() { } } class Test { void M(A<int> a, B b, C<char> c) { a.M(); b.M(); c.M(); } } "; // All member accesses produce obsolete warnings. CreateCompilation(source).VerifyDiagnostics( // (17,26): warning CS0672: Member 'C<T>.M()' overrides obsolete member 'A<T>.M()'. Add the Obsolete attribute to 'C<T>.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("C<T>.M()", "A<T>.M()"), // (12,26): warning CS0672: Member 'B.M()' overrides obsolete member 'A<int>.M()'. Add the Obsolete attribute to 'B.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M()", "A<int>.M()"), // (24,9): warning CS0612: 'A<int>.M()' is obsolete // a.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "a.M()").WithArguments("A<int>.M()"), // (25,9): warning CS0612: 'A<int>.M()' is obsolete // b.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.M()").WithArguments("A<int>.M()"), // (26,9): warning CS0612: 'A<char>.M()' is obsolete // c.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c.M()").WithArguments("A<char>.M()")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_GenericMethod() { var source = @" using System; public class A { [Obsolete] public virtual void M<T>() { } } public class B : A { public override void M<T>() { } } class Test { void M(B b) { b.M<int>(); } } "; // All member accesses produce obsolete warnings. CreateCompilation(source).VerifyDiagnostics( // (12,26): warning CS0672: Member 'B.M<T>()' overrides obsolete member 'A.M<T>()'. Add the Obsolete attribute to 'B.M<T>()'. // public override void M<T>() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M<T>()", "A.M<T>()"), // (19,9): warning CS0612: 'A.M<T>()' is obsolete // b.M<int>(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.M<int>()").WithArguments("A.M<T>()")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnBase_BaseCall() { var source = @" using System; public class A { [Obsolete] public virtual event Action E { add { } remove { } } [Obsolete] public virtual int P { get; set; } [Obsolete] public virtual void M() { } } public class B : A { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } "; // Reported in B.Test and C.Test against members of A. CreateCompilation(source).VerifyDiagnostics( // (17,25): warning CS0672: Member 'B.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'B.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("B.P", "A.P"), // (18,26): warning CS0672: Member 'B.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'B.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M()", "A.M()"), // (16,34): warning CS0672: Member 'B.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'B.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("B.E", "A.E"), // (31,25): warning CS0672: Member 'C.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'C.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("C.P", "A.P"), // (32,26): warning CS0672: Member 'C.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'C.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("C.M()", "A.M()"), // (30,34): warning CS0672: Member 'C.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'C.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("C.E", "A.E"), // (23,9): warning CS0612: 'A.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("A.P"), // (24,9): warning CS0612: 'A.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("A.M()"), // (22,9): warning CS0612: 'A.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("A.E"), // (37,9): warning CS0612: 'A.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("A.P"), // (38,9): warning CS0612: 'A.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("A.M()"), // (36,9): warning CS0612: 'A.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("A.E")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnBaseAndDerived_BaseCall() { var source = @" using System; public class A { [Obsolete] public virtual event Action E { add { } remove { } } [Obsolete] public virtual int P { get; set; } [Obsolete] public virtual void M() { } } public class B : A { [Obsolete] public override event Action E { add { } remove { } } [Obsolete] public override int P { get; set; } [Obsolete] public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } "; // Reported in B.Test and C.Test against members of A (seems like C.Test should report against members of B, // but this is dev11's behavior). CreateCompilation(source).VerifyDiagnostics( // (34,25): warning CS0672: Member 'C.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'C.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("C.P", "A.P"), // (35,26): warning CS0672: Member 'C.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'C.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("C.M()", "A.M()"), // (33,34): warning CS0672: Member 'C.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'C.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("C.E", "A.E"), // (26,9): warning CS0612: 'A.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("A.P"), // (27,9): warning CS0612: 'A.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("A.M()"), // (25,9): warning CS0612: 'A.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("A.E"), // (40,9): warning CS0612: 'A.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("A.P"), // (41,9): warning CS0612: 'A.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("A.M()"), // (39,9): warning CS0612: 'A.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("A.E")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnDerived_BaseCall() { var source = @" using System; public class A { public virtual event Action E { add { } remove { } } public virtual int P { get; set; } public virtual void M() { } } public class B : A { [Obsolete] public override event Action E { add { } remove { } } [Obsolete] public override int P { get; set; } [Obsolete] public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } "; CreateCompilation(source).VerifyDiagnostics( // (16,25): warning CS0809: Obsolete member 'B.P' overrides non-obsolete member 'A.P' // public override int P { get; set; } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "P").WithArguments("B.P", "A.P"), // (18,26): warning CS0809: Obsolete member 'B.M()' overrides non-obsolete member 'A.M()' // public override void M() { } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "M").WithArguments("B.M()", "A.M()"), // (14,34): warning CS0809: Obsolete member 'B.E' overrides non-obsolete member 'A.E' // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "E").WithArguments("B.E", "A.E"), // (37,9): warning CS0612: 'B.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("B.P"), // (38,9): warning CS0612: 'B.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("B.M()"), // (36,9): warning CS0612: 'B.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("B.E")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnDerived_BaseCall2() { var source = @" using System; public class A { public virtual int this[int x] { get { return 0; } set { } } } public class B : A { [Obsolete] public B() { } [Obsolete] public override int this[int x] { get { return 0; } set { } } } public class C : B { public C() { } // Implicit base constructor invocation. public C(int x) : base() { } // Doesn't override anything anyway. private void Test() { base[1]++; } } "; CreateCompilation(source).VerifyDiagnostics( // (15,25): warning CS0809: Obsolete member 'B.this[int]' overrides non-obsolete member 'A.this[int]' // public override int this[int x] { get { return 0; } set { } } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "this").WithArguments("B.this[int]", "A.this[int]"), // (20,5): warning CS0612: 'B.B()' is obsolete // public C() { } // Implicit base constructor invocation. Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "public C() { }").WithArguments("B.B()"), // (21,21): warning CS0612: 'B.B()' is obsolete // public C(int x) : base() { } // Doesn't override anything anyway. Diagnostic(ErrorCode.WRN_DeprecatedSymbol, ": base()").WithArguments("B.B()"), // (25,9): warning CS0612: 'B.this[int]' is obsolete // base[1]++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base[1]").WithArguments("B.this[int]")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion1() { var source = @" using System; class A { } class B { [Obsolete(""B to A"")] public static explicit operator B(A a) { return null; } [Obsolete(""A to B"")] public static implicit operator A(B b) { return null; } } class Test { static void Main() { A a = new A(); B b = (B)a; a = b; a = (A)(B)(A)b; } } "; CreateCompilation(source).VerifyDiagnostics( // (29,15): warning CS0618: 'B.explicit operator B(A)' is obsolete: 'B to A' // B b = (B)a; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "(B)a").WithArguments("B.explicit operator B(A)", "B to A"), // (30,13): warning CS0618: 'B.implicit operator A(B)' is obsolete: 'A to B' // a = b; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "b").WithArguments("B.implicit operator A(B)", "A to B"), // (31,19): warning CS0618: 'B.implicit operator A(B)' is obsolete: 'A to B' // a = (A)(B)(A)b; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "(A)b").WithArguments("B.implicit operator A(B)", "A to B"), // (31,16): warning CS0618: 'B.explicit operator B(A)' is obsolete: 'B to A' // a = (A)(B)(A)b; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "(B)(A)b").WithArguments("B.explicit operator B(A)", "B to A"), // (31,13): warning CS0618: 'B.implicit operator A(B)' is obsolete: 'A to B' // a = (A)(B)(A)b; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "(A)(B)(A)b").WithArguments("B.implicit operator A(B)", "A to B")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion2() { var source = @" using System; class A<T> { [Obsolete(""A<T> to T"")] public static implicit operator T(A<T> a) { return default(T); } [Obsolete(""T to A<T>"")] public static implicit operator A<T>(T t) { return null; } } class Test { static void Main() { A<int> ai = new A<int>(); int i = ai; ai = i; // These casts don't use the UDCs (at compile time). A<dynamic> ad = new A<dynamic>(); dynamic d = ad; ad = d; } } "; CreateCompilation(source).VerifyDiagnostics( // (25,17): warning CS0618: 'A<int>.implicit operator int(A<int>)' is obsolete: 'A<T> to T' // int i = ai; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "ai").WithArguments("A<int>.implicit operator int(A<int>)", "A<T> to T"), // (26,14): warning CS0618: 'A<int>.implicit operator A<int>(int)' is obsolete: 'T to A<T>' // ai = i; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "i").WithArguments("A<int>.implicit operator A<int>(int)", "T to A<T>")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion3() { var source = @" using System; class Convertible { [Obsolete(""To int"")] public static implicit operator int(Convertible c) { return 0; } [Obsolete(""To bool"")] public static implicit operator bool(Convertible c) { return false; } } class Test { static void Main() { Convertible c = new Convertible(); if (c) { switch (c) { case 0: int x = c + 1; x = +c; break; } } } } "; CreateCompilation(source).VerifyDiagnostics( // (25,13): warning CS0618: 'Convertible.implicit operator bool(Convertible)' is obsolete: 'To bool' // if (c) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator bool(Convertible)", "To bool"), // (27,21): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // switch (c) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"), // (30,29): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // int x = c + 1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"), // (31,26): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // x = +c; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion4() { var source = @" using System; class Convertible { [Obsolete(""To int"")] public static implicit operator int(Convertible c) { return 0; } } class Test { static void Main(string[] args) { Convertible c = new Convertible(); args[c].ToString(); } } "; CreateCompilation(source).VerifyDiagnostics( // (19,14): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // args[c].ToString(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion5() { var source = @" using System; class Convertible { [Obsolete(""To int"")] public static implicit operator int(Convertible c) { return 0; } [Obsolete(""From int"")] public static implicit operator Convertible(int i) { return null; } } class Test { static void Main(string[] args) { foreach (int i in new Convertible[1]) { Convertible c = new Convertible(); c++; c -= 2; } } } "; CreateCompilation(source).VerifyDiagnostics( // (26,13): warning CS0618: 'Convertible.implicit operator Convertible(int)' is obsolete: 'From int' // c++; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c++").WithArguments("Convertible.implicit operator Convertible(int)", "From int"), // (26,13): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // c++; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c++").WithArguments("Convertible.implicit operator int(Convertible)", "To int"), // (27,13): warning CS0618: 'Convertible.implicit operator Convertible(int)' is obsolete: 'From int' // c -= 2; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c -= 2").WithArguments("Convertible.implicit operator Convertible(int)", "From int"), // (27,13): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // c -= 2; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c -= 2").WithArguments("Convertible.implicit operator int(Convertible)", "To int"), // (23,9): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // foreach (int i in new Convertible[1]) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "foreach").WithArguments("Convertible.implicit operator int(Convertible)", "To int")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion6() { var source = @" using System; struct Convertible { [Obsolete(""To int"")] public static implicit operator int(Convertible c) { return 0; } } class Test { static void Main(string[] args) { Convertible? c = null; int i = c ?? 1; } } "; CreateCompilation(source).VerifyDiagnostics( // (18,17): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // int i = c ?? 1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c ?? 1").WithArguments("Convertible.implicit operator int(Convertible)", "To int")); } private const string ObsoleteAttributeSource = @" #nullable enable namespace System { public class ObsoleteAttribute : Attribute { public ObsoleteAttribute() { } public ObsoleteAttribute(string? message) { } public ObsoleteAttribute(string? message, bool error) { } public string? DiagnosticId { get; set; } public string? UrlFormat { get; set; } } } "; [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_01() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(DiagnosticId = ""TEST1"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("TEST1", diag.Id); Assert.Equal(ErrorCode.WRN_DeprecatedSymbol, (ErrorCode)diag.Code); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning TEST1: 'C.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C.M1()").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_02() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/CS0612", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning CS0612: 'C.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_03() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}/{1}"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning CS0612: 'C.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_04() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/CS0612"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/CS0612", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning CS0612: 'C.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadAttribute_01() { var source = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public string DiagnosticId; public string DiagnosticId { get; set; } // 1 } } class C { [Obsolete(DiagnosticId = ""TEST1"")] // 2 void M1() { } void M2() { M1(); } } "; var comp = CreateCompilation(source); var diags = comp.GetDiagnostics(); diags.Verify( // (10,23): error CS0102: The type 'ObsoleteAttribute' already contains a definition for 'DiagnosticId' // public string DiagnosticId { get; set; } // 1 Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "DiagnosticId").WithArguments("System.ObsoleteAttribute", "DiagnosticId").WithLocation(10, 23), // (16,15): error CS0229: Ambiguity between 'ObsoleteAttribute.DiagnosticId' and 'ObsoleteAttribute.DiagnosticId' // [Obsolete(DiagnosticId = "TEST1")] // 2 Diagnostic(ErrorCode.ERR_AmbigMember, "DiagnosticId").WithArguments("System.ObsoleteAttribute.DiagnosticId", "System.ObsoleteAttribute.DiagnosticId").WithLocation(16, 15)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_05() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(""don't use"", error: false, DiagnosticId = ""TEST1"", UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("TEST1", diag.Id); Assert.Equal(ErrorCode.WRN_DeprecatedSymbolStr, (ErrorCode)diag.Code); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/TEST1", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning TEST1: 'C.M1()' is obsolete: 'don't use' // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadAttribute_02() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete( DiagnosticId = ""A"", DiagnosticId = ""B"", // 1 UrlFormat = ""C"", UrlFormat = ""D"")] // 2 void M1() { } void M2() { M1(); // 3 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); diags.Verify( // (9,9): error CS0643: 'DiagnosticId' duplicate named attribute argument // DiagnosticId = "B", // 1 Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, @"DiagnosticId = ""B""").WithArguments("DiagnosticId").WithLocation(9, 9), // (11,9): error CS0643: 'UrlFormat' duplicate named attribute argument // UrlFormat = "D")] // 2 Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, @"UrlFormat = ""D""").WithArguments("UrlFormat").WithLocation(11, 9), // (16,9): warning A: 'C.M1()' is obsolete // M1(); // 3 Diagnostic("A", "M1()").WithArguments("C.M1()").WithLocation(16, 9)); var diag = diags.Last(); Assert.Equal("C", diag.Descriptor.HelpLinkUri); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_Suppression_01() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(""don't use"", error: false, DiagnosticId = ""TEST1"")] void M1() { } [Obsolete] void M2() { } void M3() { M1(); // 1 M2(); // 2 #pragma warning disable TEST1 M1(); M2(); // 3 #pragma warning restore TEST1 #pragma warning disable 612 M1(); // 4 M2(); } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); comp.VerifyDiagnostics( // (15,9): warning TEST1: 'C.M1()' is obsolete: 'don't use' // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").WithLocation(15, 9), // (16,9): warning CS0612: 'C.M2()' is obsolete // M2(); // 2 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C.M2()").WithLocation(16, 9), // (20,9): warning CS0612: 'C.M2()' is obsolete // M2(); // 3 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C.M2()").WithLocation(20, 9), // (24,9): warning TEST1: 'C.M1()' is obsolete: 'don't use' // M1(); // 4 Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").WithLocation(24, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_01() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(""don't use"", error: false, DiagnosticId = ""TEST1"")] public void M1() { } [Obsolete] public void M2() { } } "; var source2 = @" class C2 : C1 { void M3() { M1(); // 1 M2(); // 2 #pragma warning disable TEST1 M1(); M2(); // 3 #pragma warning restore TEST1 #pragma warning disable 612 M1(); // 4 M2(); } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete: 'don't use' // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()", "don't use").WithLocation(6, 9), // (7,9): warning CS0612: 'C1.M2()' is obsolete // M2(); // 2 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C1.M2()").WithLocation(7, 9), // (11,9): warning CS0612: 'C1.M2()' is obsolete // M2(); // 3 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C1.M2()").WithLocation(11, 9), // (15,9): warning TEST1: 'C1.M1()' is obsolete: 'don't use' // M1(); // 4 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()", "don't use").WithLocation(15, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_02() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(DiagnosticId = ""TEST1"")] public void M1() { } [Obsolete(""don't use"", DiagnosticId = ""TEST2"")] public void M2() { } [Obsolete(""don't use"", error: false, DiagnosticId = ""TEST3"")] public void M3() { } } "; var source2 = @" class C2 : C1 { void M4() { M1(); // 1 M2(); // 2 M3(); // 3 } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9), // (7,9): warning TEST2: 'C1.M2()' is obsolete: 'don't use' // M2(); // 2 Diagnostic("TEST2", "M2()").WithArguments("C1.M2()", "don't use").WithLocation(7, 9), // (8,9): warning TEST3: 'C1.M3()' is obsolete: 'don't use' // M3(); // 3 Diagnostic("TEST3", "M3()").WithArguments("C1.M3()", "don't use").WithLocation(8, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_03() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(DiagnosticId = ""TEST1"", UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/TEST1", diag.Descriptor.HelpLinkUri); diags.Verify( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_04() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(DiagnosticId = null, UrlFormat = null)] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_05() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(DiagnosticId = ""TEST1"", UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); // WithGeneralDiagnosticOption verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn), // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error), // (6,9): error TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9).WithWarningAsError(true) ); verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden), // (6,9): hidden TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9)); verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); // WithSpecificDiagnosticOption for id TEST1 verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Warn)), // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Error)), // (6,9): error TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9).WithWarningAsError(true) ); verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Hidden)), // (6,9): hidden TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Suppress))); // WithSpecificDiagnosticOption for id CS0618 verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Error)), // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Suppress)), // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); void verify(CSharpCompilationOptions options, params DiagnosticDescription[] expectedDiagnostics) { verifyReference(comp1.ToMetadataReference(), options, expectedDiagnostics); verifyReference(comp1.EmitToImageReference(), options, expectedDiagnostics); } void verifyReference(MetadataReference reference, CSharpCompilationOptions options, DiagnosticDescription[] expectedDiagnostics) { var comp2 = CreateCompilation(source2, references: new[] { reference }, options: options); var diags = comp2.GetDiagnostics(); if (expectedDiagnostics.Any()) { var diag = diags.Single(); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/TEST1", diag.Descriptor.HelpLinkUri); } diags.Verify(expectedDiagnostics); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_01() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public bool Flag { get; set; } public string DiagnosticId { get; set; } } } public class C1 { [Obsolete(Flag = false, DiagnosticId = ""TEST1"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_02() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public string DiagnosticId; public string UrlFormat; } } public class C1 { [Obsolete(DiagnosticId = ""TEST1"", UrlFormat = ""TEST2"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_03() { var source1 = @" using System; #pragma warning disable 436 public enum E1 { A, B } namespace System { public class ObsoleteAttribute : Attribute { public byte Byte { get; set; } public sbyte SByte { get; set; } public bool Bool { get; set; } public short Short { get; set; } public ushort UShort { get; set; } public char Char { get; set; } public int Int { get; set; } public uint UInt { get; set; } public float Float { get; set; } public long Long { get; set; } public ulong ULong { get; set; } public double Double { get; set; } public E1 Enum { get; set; } public string DiagnosticId { get; set; } } } public class C1 { [Obsolete( Byte = 0, SByte = 0, Bool = false, Short = 0, UShort = 0, Char = '\0', Int = 0, UInt = 0, Float = 0, Long = 0, ULong = 0, Double = 0, Enum = E1.A, DiagnosticId = ""TEST1"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_04() { var source1 = @" using System; #pragma warning disable 436 public enum E1 { A, B } namespace System { public class ObsoleteAttribute : Attribute { public int[] Int { get; set; } public E1[] Enum { get; set; } public string DiagnosticId { get; set; } } } public class C1 { [Obsolete( Int = new[] { 0, 1, 2 }, Enum = new[] { E1.A, E1.B }, DiagnosticId = ""TEST1"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); // https://github.com/dotnet/roslyn/issues/42771 //verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_05() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public char[] DiagnosticId { get; set; } public char[] UrlFormat { get; set; } } } public class C1 { [Obsolete(DiagnosticId = new[] { 'A' }, UrlFormat = new[] { 'B' })] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); // https://github.com/dotnet/roslyn/issues/42771 //verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal($"https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_06() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public char[] DiagnosticId { get; set; } public char[] UrlFormat { get; set; } } } public class C1 { [Obsolete(DiagnosticId = null, UrlFormat = null)] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_07() { // In this program C1.M1 has an ObsoleteAttribute with multiple values provided for DiagnosticId and UrlFormat var ilSource = @" .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. .ver 4:0:0:0 } .class public auto ansi beforefieldinit C1 extends [mscorlib]System.Object { .method public hidebysig instance void M1() cil managed { .custom instance void System.ObsoleteAttribute::.ctor() = ( 01 00 04 00 // .... 54 0E 0C 44 69 61 67 6E 6F 73 74 69 63 49 64 01 41 // T..DiagnosticId.A 54 0E 0C 44 69 61 67 6E 6F 73 74 69 63 49 64 01 42 // T..DiagnosticId.B 54 0E 09 55 72 6C 46 6F 72 6D 61 74 01 43 // T..UrlFormat.C 54 0E 09 55 72 6C 46 6F 72 6D 61 74 01 44 ) // T..UrlFormat.D // Code size 2 (0x2) .maxstack 8 IL_0000: nop IL_0001: ret } // end of method C1::M1 .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method C1::.ctor } // end of class C1 .class public auto ansi beforefieldinit System.ObsoleteAttribute extends [mscorlib]System.Attribute { .field private string '<DiagnosticId>k__BackingField' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) .field private string '<UrlFormat>k__BackingField' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) .method public hidebysig specialname instance string get_DiagnosticId() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldfld string System.ObsoleteAttribute::'<DiagnosticId>k__BackingField' IL_0006: ret } // end of method ObsoleteAttribute::get_DiagnosticId .method public hidebysig specialname instance void set_DiagnosticId(string 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string System.ObsoleteAttribute::'<DiagnosticId>k__BackingField' IL_0007: ret } // end of method ObsoleteAttribute::set_DiagnosticId .method public hidebysig specialname instance string get_UrlFormat() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldfld string System.ObsoleteAttribute::'<UrlFormat>k__BackingField' IL_0006: ret } // end of method ObsoleteAttribute::get_UrlFormat .method public hidebysig specialname instance void set_UrlFormat(string 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string System.ObsoleteAttribute::'<UrlFormat>k__BackingField' IL_0007: ret } // end of method ObsoleteAttribute::set_UrlFormat .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Attribute::.ctor() IL_0006: nop IL_0007: ret } // end of method ObsoleteAttribute::.ctor .property instance string DiagnosticId() { .get instance string System.ObsoleteAttribute::get_DiagnosticId() .set instance void System.ObsoleteAttribute::set_DiagnosticId(string) } // end of property ObsoleteAttribute::DiagnosticId .property instance string UrlFormat() { .get instance string System.ObsoleteAttribute::get_UrlFormat() .set instance void System.ObsoleteAttribute::set_UrlFormat(string) } // end of property ObsoleteAttribute::UrlFormat } // end of class System.ObsoleteAttribute "; var csSource = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var ilComp = CompileIL(ilSource); var comp = CreateCompilation(csSource, references: new[] { ilComp }); var diags = comp.GetDiagnostics(); diags.Verify( // (6,9): warning A: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("A", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("C", diag.Descriptor.HelpLinkUri); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_08() { // In this program C1.M1 has an ObsoleteAttribute with a malformed value provided for a named argument var ilSource = @" .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. .ver 4:0:0:0 } .class public auto ansi beforefieldinit C1 extends [mscorlib]System.Object { .method public hidebysig instance void M1() cil managed { .custom instance void System.ObsoleteAttribute::.ctor() = ( 01 00 02 00 // .... 54 0E 0C 44 69 61 67 6E 6F 73 74 69 63 49 64 01 41 // T..DiagnosticId.A 0E 09 55 72 6C 46 6F 72 6D 61 74 01 42 ) // ..UrlFormat.B // Code size 2 (0x2) .maxstack 8 IL_0000: nop IL_0001: ret } // end of method C1::M1 .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method C1::.ctor } // end of class C1 .class public auto ansi beforefieldinit System.ObsoleteAttribute extends [mscorlib]System.Attribute { .field private string '<DiagnosticId>k__BackingField' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) .field private string '<UrlFormat>k__BackingField' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) .method public hidebysig specialname instance string get_DiagnosticId() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldfld string System.ObsoleteAttribute::'<DiagnosticId>k__BackingField' IL_0006: ret } // end of method ObsoleteAttribute::get_DiagnosticId .method public hidebysig specialname instance void set_DiagnosticId(string 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string System.ObsoleteAttribute::'<DiagnosticId>k__BackingField' IL_0007: ret } // end of method ObsoleteAttribute::set_DiagnosticId .method public hidebysig specialname instance string get_UrlFormat() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldfld string System.ObsoleteAttribute::'<UrlFormat>k__BackingField' IL_0006: ret } // end of method ObsoleteAttribute::get_UrlFormat .method public hidebysig specialname instance void set_UrlFormat(string 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string System.ObsoleteAttribute::'<UrlFormat>k__BackingField' IL_0007: ret } // end of method ObsoleteAttribute::set_UrlFormat .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Attribute::.ctor() IL_0006: nop IL_0007: ret } // end of method ObsoleteAttribute::.ctor .property instance string DiagnosticId() { .get instance string System.ObsoleteAttribute::get_DiagnosticId() .set instance void System.ObsoleteAttribute::set_DiagnosticId(string) } // end of property ObsoleteAttribute::DiagnosticId .property instance string UrlFormat() { .get instance string System.ObsoleteAttribute::get_UrlFormat() .set instance void System.ObsoleteAttribute::set_UrlFormat(string) } // end of property ObsoleteAttribute::UrlFormat } // end of class System.ObsoleteAttribute "; var csSource = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var ilComp = CompileIL(ilSource); var comp = CreateCompilation(csSource, references: new[] { ilComp }); var diags = comp.GetDiagnostics(); diags.Verify( // (6,9): warning A: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("A", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_09() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public object DiagnosticId { get; set; } public object UrlFormat { get; set; } } } public class C1 { [Obsolete(DiagnosticId = ""A"", UrlFormat = ""B"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } } [Fact] [WorkItem(656345, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/656345")] public void ConditionalLazyObsoleteDiagnostic() { var source = @" public class A { protected virtual void M() { } } public class B : A { protected override void M() { } } public class C : B { void Test() { base.M(); } } "; var comp = CreateCompilation(source); var tree = comp.SyntaxTrees.Single(); var model = comp.GetSemanticModel(tree); var syntax = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); // Used to assert because it depended on some lazy state being evaluated but didn't // actually trigger evaluation. model.GetSymbolInfo(syntax); comp.VerifyDiagnostics(); } [Fact] [WorkItem(656345, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/656345")] public void ConditionalLazyObsoleteDiagnosticInAttribute() { var source = @" using System; public class A { protected virtual int M() { return 1; } } public class B : A { protected override int M() { return 2; } } public class C : B { [Num(base.M())] void Test() { } } public class NumAttribute : Attribute { public NumAttribute(int x) { } } "; var comp = CreateCompilation(source); var tree = comp.SyntaxTrees.Single(); var model = comp.GetSemanticModel(tree); var syntax = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); // Used to assert because it depended on some lazy state being evaluated but didn't // actually trigger evaluation. model.GetSymbolInfo(syntax); comp.VerifyDiagnostics( // (22,10): error CS1512: Keyword 'base' is not available in the current context // [Num(base.M())] Diagnostic(ErrorCode.ERR_BaseInBadContext, "base")); } [Fact] [WorkItem(665595, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/665595")] public void ConditionalLazyObsoleteDiagnosticInLazyObsoleteContext() { var source1 = @" namespace System.Web.UI.Design { public class ReadWriteControlDesignerBase { [Obsolete(""A"")] protected virtual void OnBehaviorAttached() { } } public class ReadWriteControlDesigner : ReadWriteControlDesignerBase { [Obsolete(""B"")] protected override void OnBehaviorAttached() { } } } "; var source2 = @" using System.Web.UI.Design; class C : ReadWriteControlDesigner { protected override void OnBehaviorAttached() { base.OnBehaviorAttached(); } } "; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }); var tree = comp2.SyntaxTrees.Single(); var model = comp2.GetSemanticModel(tree); var syntax = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Last(n => n.Identifier.ValueText == "OnBehaviorAttached"); // Used to assert because it depended on some lazy state being evaluated but didn't // actually trigger evaluation. model.GetSymbolInfo(syntax); comp2.VerifyDiagnostics( // (6,29): warning CS0672: Member 'C.OnBehaviorAttached()' overrides obsolete member 'System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()'. Add the Obsolete attribute to 'C.OnBehaviorAttached()'. // protected override void OnBehaviorAttached() Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "OnBehaviorAttached").WithArguments("C.OnBehaviorAttached()", "System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()"), // (8,9): warning CS0618: 'System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()' is obsolete: 'A' // base.OnBehaviorAttached(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "base.OnBehaviorAttached()").WithArguments("System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()", "A")); } [Fact] [WorkItem(668365, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/668365")] public void ObsoleteOverrideChain() { var source = @" using System; public class A { [Obsolete] public virtual void M() { } } public class B : A { // Not obsolete public override void M() { } } public class C : B { [Obsolete] public override void M() { } } public class D { // Not obsolete public virtual void M() { } } public class E : D { [Obsolete] public override void M() { } } public class F : E { // Not obsolete public override void M() { } } "; CreateCompilation(source).VerifyDiagnostics( // (13,26): warning CS0672: Member 'B.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'B.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M()", "A.M()"), // (31,26): warning CS0809: Obsolete member 'E.M()' overrides non-obsolete member 'D.M()' // public override void M() { } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "M").WithArguments("E.M()", "D.M()")); } [Fact] public void DefaultValueOnParamsParameter() { var source = @" using System; using System.Runtime.InteropServices; public class C { public void M([Optional, DefaultParameterValue(null)]params int[] args) { } } "; var comp = CreateCompilation(source); Action<ModuleSymbol> validator = module => { var method = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); var param = method.Parameters.Single(); Assert.True(param.IsParams); Assert.False(param.IsOptional); Assert.False(param.HasExplicitDefaultValue); }; CompileAndVerify(comp, symbolValidator: validator, sourceSymbolValidator: validator); // NOTE: Illegal in dev11, but legal in roslyn. } [Fact] public void TestDeprecatedAttribute() { var source1 = @" using Windows.Foundation.Metadata; [Deprecated(""Class1 is deprecated."", DeprecationType.Deprecate, 0)] public class Class1 { } [Deprecated(""Class2 is deprecated."", DeprecationType.Deprecate, 0, Platform.Windows)] public class Class2 { } [Deprecated(""Class3 is deprecated."", DeprecationType.Remove, 1)] public class Class3 { } [Deprecated(""Class4 is deprecated."", DeprecationType.Remove, 0, Platform.WindowsPhone)] public class Class4 { } "; var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); compilation1.VerifyDiagnostics(); var source2 = @" using Windows.Foundation.Metadata; class Class5 { void Test() { Class1 x1 = null; Class2 x2 = null; Class3 x3 = null; Class4 x4 = null; Class6 x6 = new Class6(); object x5; x5=x1; x5 = x2; x5 = x3; x5 = x4; x5 = x6.P1; x6.P1 = 1; x5 = x6.P2; x6.P2 = 1; x6.E1 += null; x6.E1 -= null; } } class Class6 { public int P1 { [Deprecated(""P1.get is deprecated."", DeprecationType.Remove, 1)] get { return 1; } set {} } public int P2 { get { return 1; } [Deprecated(""P1.get is deprecated."", DeprecationType.Remove, 1)] set {} } public event System.Action E1 { [Deprecated(""E1.add is deprecated."", DeprecationType.Remove, 1)] add { } remove { } } } "; var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); var expected = new[] { // (8,9): warning CS0618: 'Class1' is obsolete: 'Class1 is deprecated.' // Class1 x1 = null; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Class1 is deprecated.").WithLocation(8, 9), // (9,9): warning CS0618: 'Class2' is obsolete: 'Class2 is deprecated.' // Class2 x2 = null; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Class2").WithArguments("Class2", "Class2 is deprecated.").WithLocation(9, 9), // (10,9): error CS0619: 'Class3' is obsolete: 'Class3 is deprecated.' // Class3 x3 = null; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class3").WithArguments("Class3", "Class3 is deprecated.").WithLocation(10, 9), // (11,9): error CS0619: 'Class4' is obsolete: 'Class4 is deprecated.' // Class4 x4 = null; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class4").WithArguments("Class4", "Class4 is deprecated.").WithLocation(11, 9), // (19,14): error CS0619: 'Class6.P1.get' is obsolete: 'P1.get is deprecated.' // x5 = x6.P1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "x6.P1").WithArguments("Class6.P1.get", "P1.get is deprecated.").WithLocation(19, 14), // (22,9): error CS0619: 'Class6.P2.set' is obsolete: 'P1.get is deprecated.' // x6.P2 = 1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "x6.P2").WithArguments("Class6.P2.set", "P1.get is deprecated.").WithLocation(22, 9), // (52,10): error CS8423: Attribute 'Windows.Foundation.Metadata.DeprecatedAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Deprecated("E1.add is deprecated.", DeprecationType.Remove, 1)] Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(52, 10) }; compilation2.VerifyDiagnostics(expected); compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { compilation1.EmitToImageReference() }), TestOptions.ReleaseDll); compilation2.VerifyDiagnostics(expected); } /// <summary> /// Report warning or error based on last attribute. /// </summary> [WorkItem(18755, "https://github.com/dotnet/roslyn/issues/18755")] [Fact] public void TestMultipleDeprecatedAttributes() { var source = @"using Windows.Foundation.Metadata; class C { [Deprecated(""Removed"", DeprecationType.Remove, 0)] [Deprecated(""Deprecated"", DeprecationType.Deprecate, 0)] static void F() { } [Deprecated(""Deprecated"", DeprecationType.Deprecate, 0)] [Deprecated(""Removed"", DeprecationType.Remove, 0)] static void G() { } static void Main() { F(); G(); } }"; var compilation = CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseDll); compilation.VerifyDiagnostics( // (12,9): warning CS0618: 'C.F()' is obsolete: 'Deprecated' // F(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F()").WithArguments("C.F()", "Deprecated").WithLocation(12, 9), // (13,9): error CS0619: 'C.G()' is obsolete: 'Removed' // G(); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "G()").WithArguments("C.G()", "Removed").WithLocation(13, 9)); } private const string DeprecatedAttributeSourceTH1 = @"using System; namespace Windows.Foundation.Metadata { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = true)] public sealed class DeprecatedAttribute : Attribute { public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version) { } // this signature is only used in TH1 metadata // see: https://github.com/dotnet/roslyn/issues/10630 public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version, Type contract) { } } public enum DeprecationType { Deprecate = 0, Remove = 1 } }"; [Fact] public void TestDeprecatedAttributeTH1() { var source1 = @" using Windows.Foundation.Metadata; public class Test { [Deprecated(""hello"", DeprecationType.Deprecate, 1, typeof(int))] public static void Goo() { } [Deprecated(""hi"", DeprecationType.Deprecate, 1)] public static void Bar() { } } "; var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSourceTH1), Parse(source1) }); var source2 = @" namespace ConsoleApplication74 { class Program { static void Main(string[] args) { Test.Goo(); Test.Bar(); } } } "; var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { compilation1.EmitToImageReference() }); compilation2.VerifyDiagnostics( // (8,13): warning CS0618: 'Test.Goo()' is obsolete: 'hello' // Test.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13), // (9,13): warning CS0618: 'Test.Bar()' is obsolete: 'hi' // Test.Bar(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13) ); var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { new CSharpCompilationReference(compilation1) }); compilation3.VerifyDiagnostics( // (8,13): warning CS0618: 'Test.Goo()' is obsolete: 'hello' // Test.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13), // (9,13): warning CS0618: 'Test.Bar()' is obsolete: 'hi' // Test.Bar(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13) ); } private const string DeprecatedAttributeSourceTH2 = @"using System; namespace Windows.Foundation.Metadata { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = true)] public sealed class DeprecatedAttribute : Attribute { public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version) { } // this signature is only used in TH2 metadata and onwards // see: https://github.com/dotnet/roslyn/issues/10630 public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version, String contract) { } } public enum DeprecationType { Deprecate = 0, Remove = 1 } }"; [Fact] public void TestDeprecatedAttributeTH2() { var source1 = @" using Windows.Foundation.Metadata; public class Test { [Deprecated(""hello"", DeprecationType.Deprecate, 1, ""hello"")] public static void Goo() { } [Deprecated(""hi"", DeprecationType.Deprecate, 1)] public static void Bar() { } } "; var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSourceTH2), Parse(source1) }); var source2 = @" namespace ConsoleApplication74 { class Program { static void Main(string[] args) { Test.Goo(); Test.Bar(); } } } "; var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { compilation1.EmitToImageReference() }); compilation2.VerifyDiagnostics( // (8,13): warning CS0618: 'Test.Goo()' is obsolete: 'hello' // Test.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13), // (9,13): warning CS0618: 'Test.Bar()' is obsolete: 'hi' // Test.Bar(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13) ); var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { new CSharpCompilationReference(compilation1) }); compilation3.VerifyDiagnostics( // (8,13): warning CS0618: 'Test.Goo()' is obsolete: 'hello' // Test.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13), // (9,13): warning CS0618: 'Test.Bar()' is obsolete: 'hi' // Test.Bar(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13) ); } [Fact, WorkItem(858839, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/858839")] public void Bug858839_1() { var source1 = @" using Windows.Foundation.Metadata; public class MainPage { public static void Main(string[] args) { } private static void TestGoo1(IGoo1 a, ConcreteGoo1 b) { a.Goo(); // IGoo1 b.Goo(); // ConcreteGoo1 } private static void TestGoo2(IGoo2 a, ConcreteGoo2 b) { a.Goo(); // IGoo2 b.Goo(); // ConcreteGoo2 } private static void TestGoo3(IGoo3 a, ConcreteGoo3 b) { a.Goo(); // IGoo3 b.Goo(); // ConcreteGoo3 } } public interface IGoo1 { [Deprecated(""IGoo1.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] void Goo(); } public sealed class ConcreteGoo1 : IGoo1 { public void Goo() { } } public interface IGoo2 { void Goo(); } public sealed class ConcreteGoo2 : IGoo2 { [Deprecated(""ConcreteGoo2.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] public void Goo() { } } public interface IGoo3 { [Deprecated(""IGoo3.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] void Goo(); } public sealed class ConcreteGoo3 : IGoo3 { [Deprecated(""ConcreteGoo3.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] public void Goo() { } } public sealed class ConcreteGoo4 : IGoo1 { void IGoo1.Goo() { } } public sealed class ConcreteGoo5 : IGoo1 { [Deprecated(""ConcreteGoo5.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] void IGoo1.Goo() { } } "; var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); var expected = new[] { // (12,9): warning CS0618: 'IGoo1.Goo()' is obsolete: 'IGoo1.Goo has been deprecated' // a.Goo(); // IGoo1 Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.Goo()").WithArguments("IGoo1.Goo()", "IGoo1.Goo has been deprecated").WithLocation(12, 9), // (19,9): warning CS0618: 'ConcreteGoo2.Goo()' is obsolete: 'ConcreteGoo2.Goo has been deprecated' // b.Goo(); // ConcreteGoo2 Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "b.Goo()").WithArguments("ConcreteGoo2.Goo()", "ConcreteGoo2.Goo has been deprecated").WithLocation(19, 9), // (24,9): warning CS0618: 'IGoo3.Goo()' is obsolete: 'IGoo3.Goo has been deprecated' // a.Goo(); // IGoo3 Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.Goo()").WithArguments("IGoo3.Goo()", "IGoo3.Goo has been deprecated").WithLocation(24, 9), // (25,9): warning CS0618: 'ConcreteGoo3.Goo()' is obsolete: 'ConcreteGoo3.Goo has been deprecated' // b.Goo(); // ConcreteGoo3 Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "b.Goo()").WithArguments("ConcreteGoo3.Goo()", "ConcreteGoo3.Goo has been deprecated").WithLocation(25, 9) }; compilation1.VerifyDiagnostics(expected); } [Fact, WorkItem(858839, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/858839")] public void Bug858839_2() { var source1 = @" using Windows.Foundation.Metadata; public interface IExceptionalInterface { string ExceptionalProp { [Deprecated(""Actually, don't even use the prop at all."", DeprecationType.Remove, 50331648u)] get; [Deprecated(""Changed my mind; don't put this prop."", DeprecationType.Remove, 33554432u)] set; } } "; var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); //compilation1.VerifyDiagnostics(); var source2 = @" using System; class Test { public static void F(IExceptionalInterface i) { i.ExceptionalProp = ""goo""; Console.WriteLine(i.ExceptionalProp); } } "; var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); var expected = new[] { // (8,9): error CS0619: 'IExceptionalInterface.ExceptionalProp.set' is obsolete: 'Changed my mind; don't put this prop.' // i.ExceptionalProp = "goo"; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "i.ExceptionalProp").WithArguments("IExceptionalInterface.ExceptionalProp.set", "Changed my mind; don't put this prop.").WithLocation(8, 9), // (9,27): error CS0619: 'IExceptionalInterface.ExceptionalProp.get' is obsolete: 'Actually, don't even use the prop at all.' // Console.WriteLine(i.ExceptionalProp); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "i.ExceptionalProp").WithArguments("IExceptionalInterface.ExceptionalProp.get", "Actually, don't even use the prop at all.").WithLocation(9, 27) }; compilation2.VerifyDiagnostics(expected); } [Fact, WorkItem(530801, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530801")] public void Bug530801DisallowRequiredAttributeCS0648() { var ilsource = @" .class public auto ansi beforefieldinit Scenario1 extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Runtime.CompilerServices.RequiredAttributeAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 53 79 73 74 65 6D 2E 49 6E 74 33 32 2C // ..YSystem.Int32, 20 6D 73 63 6F 72 6C 69 62 2C 20 56 65 72 73 69 // mscorlib, Versi 6F 6E 3D 34 2E 30 2E 30 2E 30 2C 20 43 75 6C 74 // on=4.0.0.0, Cult 75 72 65 3D 6E 65 75 74 72 61 6C 2C 20 50 75 62 // ure=neutral, Pub 6C 69 63 4B 65 79 54 6F 6B 65 6E 3D 62 37 37 61 // licKeyToken=b77a 35 63 35 36 31 39 33 34 65 30 38 39 00 00 ) // 5c561934e089.. .field public int32 intVar .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Scenario1::.ctor } // end of class Scenario1 "; var cssource = @" public class C { static Scenario1 ss; public static int Main() { ss = new Scenario1(); DoSomething(ss); return 1; } static void DoSomething(Scenario1 p) { System.Console.WriteLine(p); } } "; var ilReference = CompileIL(ilsource); var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference }, TestOptions.ReleaseExe); var expected = new[] { // (12,29): error CS0648: 'Scenario1' is a type not supported by the language // static void DoSomething(Scenario1 p) Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(12, 29), // (4,12): error CS0648: 'Scenario1' is a type not supported by the language // static Scenario1 ss; Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(4, 12), // (7,18): error CS0648: 'Scenario1' is a type not supported by the language // ss = new Scenario1(); Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(7, 18) }; cscomp.VerifyDiagnostics(expected); } [Fact, WorkItem(530801, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530801")] public void Bug530801DisallowRequiredAttributeCS0570() { var ilsource = @" .class public auto ansi beforefieldinit RequiredAttr.Scenario1 extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Runtime.CompilerServices.RequiredAttributeAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 53 79 73 74 65 6D 2E 49 6E 74 33 32 2C // ..YSystem.Int32, 20 6D 73 63 6F 72 6C 69 62 2C 20 56 65 72 73 69 // mscorlib, Versi 6F 6E 3D 34 2E 30 2E 30 2E 30 2C 20 43 75 6C 74 // on=4.0.0.0, Cult 75 72 65 3D 6E 65 75 74 72 61 6C 2C 20 50 75 62 // ure=neutral, Pub 6C 69 63 4B 65 79 54 6F 6B 65 6E 3D 62 37 37 61 // licKeyToken=b77a 35 63 35 36 31 39 33 34 65 30 38 39 00 00 ) // 5c561934e089.. .field public int32 intVar .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Scenario1::.ctor } // end of class RequiredAttr.Scenario1 .class public auto ansi beforefieldinit RequiredAttr.ReqAttrUsage extends [mscorlib]System.Object { .field public class RequiredAttr.Scenario1 sc1_field .method public hidebysig newslot specialname virtual instance class RequiredAttr.Scenario1 get_sc1_prop() cil managed { // Code size 9 (0x9) .maxstack 1 .locals (class RequiredAttr.Scenario1 V_0) IL_0000: ldarg.0 IL_0001: ldfld class RequiredAttr.Scenario1 RequiredAttr.ReqAttrUsage::sc1_field IL_0006: stloc.0 IL_0007: ldloc.0 IL_0008: ret } // end of method ReqAttrUsage::get_sc1_prop .method public hidebysig instance class RequiredAttr.Scenario1 sc1_method() cil managed { // Code size 9 (0x9) .maxstack 1 .locals (class RequiredAttr.Scenario1 V_0) IL_0000: ldarg.0 IL_0001: ldfld class RequiredAttr.Scenario1 RequiredAttr.ReqAttrUsage::sc1_field IL_0006: stloc.0 IL_0007: ldloc.0 IL_0008: ret } // end of method ReqAttrUsage::sc1_method .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method ReqAttrUsage::.ctor .property instance class RequiredAttr.Scenario1 sc1_prop() { .get instance class RequiredAttr.Scenario1 RequiredAttr.ReqAttrUsage::get_sc1_prop() } // end of property ReqAttrUsage::sc1_prop } // end of class RequiredAttr.ReqAttrUsage "; var cssource = @" using RequiredAttr; public class C { public static int Main() { var r = new ReqAttrUsage(); r.sc1_field = null; var o = r.sc1_prop; r.sc1_method(); return 1; } } "; var ilReference = CompileIL(ilsource); var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference }, TestOptions.ReleaseExe); var expected = new[] { // (9,11): error CS0570: 'RequiredAttr.ReqAttrUsage.sc1_field' is not supported by the language // r.sc1_field = null; Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_field").WithArguments("RequiredAttr.ReqAttrUsage.sc1_field").WithLocation(9, 11), // (10,19): error CS0570: 'RequiredAttr.ReqAttrUsage.sc1_prop' is not supported by the language // var o = r.sc1_prop; Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_prop").WithArguments("RequiredAttr.ReqAttrUsage.sc1_prop").WithLocation(10, 19), // (11,11): error CS0570: 'RequiredAttr.ReqAttrUsage.sc1_method()' is not supported by the language // r.sc1_method(); Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_method").WithArguments("RequiredAttr.ReqAttrUsage.sc1_method()").WithLocation(11, 11) }; cscomp.VerifyDiagnostics(expected); } #endregion #region SkipLocalsInitAttribute private CompilationVerifier CompileAndVerifyWithSkipLocalsInit(string src, CSharpCompilationOptions options, CSharpParseOptions parseOptions = null, Verification verify = Verification.Fails) { const string skipLocalsInitDef = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } }"; var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: options, parseOptions: parseOptions); return CompileAndVerify(comp, verify: verify); } private CompilationVerifier CompileAndVerifyWithSkipLocalsInit(string src, CSharpParseOptions parseOptions = null, Verification verify = Verification.Fails) { return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.UnsafeReleaseDll, parseOptions, verify); } [Fact] public void SkipLocalsInitRequiresUnsafe() { var source = @" using System.Runtime.CompilerServices; [module: SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } [SkipLocalsInitAttribute] public class C { [SkipLocalsInitAttribute] public void M() { } [SkipLocalsInitAttribute] public int P => 0; } "; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (4,10): error CS0227: Unsafe code may only appear if compiling with /unsafe // [module: SkipLocalsInitAttribute] Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(4, 10), // (13,2): error CS0227: Unsafe code may only appear if compiling with /unsafe // [SkipLocalsInitAttribute] Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(13, 2), // (16,6): error CS0227: Unsafe code may only appear if compiling with /unsafe // [SkipLocalsInitAttribute] Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(16, 6), // (20,6): error CS0227: Unsafe code may only appear if compiling with /unsafe // [SkipLocalsInitAttribute] Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(20, 6) ); } [Fact] public void SkipLocalsInitAttributeOnMethod() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M_skip() { int x = 2; x = x + x + x; } public void M_init() { int x = 2; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C.M_init", realIL: true)); Assert.False(comp.HasLocalsInit("C.M_skip", realIL: true)); Assert.True(comp.HasLocalsInit("C.M_init", realIL: false)); Assert.False(comp.HasLocalsInit("C.M_skip", realIL: false)); } [Fact] public void SkipLocalsInitAttributeOnPartialMethod() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial class C { partial void M() { int x = 1; x = x + x + x; } } partial class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] partial void M(); } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnExtendedPartialMethod_01() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial class C { public partial int M() { int x = 1; x = x + x + x; return x; } } partial class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public partial int M(); } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnExtendedPartialMethod_02() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public partial int M() { int x = 1; x = x + x + x; return x; } } partial class C { public partial int M(); } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public unsafe void StackallocWithSkipLocalsInit() { var src = @" public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public unsafe void M1() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } public unsafe void M2() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } public unsafe void M3() { int* p = stackalloc int[10]; // unused } }"; var verifier = CompileAndVerifyWithSkipLocalsInit(src); Assert.Null(verifier.HasLocalsInit("C.M1")); // no locals Assert.False(verifier.HasLocalsInit("C.M1", realIL: true)); Assert.Null(verifier.HasLocalsInit("C.M2")); // no locals Assert.True(verifier.HasLocalsInit("C.M2", realIL: true)); Assert.Null(verifier.HasLocalsInit("C.M3")); // no locals Assert.False(verifier.HasLocalsInit("C.M3", realIL: true)); } [Fact] public void WhenMethodsDifferBySkipLocalsInitAttributeTheyMustHaveDifferentRVA() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public unsafe void M_skip() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public unsafe void M_skip_copy() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public unsafe void M_skip_diff() { int *ptr = stackalloc int[11]; System.Console.WriteLine(ptr[0]); } public unsafe void M_init() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } public unsafe void M_init_copy() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } public unsafe void M_init_diff() { int *ptr = stackalloc int[11]; System.Console.WriteLine(ptr[0]); } } "; var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); var metadata = ModuleMetadata.CreateFromStream(comp.EmitToStream()); var peReader = metadata.Module.GetMetadataReader(); TypeDefinition typeC = default; foreach (var typeHandle in peReader.TypeDefinitions) { var type = peReader.GetTypeDefinition(typeHandle); var name = peReader.GetString(type.Name); if (name == "C") { typeC = type; break; } } Assert.NotEqual(default, typeC); MethodDefinition methodInit = default; MethodDefinition methodSkip = default; MethodDefinition methodInitCopy = default; MethodDefinition methodSkipCopy = default; MethodDefinition methodInitDiff = default; MethodDefinition methodSkipDiff = default; foreach (var methodHandle in typeC.GetMethods()) { var method = peReader.GetMethodDefinition(methodHandle); var name = peReader.GetString(method.Name); if (name == "M_init") { methodInit = method; } else if (name == "M_skip") { methodSkip = method; } else if (name == "M_init_copy") { methodInitCopy = method; } else if (name == "M_skip_copy") { methodSkipCopy = method; } else if (name == "M_init_diff") { methodInitDiff = method; } else if (name == "M_skip_diff") { methodSkipDiff = method; } } Assert.NotEqual(default, methodInit); Assert.NotEqual(default, methodSkip); Assert.NotEqual(default, methodInitCopy); Assert.NotEqual(default, methodSkipCopy); Assert.NotEqual(default, methodInitDiff); Assert.NotEqual(default, methodSkipDiff); Assert.NotEqual(methodInit.RelativeVirtualAddress, methodSkip.RelativeVirtualAddress); Assert.Equal(methodInit.RelativeVirtualAddress, methodInitCopy.RelativeVirtualAddress); Assert.Equal(methodSkip.RelativeVirtualAddress, methodSkipCopy.RelativeVirtualAddress); Assert.NotEqual(methodInit.RelativeVirtualAddress, methodInitDiff.RelativeVirtualAddress); Assert.NotEqual(methodSkip.RelativeVirtualAddress, methodSkipDiff.RelativeVirtualAddress); } [Fact] public void SkipLocalsInitAttributeOnAssemblyDoesNotPropagateToMethod() { var source = @" [assembly: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public void M() { int x = 2; x = x + x + x; } } "; var comp = CompileAndVerify(source); Assert.True(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToLocalFunction() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { void F() { int x = 2; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<M>g__F|0_0")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToLambda() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { System.Action L = () => { int x = 2; x = x + x + x; }; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_0")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToNestedLambdaAndLocalFunction() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { void F() { int y = 1; y = y + y + y; void FF() { int x = 2; x = x + x + x; } System.Action FL = () => { int x = 3; x = x + x + x; }; } System.Action L = () => { int y = 4; y = y + y + y; void LF() { int x = 5; x = x + x + x; } System.Action LL = () => { int x = 6; x = x + x + x; }; }; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<M>g__F|0_0")); // F Assert.False(comp.HasLocalsInit("C.<M>g__FF|0_2")); // FF Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_3")); // FL Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_1")); // L Assert.False(comp.HasLocalsInit("C.<M>g__LF|0_4")); // LF Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_5")); // LL } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_01() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; void localNoAttribute() { int x = 1; x = x + x + x; Action lambda = () => { int y = 1; y = y + y + y; [SkipLocalsInitAttribute] void localWithAttribute() { int z = 1; z = z + z + z; } }; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_0")); // localNoAttribute Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_1")); // lambda Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_2")); // localWithAttribute } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_02() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; void localNoAttribute() { int x = 1; x = x + x + x; [SkipLocalsInitAttribute] void localWithAttribute() { int y = 1; y = y + y + y; Action lambda = () => { int z = 1; z = z + z + z; }; } } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_0")); // localNoAttribute Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_1")); // localWithAttribute Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_2")); // lambda } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_03() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; [SkipLocalsInitAttribute] void localWithAttribute() { int x = 1; x = x + x + x; void localNoAttribute() { int y = 1; y = y + y + y; Action lambda = () => { int z = 1; z = z + z + z; }; } } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_0")); // localWithAttribute Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_1")); // localNoAttribute Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_2")); // lambda } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_04() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; Action lambda = () => { int x = 1; x = x + x + x; void localNoAttribute() { int y = 1; y = y + y + y; [SkipLocalsInitAttribute] void localWithAttribute() { int z = 1; z = z + z + z; } } }; } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_0")); // lambda Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_1")); // localNoAttribute Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_2")); // localWithAttribute } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_05() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; Action lambda = () => { int x = 1; x = x + x + x; [SkipLocalsInitAttribute] void localWithAttribute() { int y = 1; y = y + y + y; void localNoAttribute() { int z = 1; z = z + z + z; } } }; } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_0")); // lambda Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_1")); // localWithAttribute Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_2")); // localNoAttribute } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_06() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; [SkipLocalsInitAttribute] void localWithAttribute() { int x = 1; x = x + x + x; Action lambda = () => { int y = 1; y = y + y + y; void localNoAttribute() { int z = 1; z = z + z + z; } }; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_0")); // localWithAttribute Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_1")); // lambda Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_2")); // localNoAttribute } [Fact] public void SkipLocalsInit_PropertyAccessor_ContainsLocalFunction() { var source = @" using System.Runtime.CompilerServices; public class C { [SkipLocalsInit] int PropWithAttribute { get { int w = 1; w = w + w + w + w; void local1() { int x = 1; x = x + x + x + x; } return 0; } } int PropNoAttribute { get { int w = 1; w = w + w + w + w; void local1() { int x = 1; x = x + x + x + x; } return 0; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source); Assert.False(verifier.HasLocalsInit("C.PropWithAttribute.get")); Assert.False(verifier.HasLocalsInit("C.<get_PropWithAttribute>g__local1|1_0")); Assert.True(verifier.HasLocalsInit("C.PropNoAttribute.get")); Assert.True(verifier.HasLocalsInit("C.<get_PropNoAttribute>g__local1|3_0")); } [Fact] public void SkipLocalsInit_EventAccessor_ContainsLocalFunction() { var source = @" using System.Runtime.CompilerServices; using System; public class C { [SkipLocalsInit] event Action EventWithAttribute { add { int w = 1; w = w + w + w + w; void local1() { int x = 1; x = x + x + x + x; } } remove { } } event Action EventNoAttribute { add { int w = 1; w = w + w + w + w; void local1() { int x = 1; x = x + x + x + x; } } remove { } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source); Assert.False(verifier.HasLocalsInit("C.EventWithAttribute.add")); Assert.False(verifier.HasLocalsInit("C.<add_EventWithAttribute>g__local1|1_0")); Assert.True(verifier.HasLocalsInit("C.EventNoAttribute.add")); Assert.True(verifier.HasLocalsInit("C.<add_EventNoAttribute>g__local1|4_0")); } [Fact] public void SkipLocalsInit_Class_ContainsLocalFunction() { var source = @" using System.Runtime.CompilerServices; using System; [SkipLocalsInit] public class C { void M() { var w = 1; w = w + w + w; void local() { var x = 1; x = x + x + x; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source); Assert.False(verifier.HasLocalsInit("C.M")); Assert.False(verifier.HasLocalsInit("C.<M>g__local|0_0")); } [Fact] public void SkipLocalsInit_Module_ContainsLocalFunction() { var source = @" using System.Runtime.CompilerServices; using System; [module: SkipLocalsInit] public class C { void M() { var w = 1; w = w + w + w; void local() { var x = 1; x = x + x + x; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source); Assert.False(verifier.HasLocalsInit("C.M")); Assert.False(verifier.HasLocalsInit("C.<M>g__local|0_0")); } [Theory] [InlineData(false, false, false, true)] [InlineData(false, false, true, false)] [InlineData(false, true, false, false)] [InlineData(false, true, true, false)] [InlineData(true, false, false, false)] [InlineData(true, false, true, false)] [InlineData(true, true, false, false)] [InlineData(true, true, true, false)] public void SkipLocalsInit_Lambda_01(bool skipLocalsType, bool skipLocalsMethod, bool skipLocalsLambda, bool expectedAreLocalsZeroed) { var source = $@"using System; using System.Runtime.CompilerServices; {GetSkipLocalsInit(skipLocalsType)} class Program {{ {GetSkipLocalsInit(skipLocalsMethod)} static void Main() {{ Action a = {GetSkipLocalsInit(skipLocalsLambda)} () => {{ int x = 1; x = x + x + x; }}; }} }}"; var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); Assert.Equal(expectedAreLocalsZeroed, verifier.HasLocalsInit("Program.<>c.<Main>b__0_0()")); var comp = (CSharpCompilation)verifier.Compilation; var tree = comp.SyntaxTrees[0]; var model = comp.GetSemanticModel(tree); var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); var lambda = exprs.SelectAsArray(e => model.GetSymbolInfo(e).Symbol).Single().GetSymbol<LambdaSymbol>(); Assert.Equal(expectedAreLocalsZeroed, lambda.AreLocalsZeroed); } [Theory] [InlineData(false, false, true)] [InlineData(false, true, false)] [InlineData(true, false, false)] [InlineData(true, true, false)] public void SkipLocalsInit_Lambda_02(bool skipLocalsType, bool skipLocalsLambda, bool expectedAreLocalsZeroed) { var source = $@"using System; using System.Runtime.CompilerServices; {GetSkipLocalsInit(skipLocalsType)} class Program {{ Action A = {GetSkipLocalsInit(skipLocalsLambda)} () => {{ int x = 1; x = x + x + x; }}; }}"; var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); Assert.Equal(expectedAreLocalsZeroed, verifier.HasLocalsInit("Program.<>c.<.ctor>b__1_0()")); var comp = (CSharpCompilation)verifier.Compilation; var tree = comp.SyntaxTrees[0]; var model = comp.GetSemanticModel(tree); var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); var lambda = exprs.SelectAsArray(e => model.GetSymbolInfo(e).Symbol).Single().GetSymbol<LambdaSymbol>(); Assert.Equal(expectedAreLocalsZeroed, lambda.AreLocalsZeroed); } // [SkipLocalsInit] on constructor is ignored [Theory] [InlineData(false, false, false, true)] [InlineData(false, false, true, false)] [InlineData(false, true, false, true)] [InlineData(false, true, true, false)] [InlineData(true, false, false, false)] [InlineData(true, false, true, false)] [InlineData(true, true, false, false)] [InlineData(true, true, true, false)] public void SkipLocalsInit_Lambda_03(bool skipLocalsType, bool skipLocalsMethod, bool skipLocalsLambda, bool expectedAreLocalsZeroed) { var source = $@"using System; using System.Runtime.CompilerServices; {GetSkipLocalsInit(skipLocalsType)} class Program {{ Action A = {GetSkipLocalsInit(skipLocalsLambda)} () => {{ int x = 1; x = x + x + x; }}; {GetSkipLocalsInit(skipLocalsMethod)} Program() {{ }} }}"; var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); Assert.Equal(expectedAreLocalsZeroed, verifier.HasLocalsInit("Program.<>c.<.ctor>b__1_0()")); var comp = (CSharpCompilation)verifier.Compilation; var tree = comp.SyntaxTrees[0]; var model = comp.GetSemanticModel(tree); var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); var lambda = exprs.SelectAsArray(e => model.GetSymbolInfo(e).Symbol).Single().GetSymbol<LambdaSymbol>(); Assert.Equal(expectedAreLocalsZeroed, lambda.AreLocalsZeroed); } private static string GetSkipLocalsInit(bool skipLocalsInit) => skipLocalsInit ? "[SkipLocalsInit]" : ""; [Fact, WorkItem(49434, "https://github.com/dotnet/roslyn/issues/49434")] public void SkipLocalsInit_Module_TopLevelStatements() { var source = @" using System.Runtime.CompilerServices; [module: SkipLocalsInit] var w = 1; w = w + w + w; void local() { var x = 1; x = x + x + x; } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe); Assert.False(verifier.HasLocalsInit("<top-level-statements-entry-point>")); Assert.False(verifier.HasLocalsInit("Program.<<Main>$>g__local|0_0")); } [Fact, WorkItem(49434, "https://github.com/dotnet/roslyn/issues/49434")] public void SkipLocalsInit_Module_TopLevelStatements_WithoutAttribute() { var source = @" var w = 1; w = w + w + w; void local() { var x = 1; x = x + x + x; } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify: Verification.Passes); Assert.True(verifier.HasLocalsInit("<top-level-statements-entry-point>")); Assert.True(verifier.HasLocalsInit("Program.<<Main>$>g__local|0_0")); } [Fact] public void SkipLocalsInit_BaseMethodWrapper() { var source = @" using System.Runtime.CompilerServices; using System; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [SkipLocalsInit] public virtual int M1(int i) { int x = i; x = x + x + x + x; return x; } } public class D : C { void M(int i) { new Action(() => base.M1(i)).Invoke(); } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M1")); Assert.Null(comp.HasLocalsInit("D.<>n__0")); // Base method wrapper for C.M1 } [Fact] public void SkipLocalsInit_BaseMethodWrapper_DifferentCompilation() { var source1 = @" using System.Runtime.CompilerServices; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [SkipLocalsInit] public virtual int M1(int i) { int x = i; x = x + x + x + x; return x; } } "; var source2 = @" using System; public class D : C { void M(int i) { new Action(() => base.M1(i)).Invoke(); } } "; var comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp1.HasLocalsInit("C.M1")); var reference = comp1.Compilation.ToMetadataReference(); var comp2 = CompileAndVerify(source2, references: new[] { reference }, verify: Verification.Passes); Assert.Null(comp2.HasLocalsInit("D.<>n__0")); // Base method wrapper for C.M1 } [Fact] public void SkipLocalsInitAttributeOnIteratorPropagatesToItsSynthesizedMethods() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public System.Collections.IEnumerable M_skip() { yield return 1; yield return 2; } public System.Collections.IEnumerable M_init() { yield return 3; yield return 4; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerator.MoveNext")); Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerator.MoveNext")); Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); // The following methods do not contain locals, so the attribute should not alter their behavior Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.IDisposable.Dispose")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.IDisposable.Dispose")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerable.GetEnumerator")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerable.GetEnumerator")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerator.get_Current")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerator.get_Current")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerator.Reset")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerator.Reset")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.Generic.IEnumerator<object>.get_Current")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.Generic.IEnumerator<object>.get_Current")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0..ctor")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1..ctor")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToIteratorLocalFunction() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { System.Collections.IEnumerable F() { yield return 1; yield return 2; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Collections.IEnumerator.MoveNext")); Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); } [Fact] public void SkipLocalsInitAttributeOnAsyncPropagatesToItsSynthesizedMethods() { var source = @" using System.Threading.Tasks; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public async Task M_skip() { await Task.Yield(); } public async Task M_init() { await Task.Yield(); } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); // The following method does not contain locals, so the attribute should not alter its behavior Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.SetStateMachine")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Runtime.CompilerServices.IAsyncStateMachine.SetStateMachine")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToAsyncLocalFunction() { var source = @" using System.Threading.Tasks; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { async Task F() { await Task.Yield(); } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToAsyncLambda() { var source = @" using System.Threading.Tasks; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { System.Action L = async () => { await Task.Yield(); }; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<>c.<<M>b__0_0>d.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); } [Fact] public void AnonymousTypeTemplateSymbolDelegatesToModuleWhenAskedAboutSkipLocalsInitAttribute() { var source_init = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { var anon = new { Value = 1 }; } } "; var source_skip = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public void M() { var anon = new { Value = 1 }; } } "; var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.Null(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.GetHashCode")); Assert.Null(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>..ctor")); Assert.True(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Equals")); Assert.True(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.ToString")); Assert.Null(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Value.get")); Assert.Null(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.GetHashCode")); Assert.Null(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>..ctor")); Assert.False(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Equals")); Assert.False(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.ToString")); Assert.Null(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Value.get")); } [Fact] public void SynthesizedClosureEnvironmentNeverSkipsLocalsInit() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { int x = 1; System.Action L = () => x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); Assert.Null(comp.HasLocalsInit("C.<>c__DisplayClass0_0..ctor")); } [Fact] public void SynthesizedEmbeddedAttributeSymbolDelegatesToModuleWhenAskedAboutSkipLocalsInitAttribute() { var source_init = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M(in int x) { } } "; var source_skip = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public void M(in int x) { } } "; var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll); Assert.Null(comp_init.HasLocalsInit("Microsoft.CodeAnalysis.EmbeddedAttribute..ctor")); Assert.Null(comp_init.HasLocalsInit("System.Runtime.CompilerServices.IsReadOnlyAttribute..ctor")); Assert.Null(comp_skip.HasLocalsInit("Microsoft.CodeAnalysis.EmbeddedAttribute..ctor")); Assert.Null(comp_skip.HasLocalsInit("System.Runtime.CompilerServices.IsReadOnlyAttribute..ctor")); } [Fact] public void SourceMemberMethodSymbolDelegatesToTypeWhenSkipLocalsInitAttributeIsNotFound() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C_init { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] public void M() { int x = 1; x = x + x + x; } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public class C_skip { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] public void M() { int x = 1; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C_init.M")); Assert.False(comp.HasLocalsInit("C_skip.M")); } [Fact] public void SkipLocalsInitAttributeOnPropertyPropagatesToBothAccessors() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P_skip { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } public int P_init { get { int x = 3; return x + x + x; } set { int x = 4; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.P_skip.get")); Assert.True(comp.HasLocalsInit("C.P_init.get")); Assert.False(comp.HasLocalsInit("C.P_skip.set")); Assert.True(comp.HasLocalsInit("C.P_init.set")); } [Fact] public void SkipLocalsInitAttributeOnAccessor() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public int P1 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } public int P2 { get { int x = 3; return x + x + x; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set { int x = 4; x = x + x + x; } } public int P3 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { int x = 5; return x + x + x; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set { int x = 6; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.P1.get")); Assert.True(comp.HasLocalsInit("C.P1.set")); Assert.True(comp.HasLocalsInit("C.P2.get")); Assert.False(comp.HasLocalsInit("C.P2.set")); Assert.False(comp.HasLocalsInit("C.P3.get")); Assert.False(comp.HasLocalsInit("C.P3.set")); } [Fact] public void SkipLocalsInitAttributeOnIteratorGetAccessor() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public System.Collections.IEnumerable P { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { yield return 1; yield return 2; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<get_P>d__1.System.Collections.IEnumerator.MoveNext")); Assert.False(comp.HasLocalsInit("C.<get_P>d__1.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); } [Fact] public void SkipLocalsInitAttributeOnPropertyAndAccessor() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P1 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P2 { get { int x = 3; return x + x + x; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set { int x = 4; x = x + x + x; } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P3 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { int x = 5; return x + x + x; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set { int x = 6; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.P1.get")); Assert.False(comp.HasLocalsInit("C.P1.set")); Assert.False(comp.HasLocalsInit("C.P2.get")); Assert.False(comp.HasLocalsInit("C.P2.set")); Assert.False(comp.HasLocalsInit("C.P3.get")); Assert.False(comp.HasLocalsInit("C.P3.set")); } [Fact] public void SourcePropertySymbolDelegatesToTypeWhenSkipLocalsInitAttributeIsNotFound() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C_init { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] public int P { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public class C_skip { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] public int P { get { int x = 3; return x + x + x; } set { int x = 4; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C_init.P.get")); Assert.False(comp.HasLocalsInit("C_skip.P.get")); Assert.True(comp.HasLocalsInit("C_init.P.set")); Assert.False(comp.HasLocalsInit("C_skip.P.set")); } [Fact] public void SkipLocalsInitAttributeOnAutoProperty() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P { get; set; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); // No locals are expected. We are just making sure it still works. Assert.Null(comp.HasLocalsInit("C.P.get")); Assert.Null(comp.HasLocalsInit("C.P.set")); } [Fact] public void SkipLocalsInitAttributeOnExpressionBodiedProperty() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { int p; int p2; int p3; [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P { get => p; set => p = value; } public int P2 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get => p2; [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set => p2 = value; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P3 => p3; } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); // No locals are expected. We are just making sure it still works. Assert.Null(comp.HasLocalsInit("C.P.get")); Assert.Null(comp.HasLocalsInit("C.P.set")); Assert.Null(comp.HasLocalsInit("C.P2.get")); Assert.Null(comp.HasLocalsInit("C.P2.set")); Assert.Null(comp.HasLocalsInit("C.P3.get")); } [Fact] public void SkipLocalsInitAttributeOnClassPropagatesToItsMembers() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] class C_skip { int P { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } void M() { int x = 3; x = x + x + x; } class C2 { void M2() { int x = 4; x = x + x + x; } } event System.EventHandler E { add { int x = 4; x = x + x + x; } remove { int x = 4; x = x + x + x; } } } class C_init { int P { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } void M() { int x = 3; x = x + x + x; } class C2 { void M2() { int x = 4; x = x + x + x; } } event System.EventHandler E { add { int x = 4; x = x + x + x; } remove { int x = 4; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C_init.P.get")); Assert.False(comp.HasLocalsInit("C_skip.P.get")); Assert.True(comp.HasLocalsInit("C_init.P.set")); Assert.False(comp.HasLocalsInit("C_skip.P.set")); Assert.True(comp.HasLocalsInit("C_init.M")); Assert.False(comp.HasLocalsInit("C_skip.M")); Assert.True(comp.HasLocalsInit("C_init.C2.M2")); Assert.False(comp.HasLocalsInit("C_skip.C2.M2")); Assert.True(comp.HasLocalsInit("C_init.E.add")); Assert.True(comp.HasLocalsInit("C_init.E.remove")); Assert.False(comp.HasLocalsInit("C_skip.E.add")); Assert.False(comp.HasLocalsInit("C_skip.E.remove")); } [Fact] public void SkipLocalsInitAttributeOnClassKeepsPropagatingToNestedClasses() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] class C { class C2 { void M2() { int x = 2; x = x + x + x; } class C3 { void M3() { int x = 3; x = x + x + x; } } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.C2.M2")); Assert.False(comp.HasLocalsInit("C.C2.C3.M3")); } [Fact] public void SkipLocalsInitAttributeOnNestedClassPropagatesToItsMembers() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] class C2 { int P2 { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } void M2() { int x = 3; x = x + x + x; } class C3 { void M3() { int x = 4; x = x + x + x; } } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.C2.P2.get")); Assert.False(comp.HasLocalsInit("C.C2.P2.set")); Assert.False(comp.HasLocalsInit("C.C2.M2")); Assert.False(comp.HasLocalsInit("C.C2.C3.M3")); } [Fact] public void SkipLocalsInitAttributeOnPartialClassPropagatesToItsMembers() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial class C { int P { get { int x = 1; return x = x + x + x; } set { int x = 2; x = x + x + x; } } void M() { int x = 3; x = x + x + x; } class C2 { void M2() { int x = 4; x = x + x + x; } } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] partial class C { } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.P.get")); Assert.False(comp.HasLocalsInit("C.P.set")); Assert.False(comp.HasLocalsInit("C.M")); Assert.False(comp.HasLocalsInit("C.C2.M2")); } [Fact] public void SourceNamedTypeSymbolDelegatesToContainingTypeWhenSkipLocalsInitAttributeIsNotFound() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } class C_init { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] class C { void M() { int x = 1; x = x + x + x; } } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public class C_skip { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] class C { void M() { int x = 1; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C_init.C.M")); Assert.False(comp.HasLocalsInit("C_skip.C.M")); } [Fact] public void SkipLocalsInitAttributeOnModule() { var source = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { void M() { int x = 1; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnExeModule() { var source = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { public static void Main() { int x = 1; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.Main")); } [Fact] public void SkipLocalsInitAttributeOnNetmodule() { var source = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { void M() { int x = 1; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.DebugModule.WithAllowUnsafe(true), verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnModuleAsReferenceDoesNotAlterBehavior() { var metadata_source = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } "; var source = @" class C { void M() { int x = 1; x = x + x + x; } } "; var metadata_comp = CreateCompilation(metadata_source, options: TestOptions.DebugModule.WithAllowUnsafe(true)); var comp = CompileAndVerify(source, references: new[] { metadata_comp.EmitToImageReference() }); Assert.True(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitInterfaces() { var src = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial interface I { int P { get { int x = 1; return x = x + x + x; } set { int x = 2; x = x + x + x; } } void M() { int x = 3; x = x + x + x; } class C2 { void M2() { int x = 4; x = x + x + x; } } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] partial interface I { } "; var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); verifier.VerifyIL("I.M", @" { // Code size 9 (0x9) .maxstack 2 .locals (int V_0) //x IL_0000: ldc.i4.3 IL_0001: stloc.0 IL_0002: ldloc.0 IL_0003: ldloc.0 IL_0004: add IL_0005: ldloc.0 IL_0006: add IL_0007: stloc.0 IL_0008: ret }"); Assert.False(verifier.HasLocalsInit("I.M")); Assert.False(verifier.HasLocalsInit("I.C2.M2")); Assert.False(verifier.HasLocalsInit("I.P.get")); Assert.False(verifier.HasLocalsInit("I.P.set")); } [Fact] public void SkipLocalsInitOnEventAccessors() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { [System.Runtime.CompilerServices.SkipLocalsInit] event System.EventHandler E { add { int x = 1; x += x + 1; } remove { int x = 1; x += x + 1; } } event System.EventHandler E2 { [System.Runtime.CompilerServices.SkipLocalsInit] add { int x = 1; x += x + 1; } remove { int x = 1; x += x + 1; } } }"; var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); var verifier = CompileAndVerify(comp, verify: Verification.Fails); const string il = @" { // Code size 10 (0xa) .maxstack 3 .locals (int V_0) //x IL_0000: nop IL_0001: ldc.i4.1 IL_0002: stloc.0 IL_0003: ldloc.0 IL_0004: ldloc.0 IL_0005: ldc.i4.1 IL_0006: add IL_0007: add IL_0008: stloc.0 IL_0009: ret }"; verifier.VerifyIL("C.E.add", il); verifier.VerifyIL("C.E.remove", il); verifier.VerifyIL("C.E2.add", il); verifier.VerifyIL("C.E2.remove", il.Replace(".locals", ".locals init")); } [Fact] public void SkipLocalsInitAbstract() { const string skipLocalsInitDef1 = @" namespace System.Runtime.CompilerServices { [System.AttributeUsage(System.AttributeTargets.All, Inherited = true)] public class SkipLocalsInitAttribute : System.Attribute { } }"; var src = @" [System.Runtime.CompilerServices.SkipLocalsInit] abstract class A { public int M1() { int x = 1; return x = x + x + x; } } class B : A { public int M2() { int x = 1; return x = x + x + x; } }"; var comp = CreateCompilation(new[] { src, skipLocalsInitDef1 }, options: TestOptions.UnsafeDebugDll); var verifier = CompileAndVerify(comp, verify: Verification.Skipped); Assert.False(verifier.HasLocalsInit("A.M1")); // SkipLocalsInit is not treated as inherited, regardless of AttributeUsage inheritance Assert.True(verifier.HasLocalsInit("B.M2")); } [Fact] public void SkipLocalsInitFinalizers() { var src = @" [System.Runtime.CompilerServices.SkipLocalsInit] class C { ~C() { int x = 1; System.Console.WriteLine(x = x + x + x); } }"; var verifier = CompileAndVerifyWithSkipLocalsInit(src); Assert.False(verifier.HasLocalsInit("C.Finalize")); } [Fact] public void SkipLocalsInitInitializer() { var src = @" [System.Runtime.CompilerServices.SkipLocalsInit] class C { static int M(out int x) { x = 1; return x; } int _f = M(out var x) + x + x + x; }"; var verifier = CompileAndVerifyWithSkipLocalsInit(src); Assert.False(verifier.HasLocalsInit("C..ctor")); } [Fact] public void SkipLocalsInitImplicitConstructor() { var src = @" using System.Runtime.CompilerServices; [SkipLocalsInit] class ClassWithAttributeWithLocal { int i = M(out string s); static int M(out string s) { s = """"; return 42; } } class ClassNoAttributeWithLocal { int i = M(out string s); static int M(out string s) { s = """"; return 42; } } [SkipLocalsInit] class ClassWithAttributeNoLocal { int i = 123; } class ClassNoAttributeNoLocal { int i = 123; } "; var verifier = CompileAndVerifyWithSkipLocalsInit(src); Assert.False(verifier.HasLocalsInit("ClassWithAttributeWithLocal..ctor")); Assert.True(verifier.HasLocalsInit("ClassNoAttributeWithLocal..ctor")); Assert.Null(verifier.HasLocalsInit("ClassWithAttributeNoLocal..ctor")); Assert.Null(verifier.HasLocalsInit("ClassNoAttributeNoLocal..ctor")); } [Theory] [InlineData("", "", true)] [InlineData("", "[SkipLocalsInit]", true)] [InlineData("[SkipLocalsInit]", "", false)] [InlineData("[SkipLocalsInit]", "[SkipLocalsInit]", false)] [InlineData("[module: SkipLocalsInit]", "", false)] [InlineData("[module: SkipLocalsInit]", "[SkipLocalsInit]", false)] public void SkipLocalsInitLambdaFieldInitializer(string outerAttribute, string ctorAttribute, bool hasLocalsInit) { var src = $@" using System.Runtime.CompilerServices; using System; {outerAttribute} class C {{ {ctorAttribute} C() {{ }} Action action = () => {{ int w = 1; w = w + w + w; void local() {{ int x = 1; x = x + x + x; }} }}; }} namespace System.Runtime.CompilerServices {{ public class SkipLocalsInitAttribute : System.Attribute {{ }} }} "; var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); Assert.Equal(hasLocalsInit, verifier.HasLocalsInit("C.<>c.<.ctor>b__0_0")); // action Assert.Equal(hasLocalsInit, verifier.HasLocalsInit("C.<.ctor>g__local|0_1")); // local } [Theory] [InlineData("", "", "", true)] [InlineData("", "[SkipLocalsInit]", "", true)] [InlineData("", "", "[SkipLocalsInit]", true)] [InlineData("[SkipLocalsInit]", "", "", false)] [InlineData("[SkipLocalsInit]", "", "[SkipLocalsInit]", false)] [InlineData("[module: SkipLocalsInit]", "", "", false)] [InlineData("[module: SkipLocalsInit]", "", "[SkipLocalsInit]", false)] public void SkipLocalsInitLambdaPropertyInitializer(string outerAttribute, string ctorAttribute, string propAttribute, bool hasLocalsInit) { var src = $@" using System.Runtime.CompilerServices; using System; {outerAttribute} class C {{ {ctorAttribute} C() {{ }} {propAttribute} Action Prop {{ get; }} = () => {{ int w = 1; w = w + w + w; void local() {{ int x = 1; x = x + x + x; }} }}; }} namespace System.Runtime.CompilerServices {{ public class SkipLocalsInitAttribute : System.Attribute {{ }} }} "; var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); Assert.Equal(hasLocalsInit, verifier.HasLocalsInit("C.<>c.<.ctor>b__0_0")); // lambda Assert.Equal(hasLocalsInit, verifier.HasLocalsInit("C.<.ctor>g__local|0_1")); // local } [Fact] public void SkipLocalsInitMultipleAttributes() { var src = @" class C { [System.Runtime.CompilerServices.SkipLocalsInit] [System.Diagnostics.ConditionalAttribute(""RELEASE"")] void M() { int x = 1; x = x + x + x; } }"; const string skipLocalsInitDef = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } }"; var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.UnsafeReleaseDll); var verifier = CompileAndVerify(comp, verify: Verification.Fails); Assert.False(verifier.HasLocalsInit("C.M")); } #endregion [Fact, WorkItem(807, "https://github.com/dotnet/roslyn/issues/807")] public void TestAttributePropagationForAsyncAndIterators_01() { var source = CreateCompilationWithMscorlib45(@" using System; using System.Collections.Generic; using System.Threading.Tasks; class Program { static void Main(string[] args) { } [MyAttribute] [System.Diagnostics.DebuggerNonUserCodeAttribute] [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepperBoundaryAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] public async Task<int> test1() { return await DoNothing(); } public async Task<int> test2() { return await DoNothing(); } async Task<int> DoNothing() { return 1; } [MyAttribute] [System.Diagnostics.DebuggerNonUserCodeAttribute] [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepperBoundaryAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] public IEnumerable<int> Test3() { yield return 1; yield return 2; } public IEnumerable<int> Test4() { yield return 1; yield return 2; } } class MyAttribute : System.Attribute { } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var program = m.GlobalNamespace.GetTypeMember("Program"); Assert.Equal("", CheckAttributePropagation(((NamedTypeSymbol)program.GetMember<MethodSymbol>("test1"). GetAttribute("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"). ConstructorArguments.Single().ValueInternal). GetMember<MethodSymbol>("MoveNext"))); Assert.Equal(0, ((NamedTypeSymbol)program.GetMember<MethodSymbol>("test2"). GetAttribute("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"). ConstructorArguments.Single().ValueInternal). GetMember<MethodSymbol>("MoveNext").GetAttributes().Length); Assert.Equal("", CheckAttributePropagation(((NamedTypeSymbol)program.GetMember<MethodSymbol>("Test3"). GetAttribute("System.Runtime.CompilerServices", "IteratorStateMachineAttribute"). ConstructorArguments.Single().ValueInternal). GetMember<MethodSymbol>("MoveNext"))); Assert.Equal(0, ((NamedTypeSymbol)program.GetMember<MethodSymbol>("Test4"). GetAttribute("System.Runtime.CompilerServices", "IteratorStateMachineAttribute"). ConstructorArguments.Single().ValueInternal). GetMember<MethodSymbol>("MoveNext").GetAttributes().Length); }; CompileAndVerify(source, symbolValidator: attributeValidator); } private static string CheckAttributePropagation(Symbol symbol) { string result = ""; if (symbol.GetAttributes("", "MyAttribute").Any()) { result += "MyAttribute is present\n"; } if (!symbol.GetAttributes("System.Diagnostics", "DebuggerNonUserCodeAttribute").Any()) { result += "DebuggerNonUserCodeAttribute is missing\n"; } if (!symbol.GetAttributes("System.Diagnostics", "DebuggerHiddenAttribute").Any()) { result += "DebuggerHiddenAttribute is missing\n"; } if (!symbol.GetAttributes("System.Diagnostics", "DebuggerStepperBoundaryAttribute").Any()) { result += "DebuggerStepperBoundaryAttribute is missing\n"; } if (!symbol.GetAttributes("System.Diagnostics", "DebuggerStepThroughAttribute").Any()) { result += "DebuggerStepThroughAttribute is missing\n"; } return result; } [Fact, WorkItem(4521, "https://github.com/dotnet/roslyn/issues/4521")] public void TestAttributePropagationForAsyncAndIterators_02() { var source = CreateCompilationWithMscorlib45(@" using System; using System.Collections.Generic; using System.Threading.Tasks; [MyAttribute] [System.Diagnostics.DebuggerNonUserCodeAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] class Program1 { static void Main(string[] args) { } public async Task<int> test1() { return await DoNothing(); } async Task<int> DoNothing() { return 1; } public IEnumerable<int> Test3() { yield return 1; yield return 2; } } class Program2 { static void Main(string[] args) { } public async Task<int> test2() { return await DoNothing(); } async Task<int> DoNothing() { return 1; } public IEnumerable<int> Test4() { yield return 1; yield return 2; } } class MyAttribute : System.Attribute { } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var program1 = m.GlobalNamespace.GetTypeMember("Program1"); var program2 = m.GlobalNamespace.GetTypeMember("Program2"); Assert.Equal("DebuggerHiddenAttribute is missing\nDebuggerStepperBoundaryAttribute is missing\n", CheckAttributePropagation(((NamedTypeSymbol)program1.GetMember<MethodSymbol>("test1"). GetAttribute("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"). ConstructorArguments.Single().ValueInternal))); Assert.Equal("DebuggerNonUserCodeAttribute is missing\nDebuggerHiddenAttribute is missing\nDebuggerStepperBoundaryAttribute is missing\nDebuggerStepThroughAttribute is missing\n", CheckAttributePropagation(((NamedTypeSymbol)program2.GetMember<MethodSymbol>("test2"). GetAttribute("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"). ConstructorArguments.Single().ValueInternal))); Assert.Equal("DebuggerHiddenAttribute is missing\nDebuggerStepperBoundaryAttribute is missing\n", CheckAttributePropagation(((NamedTypeSymbol)program1.GetMember<MethodSymbol>("Test3"). GetAttribute("System.Runtime.CompilerServices", "IteratorStateMachineAttribute"). ConstructorArguments.Single().ValueInternal))); Assert.Equal("DebuggerNonUserCodeAttribute is missing\nDebuggerHiddenAttribute is missing\nDebuggerStepperBoundaryAttribute is missing\nDebuggerStepThroughAttribute is missing\n", CheckAttributePropagation(((NamedTypeSymbol)program2.GetMember<MethodSymbol>("Test4"). GetAttribute("System.Runtime.CompilerServices", "IteratorStateMachineAttribute"). ConstructorArguments.Single().ValueInternal))); }; CompileAndVerify(source, symbolValidator: attributeValidator); } [Fact, WorkItem(10639, "https://github.com/dotnet/roslyn/issues/10639")] public void UsingStaticDirectiveDoesNotIgnoreObsoleteAttribute_DifferentSeverity() { var source = @" using System; using static TestError; using static TestWarning; [Obsolete (""Broken Error Class"", true)] static class TestError { public static void TestErrorFunc() { } } [Obsolete (""Broken Warning Class"", false)] static class TestWarning { public static void TestWarningFunc() { } } class Test { public static void Main() { TestErrorFunc(); TestWarningFunc(); } }"; CreateCompilation(source).VerifyDiagnostics( // (3,14): error CS0619: 'TestError' is obsolete: 'Broken Error Class' // using static TestError; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "TestError").WithArguments("TestError", "Broken Error Class").WithLocation(3, 14), // (4,14): warning CS0618: 'TestWarning' is obsolete: 'Broken Warning Class' // using static TestWarning; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestWarning").WithArguments("TestWarning", "Broken Warning Class").WithLocation(4, 14)); } [Fact, WorkItem(10639, "https://github.com/dotnet/roslyn/issues/10639")] public void UsingStaticDirectiveDoesNotIgnoreObsoleteAttribute_NestedClasses() { var source = @" using System; using static ActiveParent.ObsoleteChild; using static ObsoleteParent.ActiveChild; using static BothObsoleteParent.BothObsoleteChild; static class ActiveParent { [Obsolete] public static class ObsoleteChild { public static void ObsoleteChildFunc() { } } } [Obsolete] static class ObsoleteParent { public static class ActiveChild { public static void ActiveChildFunc() { } } } [Obsolete] static class BothObsoleteParent { [Obsolete] public static class BothObsoleteChild { public static void BothObsoleteFunc() { } } } class Test { public static void Main() { ObsoleteChildFunc(); ActiveChildFunc(); BothObsoleteFunc(); } }"; CreateCompilation(source).VerifyDiagnostics( // (3,14): warning CS0612: 'ActiveParent.ObsoleteChild' is obsolete // using static ActiveParent.ObsoleteChild; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ActiveParent.ObsoleteChild").WithArguments("ActiveParent.ObsoleteChild").WithLocation(3, 14), // (4,14): warning CS0612: 'ObsoleteParent' is obsolete // using static ObsoleteParent.ActiveChild; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteParent").WithArguments("ObsoleteParent").WithLocation(4, 14), // (5,14): warning CS0612: 'BothObsoleteParent' is obsolete // using static BothObsoleteParent.BothObsoleteChild; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "BothObsoleteParent").WithArguments("BothObsoleteParent").WithLocation(5, 14), // (5,14): warning CS0612: 'BothObsoleteParent.BothObsoleteChild' is obsolete // using static BothObsoleteParent.BothObsoleteChild; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "BothObsoleteParent.BothObsoleteChild").WithArguments("BothObsoleteParent.BothObsoleteChild").WithLocation(5, 14)); } [Fact, WorkItem(19394, "https://github.com/dotnet/roslyn/issues/19394")] public void WellKnownTypeAsStruct_DefaultConstructor_DynamicAttribute() { var code = @" namespace System.Runtime.CompilerServices { public struct DynamicAttribute { public DynamicAttribute(bool[] transformFlags) { } } } class T { void M(dynamic x) {} }"; CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics( // error CS0616: 'System.Runtime.CompilerServices.DynamicAttribute' is not an attribute class Diagnostic(ErrorCode.ERR_NotAnAttributeClass).WithArguments("System.Runtime.CompilerServices.DynamicAttribute").WithLocation(1, 1)); } [Fact, WorkItem(19394, "https://github.com/dotnet/roslyn/issues/19394")] public void WellKnownTypeAsStruct_NonDefaultConstructor_DynamicAttribute_Array() { var compilation = CreateCompilationWithCSharp(@" using System; namespace System.Runtime.CompilerServices { public struct DynamicAttribute { public DynamicAttribute(bool[] transformFlags) { } } } public class Program { public static void Test(dynamic[] x) { Console.WriteLine(x.Length); foreach (var y in x) { Console.WriteLine(y); } } public static void Main() { Test(new dynamic[] { ""first"", ""second"" }); } }", options: TestOptions.ReleaseExe); CompileAndVerify( compilation, expectedOutput: @" 2 first second", symbolValidator: module => { var attribute = module.ContainingAssembly.GetTypeByMetadataName("Program").GetMethod("Test").Parameters.Single().GetAttributes().Single(); Assert.Equal("System.Runtime.CompilerServices.DynamicAttribute", attribute.AttributeClass.ToTestDisplayString()); Assert.True(attribute.AttributeClass.IsStructType()); Assert.Equal(module.ContainingAssembly, attribute.AttributeClass.ContainingAssembly); Assert.Equal("transformFlags", attribute.AttributeConstructor.Parameters.Single().Name); }); } [Fact, WorkItem(19394, "https://github.com/dotnet/roslyn/issues/19394")] public void WellKnownTypeAsStruct_DefaultConstructor_IsReadOnlyAttribute() { var code = @" namespace System.Runtime.CompilerServices { public struct IsReadOnlyAttribute { } } class Test { void M(in int x) { } }"; CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics( // error CS0616: 'IsReadOnlyAttribute' is not an attribute class Diagnostic(ErrorCode.ERR_NotAnAttributeClass).WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").WithLocation(1, 1)); } /// <summary> /// Verify that a synthesized (and emitted) parameterless constructor can be referenced /// in metadata for an "attribute type", even if the attribute type is a struct. Compare /// with previous test where no parameterless constructor is emitted for the struct type. /// </summary> [Theory] [InlineData( @"#pragma warning disable 414 namespace System.Runtime.CompilerServices { public struct IsReadOnlyAttribute { private int F = 1; // requires synthesized parameterless .ctor } }")] [InlineData( @"namespace System.Runtime.CompilerServices { public struct IsReadOnlyAttribute { // explicit parameterless .ctor public IsReadOnlyAttribute() { } } }")] public void WellKnownTypeAsStruct_ParameterlessConstructor_IsReadOnlyAttribute(string sourceAttribute) { var sourceA = @"public class A { public static void M(in int i) { System.Console.WriteLine(i); } }"; var sourceB = @"class B { static void Main() { int i = 42; A.M(in i); } }"; var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview); var refA = comp.EmitToImageReference(); CompileAndVerify(sourceB, references: new[] { refA }, expectedOutput: "42"); } [Fact] public void TestObsoleteOnPropertyAccessorUsedInNameofAndXmlDocComment() { var code = @" using System; /// <summary> /// <see cref=""Prop""/> /// </summary> class C { const string str = nameof(Prop); public int Prop { [Obsolete] get; [Obsolete] set; } } "; CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics(); } [Fact] public void TestObsoleteOnPropertyAndAccessors() { var code = @" using System; class C { public void M() => Prop = Prop; [Obsolete] public int Prop { [Obsolete] get; [Obsolete] set; } } "; CreateCompilation(code).VerifyDiagnostics( // (5,24): warning CS0612: 'C.Prop' is obsolete // public void M() => Prop = Prop; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop").WithLocation(5, 24), // (5,24): warning CS0612: 'C.Prop.set' is obsolete // public void M() => Prop = Prop; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop.set").WithLocation(5, 24), // (5,31): warning CS0612: 'C.Prop' is obsolete // public void M() => Prop = Prop; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop").WithLocation(5, 31), // (5,31): warning CS0612: 'C.Prop.get' is obsolete // public void M() => Prop = Prop; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop.get").WithLocation(5, 31)); } [Fact] public void TestObsoleteOnPropertyAccessorCSharp7() { var code = @" using System; class C { public int Prop { [Obsolete] get; set; } } "; CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( // (4,24): error CS8652: The feature 'obsolete on property accessor' is not available in C# 7.3. Please use language version 8.0 or greater. // public int Prop { [Obsolete] get; set; } Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "Obsolete").WithArguments("obsolete on property accessor", "8.0").WithLocation(5, 24)); } [Fact] public void TestDeprecatedOnPropertyAccessorCSharp7() { var code = @" using Windows.Foundation.Metadata; class C { public int Prop { [Deprecated(""don't use this"", DeprecationType.Remove, 50331648u)] get; set; } } "; CreateEmptyCompilation(code, references: WinRtRefs, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( // (5,24): error CS8652: The feature 'obsolete on property accessor' is not available in C# 7.3. Please use language version 8.0 or greater. // public int Prop { [Deprecated("don't use this", DeprecationType.Remove, 50331648u)] get; set; } Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, @"Deprecated(""don't use this"", DeprecationType.Remove, 50331648u)").WithArguments("obsolete on property accessor", "8.0").WithLocation(5, 24)); } [Fact] public void TestObsoleteOnEventAccessorCSharp7() { var code = @" using System; class C { public event System.Action E { [Obsolete] add { } remove { } } } "; CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( // (7,10): error CS8423: Attribute 'System.ObsoleteAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Obsolete] Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(7, 10)); } [Fact] public void TestDeprecatedOnEventAccessorCSharp7() { var code = @" using Windows.Foundation.Metadata; class C { public event System.Action E { [Deprecated(""don't use this"", DeprecationType.Remove, 50331648u)] add { } remove { } } } "; CreateEmptyCompilation(code, references: WinRtRefs, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( // (7,10): error CS8423: Attribute 'Windows.Foundation.Metadata.DeprecatedAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Deprecated("don't use this", DeprecationType.Remove, 50331648u)] Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(7, 10)); } [Fact, WorkItem(53418, "https://github.com/dotnet/roslyn/issues/53418")] public void TestObsoleteIndexerSlice() { var code = @" using System; public class C { [Obsolete(""error"", error: true)] public int Slice(int i, int j) => 0; [Obsolete(""error"", error: true)] public int this[int i] => 0; [Obsolete(""error"", error: true)] public int Count => 0; public void M() { _ = this[^1]; _ = this[..]; } } "; CreateCompilation(code, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( // (17,13): error CS0619: 'C.this[int]' is obsolete: 'error' // _ = this[^1]; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.this[int]", "error").WithLocation(17, 13), // (17,13): error CS0619: 'C.Count' is obsolete: 'error' // _ = this[^1]; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.Count", "error").WithLocation(17, 13), // (18,13): error CS0619: 'C.Slice(int, int)' is obsolete: 'error' // _ = this[..]; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.Slice(int, int)", "error").WithLocation(18, 13), // (18,13): error CS0619: 'C.Count' is obsolete: 'error' // _ = this[..]; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.Count", "error").WithLocation(18, 13) ); } } }
// Licensed to the .NET Foundation under one or more 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.Linq; using System.Reflection; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.PortableExecutable; using System.Runtime.InteropServices; using System.Text; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { public static class WellKnownAttributeTestsUtil { public static bool? HasLocalsInit(this CompilationVerifier verifier, string qualifiedMethodName, bool realIL = false) { if (realIL) { var peReader = new PEReader(verifier.EmittedAssemblyData); var metadataReader = peReader.GetMetadataReader(); int lastDotIndex = qualifiedMethodName.LastIndexOf('.'); var spanName = qualifiedMethodName.AsSpan(); var typeName = spanName.Slice(0, lastDotIndex); var methodName = spanName.Slice(lastDotIndex + 1); TypeDefinition typeDef = default; foreach (var typeHandle in metadataReader.TypeDefinitions) { var type = metadataReader.GetTypeDefinition(typeHandle); var name = metadataReader.GetString(type.Name); if (name.AsSpan().Equals(typeName, StringComparison.Ordinal)) { typeDef = type; break; } } Assert.NotEqual(default, typeDef); MethodDefinition methodDef = default; foreach (var methodHandle in typeDef.GetMethods()) { var method = metadataReader.GetMethodDefinition(methodHandle); var name = metadataReader.GetString(method.Name); if (name.AsSpan().Equals(methodName, StringComparison.Ordinal)) { methodDef = method; break; } } Assert.NotEqual(default, methodDef); var block = peReader.GetMethodBody(methodDef.RelativeVirtualAddress); return block.LocalVariablesInitialized; } else { var il = verifier.VisualizeIL(qualifiedMethodName, realIL); if (il.Contains(".locals init (")) { return true; } if (il.Contains(".locals (")) { return false; } return null; } } } public class AttributeTests_WellKnownAttributes : WellKnownAttributesTestBase { #region Misc [Fact] public void TestInteropAttributes01() { var source = CreateCompilationWithMscorlib40(@" using System; using System.Runtime.InteropServices; [assembly: ComCompatibleVersion(1, 2, 3, 4)] [ComImport(), Guid(""ABCDEF5D-2448-447A-B786-64682CBEF123"")] [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] [TypeLibImportClass(typeof(object)), TypeLibType(TypeLibTypeFlags.FAggregatable)] [BestFitMapping(false, ThrowOnUnmappableChar = true)] public interface IGoo { [AllowReversePInvokeCalls()] void DoSomething(); [ComRegisterFunction()] void Register(object o); [ComUnregisterFunction()] void UnRegister(); [TypeLibFunc(TypeLibFuncFlags.FDefaultBind)] void LibFunc(); } class C { public static void Main() {} } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var assembly = m.ContainingSymbol; // Assembly var attrs = assembly.GetAttributes(); Assert.Equal(1, attrs.Length); var attrSym = attrs.First(); Assert.Equal("ComCompatibleVersionAttribute", attrSym.AttributeClass.Name); Assert.Equal(4, attrSym.CommonConstructorArguments.Length); Assert.Equal(0, attrSym.CommonNamedArguments.Length); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 1); // get expected attr symbol var interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(m); var guidSym = interopNS.GetTypeMember("GuidAttribute"); var ciSym = interopNS.GetTypeMember("ComImportAttribute"); var iTypeSym = interopNS.GetTypeMember("InterfaceTypeAttribute"); var itCtor = iTypeSym.Constructors.First(); var tLibSym = interopNS.GetTypeMember("TypeLibImportClassAttribute"); var tLTypeSym = interopNS.GetTypeMember("TypeLibTypeAttribute"); var bfmSym = interopNS.GetTypeMember("BestFitMappingAttribute"); // IGoo var igoo = m.GlobalNamespace.GetTypeMember("IGoo"); Assert.Equal(6, igoo.GetAttributes().Length); // get attr by NamedTypeSymbol attrSym = igoo.GetAttribute(ciSym); Assert.Equal("ComImportAttribute", attrSym.AttributeClass.Name); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); Assert.Equal(0, attrSym.CommonNamedArguments.Length); attrSym = igoo.GetAttribute(guidSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "ABCDEF5D-2448-447A-B786-64682CBEF123"); // get attr by ctor attrSym = igoo.GetAttribute(itCtor); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)ComInterfaceType.InterfaceIsIUnknown); attrSym = igoo.GetAttribute(tLibSym); attrSym.VerifyValue(0, TypedConstantKind.Type, typeof(object)); attrSym = igoo.GetAttribute(tLTypeSym); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)TypeLibTypeFlags.FAggregatable); attrSym = igoo.GetAttribute(bfmSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, false); attrSym.VerifyNamedArgumentValue(0, "ThrowOnUnmappableChar", TypedConstantKind.Primitive, true); // ============================= var mem = (MethodSymbol)igoo.GetMembers("DoSomething").First(); Assert.Equal(1, mem.GetAttributes().Length); attrSym = mem.GetAttributes().First(); Assert.Equal("AllowReversePInvokeCallsAttribute", attrSym.AttributeClass.Name); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); mem = (MethodSymbol)igoo.GetMembers("Register").First(); attrSym = mem.GetAttributes().First(); Assert.Equal("ComRegisterFunctionAttribute", attrSym.AttributeClass.Name); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); mem = (MethodSymbol)igoo.GetMembers("UnRegister").First(); Assert.Equal(1, mem.GetAttributes().Length); mem = (MethodSymbol)igoo.GetMembers("LibFunc").First(); attrSym = mem.GetAttributes().First(); Assert.Equal(1, attrSym.CommonConstructorArguments.Length); // 32 Assert.Equal(TypeLibFuncFlags.FDefaultBind, (TypeLibFuncFlags)attrSym.CommonConstructorArguments[0].Value); }; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator, symbolValidator: null); } [Fact] public void TestInteropAttributes02() { var source = CreateCompilationWithMscorlib40(@" using System; using System.Runtime.InteropServices; [assembly: PrimaryInteropAssembly(1, 2)] [assembly: Guid(""1234C65D-1234-447A-B786-64682CBEF136"")] [ComVisibleAttribute(false)] [UnmanagedFunctionPointerAttribute(CallingConvention.StdCall, BestFitMapping = true, CharSet = CharSet.Ansi, SetLastError = true, ThrowOnUnmappableChar = true)] public delegate void DGoo(char p1, sbyte p2); [ComDefaultInterface(typeof(object)), ProgId(""ProgId"")] public class CGoo { [DispIdAttribute(123)] [LCIDConversion(1), ComConversionLoss()] public void Method(sbyte p1, string p2) { } } [ComVisible(true), TypeIdentifier(""1234C65D-1234-447A-B786-64682CBEF136"", ""EGoo, InteropAttribute, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"")] public enum EGoo { One, [TypeLibVar(TypeLibVarFlags.FDisplayBind)] Two, [Obsolete(""message"", false)] Three } class C { public static void Main() {} } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var assembly = m.ContainingSymbol; // get expected attr symbol NamespaceSymbol interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(m); var comvSym = interopNS.GetTypeMember("ComVisibleAttribute"); var ufPtrSym = interopNS.GetTypeMember("UnmanagedFunctionPointerAttribute"); var comdSym = interopNS.GetTypeMember("ComDefaultInterfaceAttribute"); var pgidSym = interopNS.GetTypeMember("ProgIdAttribute"); var tidSym = interopNS.GetTypeMember("TypeIdentifierAttribute"); var dispSym = interopNS.GetTypeMember("DispIdAttribute"); var lcidSym = interopNS.GetTypeMember("LCIDConversionAttribute"); var comcSym = interopNS.GetTypeMember("ComConversionLossAttribute"); var globalNS = m.GlobalNamespace; // delegate DGoo var type1 = globalNS.GetTypeMember("DGoo"); Assert.Equal(2, type1.GetAttributes().Length); var attrSym = type1.GetAttribute(comvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, false); attrSym = type1.GetAttribute(ufPtrSym); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)CallingConvention.StdCall); // 3 attrSym.VerifyNamedArgumentValue(0, "BestFitMapping", TypedConstantKind.Primitive, true); attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi); attrSym.VerifyNamedArgumentValue(2, "SetLastError", TypedConstantKind.Primitive, true); attrSym.VerifyNamedArgumentValue(3, "ThrowOnUnmappableChar", TypedConstantKind.Primitive, true); // class CGoo var type2 = globalNS.GetTypeMember("CGoo"); Assert.Equal(2, type2.GetAttributes().Length); attrSym = type2.GetAttribute(comdSym); attrSym.VerifyValue(0, TypedConstantKind.Type, typeof(object)); attrSym = type2.GetAttribute(pgidSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "ProgId"); var method = (MethodSymbol)type2.GetMembers("Method").First(); attrSym = method.GetAttribute(dispSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 123); attrSym = method.GetAttribute(lcidSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 1); attrSym = method.GetAttribute(comcSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); //' enum EGoo var sourceAssembly = assembly as SourceAssemblySymbol; if (sourceAssembly != null) { // Because this is a nopia local type it is only visible from the source assembly. var type3 = globalNS.GetTypeMember("EGoo"); Assert.Equal(2, type3.GetAttributes().Length); attrSym = type3.GetAttribute(comvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, true); attrSym = type3.GetAttribute(tidSym); attrSym.VerifyValue(1, TypedConstantKind.Primitive, "EGoo, InteropAttribute, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); var field = (FieldSymbol)type3.GetMembers("One").First(); Assert.Equal(0, field.GetAttributes().Length); field = (FieldSymbol)type3.GetMembers("Two").First(); Assert.Equal(1, field.GetAttributes().Length); attrSym = field.GetAttributes().First(); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)TypeLibVarFlags.FDisplayBind); field = (FieldSymbol)type3.GetMembers("Three").First(); attrSym = field.GetAttributes().First(); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "message"); attrSym.VerifyValue(1, TypedConstantKind.Primitive, false); } }; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator, symbolValidator: null); } [ConditionalFact(typeof(DesktopOnly))] public void TestPseudoAttributes1() { #region "Source" var text = @" using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; [ComImport(), Guid(""6B29FC40-CA47-1067-B31D-00DD010662DA"")] public interface IBar { ulong Method1([OptionalAttribute(), DefaultParameterValue(99uL)]ref ulong v); string Method2([InAttribute(), Out(), DefaultParameterValue(""Ref"")]ref string v); object Method3( [InAttribute(), OptionalAttribute(), DefaultParameterValue(' ')]char v1, [Out()][OptionalAttribute()][DefaultParameterValue(0f)]float v2, [InAttribute()][OptionalAttribute()][DefaultParameterValue(null)]string v3); [PreserveSig()] void Method4( [DateTimeConstant(123456)]DateTime p1, [DecimalConstant(0, 0, 100, 100, 100)]decimal p2, [OptionalAttribute(), IDispatchConstant()]ref object p3); } [Serializable(), StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8, CharSet = System.Runtime.InteropServices.CharSet.Unicode)] public class CBar { [NonSerialized(), MarshalAs(UnmanagedType.I8), FieldOffset(0)] public long field; } class C { public static void Main() {} } "; #endregion #region Verifier Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var assembly = m.ContainingSymbol; // get expected attr symbol NamespaceSymbol sysNS = Get_System_NamespaceSymbol(m); NamespaceSymbol interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(sysNS); NamespaceSymbol compsrvNS = Get_System_Runtime_CompilerServices_NamespaceSymbol(sysNS); var serSym = sysNS.GetTypeMember("SerializableAttribute"); var nosSym = sysNS.GetTypeMember("NonSerializedAttribute"); var ciptSym = interopNS.GetTypeMember("ComImportAttribute"); var laySym = interopNS.GetTypeMember("StructLayoutAttribute"); var sigSym = interopNS.GetTypeMember("PreserveSigAttribute"); var offSym = interopNS.GetTypeMember("FieldOffsetAttribute"); var mshSym = interopNS.GetTypeMember("MarshalAsAttribute"); var optSym = interopNS.GetTypeMember("OptionalAttribute"); var inSym = interopNS.GetTypeMember("InAttribute"); var outSym = interopNS.GetTypeMember("OutAttribute"); // non pseudo var dtcSym = compsrvNS.GetTypeMember("DateTimeConstantAttribute"); var dmcSym = compsrvNS.GetTypeMember("DecimalConstantAttribute"); var iscSym = compsrvNS.GetTypeMember("IDispatchConstantAttribute"); var globalNS = m.GlobalNamespace; // Interface IBar var type1 = globalNS.GetTypeMember("IBar"); var attrSym = type1.GetAttribute(ciptSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); MethodSymbol method = null; ParameterSymbol parm = null; var sourceAssembly = assembly as SourceAssemblySymbol; if (sourceAssembly != null) { // Default attribute is in system.dll not mscorlib. Only do this check for source attributes. var defvSym = interopNS.GetTypeMember("DefaultParameterValueAttribute"); method = type1.GetMember<MethodSymbol>("Method1"); parm = method.Parameters[0]; attrSym = parm.GetAttribute(defvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 99uL); attrSym = parm.GetAttribute(optSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); method = type1.GetMember<MethodSymbol>("Method2"); parm = method.Parameters[0]; Assert.Equal(3, parm.GetAttributes().Length); attrSym = parm.GetAttribute(defvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "Ref"); attrSym = parm.GetAttribute(inSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); attrSym = parm.GetAttribute(outSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); method = type1.GetMember<MethodSymbol>("Method3"); parm = method.Parameters[1]; // v2 Assert.Equal(3, parm.GetAttributes().Length); attrSym = parm.GetAttribute(defvSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 0f); attrSym = parm.GetAttribute(optSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); attrSym = parm.GetAttribute(outSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); } method = type1.GetMember<MethodSymbol>("Method4"); attrSym = method.GetAttributes().First(); Assert.Equal("PreserveSigAttribute", attrSym.AttributeClass.Name); parm = method.Parameters[0]; attrSym = parm.GetAttributes().First(); Assert.Equal("DateTimeConstantAttribute", attrSym.AttributeClass.Name); // attrSym.VerifyValue(0, TypedConstantKind.Primitive, 123456); parm = method.Parameters[1]; attrSym = parm.GetAttributes().First(); Assert.Equal("DecimalConstantAttribute", attrSym.AttributeClass.Name); Assert.Equal(5, attrSym.CommonConstructorArguments.Length); attrSym.VerifyValue(2, TypedConstantKind.Primitive, 100); parm = method.Parameters[2]; attrSym = parm.GetAttribute(iscSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); // class CBar var type2 = globalNS.GetTypeMember("CBar"); Assert.Equal(2, type2.GetAttributes().Length); attrSym = type2.GetAttribute(serSym); Assert.Equal("SerializableAttribute", attrSym.AttributeClass.Name); attrSym = type2.GetAttribute(laySym); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)LayoutKind.Explicit); Assert.Equal(3, attrSym.CommonNamedArguments.Length); attrSym.VerifyNamedArgumentValue(0, "Size", TypedConstantKind.Primitive, 16); attrSym.VerifyNamedArgumentValue(1, "Pack", TypedConstantKind.Primitive, 8); attrSym.VerifyNamedArgumentValue(2, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); var field = (FieldSymbol)type2.GetMembers("field").First(); Assert.Equal(3, field.GetAttributes().Length); attrSym = field.GetAttribute(nosSym); Assert.Equal(0, attrSym.CommonConstructorArguments.Length); attrSym = field.GetAttribute(mshSym); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)UnmanagedType.I8); attrSym = field.GetAttribute(offSym); attrSym.VerifyValue(0, TypedConstantKind.Primitive, 0); }; #endregion // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerifyWithMscorlib46(text, references: new[] { TestBase.SystemRef_v46 }, sourceSymbolValidator: attributeValidator); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttribute() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class Bar { public void Method([DateTimeConstant(-1)]DateTime p1) { } } "; #endregion // The native C# compiler emits this: // .param[1] // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( // 01 00 ff ff ff ff ff ff ff ff 00 00 // ) Action<ModuleSymbol> verifier = (module) => { var bar = (NamedTypeSymbol)((ModuleSymbol)module).GlobalNamespace.GetMember("Bar"); var method = (MethodSymbol)bar.GetMember("Method"); var parameters = method.GetParameters(); var theParameter = (PEParameterSymbol)parameters[0]; var peModule = (PEModuleSymbol)module; Assert.Equal(ParameterAttributes.HasDefault, theParameter.Flags); // native compiler has None instead // let's find the attribute in the PE metadata var attributeInfo = PEModule.FindTargetAttribute(peModule.Module.MetadataReader, theParameter.Handle, AttributeDescription.DateTimeConstantAttribute); Assert.True(attributeInfo.HasValue); long attributeValue; Assert.True(peModule.Module.TryExtractLongValueFromAttribute(attributeInfo.Handle, out attributeValue)); Assert.Equal(-1L, attributeValue); // check the attribute is constructed with a -1 // check .param has no value var constantValue = peModule.Module.GetParamDefaultValue(theParameter.Handle); Assert.Equal(ConstantValue.Null, constantValue); }; var comp = CompileAndVerify(source, symbolValidator: verifier); comp.VerifyDiagnostics(); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeReferencedViaRef() { #region "Source" var source1 = @" using System; using System.Runtime.CompilerServices; public class Bar { public void Method([DateTimeConstant(-1)]DateTime p1) { } } "; var source2 = @" public class Consumer { public static void M() { new Bar().Method(); } } "; #endregion var libComp = CreateCompilation(source1); var libCompRef = new CSharpCompilationReference(libComp); var comp2 = CreateCompilation(source2, new[] { libCompRef }); comp2.VerifyDiagnostics( // (6,19): error CS7036: There is no argument given that corresponds to the required formal parameter 'p1' of 'Bar.Method(DateTime)' // new Bar().Method(); Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Method").WithArguments("p1", "Bar.Method(System.DateTime)").WithLocation(6, 19) ); // The native compiler also gives an error: error CS1501: No overload for method 'Method' takes 0 arguments var libAssemblyRef = libComp.EmitToImageReference(); var comp3 = CreateCompilation(source2, new[] { libAssemblyRef }); comp3.VerifyDiagnostics( // (6,19): error CS7036: There is no argument given that corresponds to the required formal parameter 'p1' of 'Bar.Method(DateTime)' // new Bar().Method(); Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Method").WithArguments("p1", "Bar.Method(System.DateTime)").WithLocation(6, 19) ); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeWithBadDefaultValue() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class Bar { public DateTime M1([DateTimeConstant(-1)] DateTime x = default(DateTime)) { return x; } public static void Main() { Console.WriteLine(new Bar().M1().Ticks); } } "; #endregion // The native C# compiler would succeed and emit this: // .method public hidebysig instance void M1([opt] valuetype[mscorlib] System.DateTime x) cil managed // { // .param [1] = nullref // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 FF FF FF FF FF FF FF FF 00 00 ) var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (7,60): error CS8017: The parameter has multiple distinct default values. // public DateTime M1([DateTimeConstant(-1)] DateTime x = default(DateTime)) { return x; } Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "default(DateTime)").WithLocation(7, 60) ); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeWithValidDefaultValue() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class Bar { public DateTime M1([DateTimeConstant(42)] DateTime x = default(DateTime)) { return x; } public static void Main() { Console.WriteLine(new Bar().M1().Ticks); } } "; #endregion // The native C# compiler emits this: // .param [1] = nullref // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = (01 00 2A 00 00 00 00 00 00 00 00 00 ) var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (7,60): error CS8017: The parameter has multiple distinct default values. // public DateTime M1([DateTimeConstant(42)] DateTime x = default(DateTime)) { return x; } Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "default(DateTime)").WithLocation(7, 60) ); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeWithBadDefaultValueOnField() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class C { [DateTimeConstant(-1)] public DateTime F = default(DateTime); public static void Main() { System.Console.WriteLine(new C().F.Ticks); } } "; #endregion // The native C# compiler emits this: // .field public valuetype[mscorlib] System.DateTime F // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 FF FF FF FF FF FF FF FF 00 00 ) // using the native compiler, this code outputs 0 var comp = CompileAndVerify(source, expectedOutput: "0"); comp.VerifyDiagnostics(); } [Fact] [WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void DateTimeConstantAttributeWithValidDefaultValueOnField() { #region "Source" var source = @" using System; using System.Runtime.CompilerServices; public class C { [DateTimeConstant(42)] public DateTime F = default(DateTime); public static void Main() { System.Console.WriteLine(new C().F.Ticks); } } "; #endregion // The native C# compiler emits this: // .field public valuetype[mscorlib] System.DateTime F // .custom instance void[mscorlib] System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 2A 00 00 00 00 00 00 00 00 00 ) // Using the native compiler, the code executes to output 0 var comp = CompileAndVerify(source, expectedOutput: "0"); comp.VerifyDiagnostics(); } [Fact, WorkItem(217740, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=217740")] public void LoadingDateTimeConstantWithBadValue() { var ilsource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .method public hidebysig instance valuetype [mscorlib]System.DateTime Method([opt] valuetype [mscorlib]System.DateTime p) cil managed { .param [1] .custom instance void [mscorlib]System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 FF FF FF FF FF FF FF FF 00 00 ) // Code size 7 (0x7) .maxstack 1 .locals init (valuetype [mscorlib]System.DateTime V_0) IL_0000: nop IL_0001: ldarg.1 IL_0002: stloc.0 IL_0003: br.s IL_0005 IL_0005: ldloc.0 IL_0006: ret } // end of method C::Method .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method C::.ctor } // end of class C "; var cssource = @" public class D { public static void Main() { System.Console.WriteLine(new C().Method().Ticks); } } "; var ilReference = CompileIL(ilsource); CompileAndVerify(cssource, expectedOutput: "0", references: new[] { ilReference }); // The native compiler would produce a working exe, but that exe would fail at runtime } [Fact] public void TestDecimalConstantAttribute() { #region "Source" var text = @" using System; using System.Reflection; namespace TestProject { class Program { static void Main(string[] args) { foreach (var field in typeof(CCC).GetFields()) { PrintAttribute(field); } } static void PrintAttribute(FieldInfo field ) { var attr = field.GetCustomAttributesData()[0]; Console.WriteLine(""{0}, {1}, {2}, {3}, {4}, {5}"", attr.ConstructorArguments[0], attr.ConstructorArguments[1], attr.ConstructorArguments[2], attr.ConstructorArguments[3], attr.ConstructorArguments[4], field.IsInitOnly); } } } public class CCC { public const Decimal _Min = Decimal.MinValue; public const Decimal _Max = Decimal.MaxValue; public const Decimal _One = Decimal.One; public const Decimal _MinusOne = Decimal.MinusOne; public const Decimal _Zero = Decimal.Zero; }"; #endregion CompileAndVerify( text, expectedOutput: @" (Byte)0, (Byte)128, (UInt32)4294967295, (UInt32)4294967295, (UInt32)4294967295, True (Byte)0, (Byte)0, (UInt32)4294967295, (UInt32)4294967295, (UInt32)4294967295, True (Byte)0, (Byte)0, (UInt32)0, (UInt32)0, (UInt32)1, True (Byte)0, (Byte)128, (UInt32)0, (UInt32)0, (UInt32)1, True (Byte)0, (Byte)0, (UInt32)0, (UInt32)0, (UInt32)0, True"); } #endregion #region DefaultParameterValueAttribute, OptionalAttribute [Fact] public void DPV_Decimal() { string source = @" using System.Runtime.InteropServices; public class C { public static void f([Optional, DefaultParameterValue(default(decimal))]decimal a) { } } "; CreateCompilation(source).VerifyDiagnostics( // (6,59): error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(decimal)")); } [Fact] public void DPV_ImplicitConversion() { var source = @" using System.Runtime.InteropServices; public class C { public void M([DefaultParameterValue((short)1)]int goo) { } }"; Action<ModuleSymbol> verifier = (module) => { var c = (NamedTypeSymbol)((ModuleSymbol)module).GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); //EDMAURER the language doesn't believe the parameter is optional and //doesn't import the default parameter. Assert.False(ps[0].HasExplicitDefaultValue); Assert.Throws<InvalidOperationException>(() => ps[0].ExplicitDefaultValue); var theParameter = (PEParameterSymbol)ps[0]; object value = theParameter.ImportConstantValue().Value; Assert.True(value is short, "Expected value to be Int16"); Assert.Equal((short)1, value); Assert.False(ps[0].IsOptional); Assert.Equal(0, ps[0].GetAttributes().Length); }; CompileAndVerify(source, symbolValidator: verifier); } [Fact] public void DPV_String() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; public class C { public void M([DefaultParameterValue(""default str"")]string str) { } } "); Action<ModuleSymbol> verifier = module => { var c = (NamedTypeSymbol)module.GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); var theParameter = (PEParameterSymbol)ps[0]; Assert.Equal("default str", theParameter.ImportConstantValue().StringValue); Assert.False(ps[0].IsOptional); Assert.Equal(0, ps[0].GetAttributes().Length); }; CompileAndVerify(compilation, symbolValidator: verifier); } [Fact] public void OptionalAttribute() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; public class C { public void M([Optional]int i) { } } "); Action<ModuleSymbol> verifier = module => { var c = (NamedTypeSymbol)module.GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); Assert.False(ps[0].HasExplicitDefaultValue); Assert.Throws<InvalidOperationException>(() => ps[0].ExplicitDefaultValue); Assert.True(ps[0].IsOptional); Assert.Equal(0, ps[0].GetAttributes().Length); }; CompileAndVerify(compilation, symbolValidator: verifier); } [Fact] public void DPV_Optional_CallFromAnotherCompilation() { var c1 = CreateCompilation(@" using System.Runtime.InteropServices; public class C { public int O([Optional]int i) { return i; } public int D([DefaultParameterValue(1)]int i) { return i; } public int OD([Optional, DefaultParameterValue(2)]int i) { return i; } } "); var c2 = CreateCompilation(@" public class D { public void M() { C c = new C(); c.O(10); c.O(); c.D(20); // c.D(); ... can't call d with not arguments as it doesn't have [Optional] parameter c.OD(30); c.OD(); } } ", new[] { new CSharpCompilationReference(c1) }); c2.VerifyDiagnostics(); } [Fact] public void CustomDefaultParameterValueAttribute1() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Parameter)] public sealed class DefaultParameterValueAttribute : Attribute { public DefaultParameterValueAttribute() { } } } public class C { public static void M([Optional, DefaultParameterValue]int i) { } public static void Main() { M(); } } "); Action<ModuleSymbol> verifier = module => { var c = (NamedTypeSymbol)module.GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); // DPV is ignore if it has invalid signature Assert.False(ps[0].HasExplicitDefaultValue); Assert.Throws<InvalidOperationException>(() => ps[0].ExplicitDefaultValue); Assert.True(ps[0].IsOptional); }; CompileAndVerify(compilation, symbolValidator: verifier); } [Fact] public void CustomDefaultParameterValueAttribute2() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Parameter)] public sealed class DefaultParameterValueAttribute : Attribute { public DefaultParameterValueAttribute(object value, object trueValue) { } } } public class C { public static void M([Optional, DefaultParameterValue(null, 1)]int i) { } public static void Main() { M(); } } "); Action<ModuleSymbol> verifier = module => { var c = (NamedTypeSymbol)module.GlobalNamespace.GetMember("C"); var m = (MethodSymbol)c.GetMember("M"); var ps = m.GetParameters(); // DPV is ignore if it has invalid signature Assert.False(ps[0].HasExplicitDefaultValue); Assert.Throws<InvalidOperationException>(() => ps[0].ExplicitDefaultValue); Assert.True(ps[0].IsOptional); }; CompileAndVerify(compilation, symbolValidator: verifier); } [Fact] public void DPV_Optional_Indexers() { string source = @" using System.Runtime.InteropServices; public class C { public int this[[Optional, DefaultParameterValue(1)]int a, int b = 2, [Optional, DefaultParameterValue(null)]params int[] args] { get { return 0; } [param: Optional, DefaultParameterValue(3)] set { } } }"; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var paramDef in metadataReader.GetParameters()) { var param = metadataReader.GetParameter(paramDef); Assert.Equal(ParameterAttributes.Optional | ParameterAttributes.HasDefault, param.Attributes); } foreach (var handle in metadataReader.GetConstants()) { var constant = metadataReader.GetConstant(handle); var paramRow = metadataReader.GetParameter((ParameterHandle)constant.Parent); string name = metadataReader.GetString(paramRow.Name); byte[] expectedConstant; switch (name) { case "args": expectedConstant = new byte[] { 0x00, 0x00, 0x00, 0x00 }; break; case "a": expectedConstant = new byte[] { 0x01, 0x00, 0x00, 0x00 }; break; case "b": expectedConstant = new byte[] { 0x02, 0x00, 0x00, 0x00 }; break; case "value": expectedConstant = new byte[] { 0x03, 0x00, 0x00, 0x00 }; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } var actual = metadataReader.GetBlobBytes(constant.Value); AssertEx.Equal(expectedConstant, actual); } }); } [Fact] public void DPV_Optional_Delegates() { string source = @" using System.Runtime.InteropServices; public delegate void D([Optional, DefaultParameterValue(1)]ref int a, int b = 2, [Optional, DefaultParameterValue(null)]params int[] args); "; // Dev11: doesn't allow DPV(null) on int[], we do. CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var methodHandle in metadataReader.MethodDefinitions) { var methodDef = metadataReader.GetMethodDefinition(methodHandle); string methodName = metadataReader.GetString(methodDef.Name); foreach (var paramDef in methodDef.GetParameters()) { var paramRow = metadataReader.GetParameter(paramDef); string paramName = metadataReader.GetString(paramRow.Name); ParameterAttributes expectedFlags; string completeName = methodName + "." + paramName; switch (completeName) { case "BeginInvoke.a": case "BeginInvoke.args": case "EndInvoke.a": case "Invoke.a": case "Invoke.b": case "Invoke.args": expectedFlags = ParameterAttributes.Optional | ParameterAttributes.HasDefault; break; case ".ctor.object": case ".ctor.method": case "BeginInvoke.b": case "BeginInvoke.callback": case "BeginInvoke.object": case "EndInvoke.result": expectedFlags = 0; break; default: throw TestExceptionUtilities.UnexpectedValue(completeName); } Assert.Equal(expectedFlags, paramRow.Attributes); } } foreach (var handle in metadataReader.GetConstants()) { var constant = metadataReader.GetConstant(handle); var paramRow = metadataReader.GetParameter((ParameterHandle)constant.Parent); string name = metadataReader.GetString(paramRow.Name); byte[] expectedConstant; switch (name) { case "a": expectedConstant = new byte[] { 0x01, 0x00, 0x00, 0x00 }; break; case "args": expectedConstant = new byte[] { 0x00, 0x00, 0x00, 0x00 }; // null break; case "b": expectedConstant = new byte[] { 0x02, 0x00, 0x00, 0x00 }; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } var actual = metadataReader.GetBlobBytes(constant.Value); AssertEx.Equal(expectedConstant, actual); } }); } [Fact] public void OptionalAttribute_AttributeArrayParameter() { var text = @" using System; using System.Runtime.InteropServices; [A] public class A : Attribute { public A([Optional]int[] a) { } }"; CompileAndVerify(text); } [Fact] public void DefaultParameterValue_Null() { var text = @"using System.Runtime.InteropServices; public class C { } public class D { } public interface ISomeInterface { void Test1([DefaultParameterValue(null)]int[] arg); void Test2([DefaultParameterValue(null)]System.Type arg); void Test3([DefaultParameterValue(null)]System.Array arg); void Test4([DefaultParameterValue(null)]C arg); void Test5([DefaultParameterValue((C)null)]D arg); void Test6<T>([DefaultParameterValue(null)]T arg) where T : class; } "; // Dev10 reports CS1909, we don't CompileAndVerify(text); } [Fact, WorkItem(544934, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544934")] public void Bug13129() { string source = @" using System; using System.Runtime.InteropServices; class C { static void Goo([Optional][DefaultParameterValue(5)] decimal? x) { Console.WriteLine(x); } static void Main() { Goo(); } }"; CompileAndVerify(source, expectedOutput: @"5"); } [Fact] public void OptionalParameterInTheMiddle() { var compilation = CreateCompilation(@" using System.Runtime.InteropServices; using System; public class X { public int InTheMiddle(int a, [Optional, DefaultParameterValue((short)1)]int b, int c){ return 2; } }"); CompileAndVerify(compilation); } [Fact] public void OptionalAttributeParameter_Numeric() { var compilation = CreateCompilation(@" using System; [AttributeUsage(AttributeTargets.Parameter)] public sealed class X : Attribute { public X(int x, int y, int z, [System.Runtime.InteropServices.Optional]int w) { } } public class C { public static void M([X(0, z: 2, y: 1)]int i) { } } "); CompileAndVerify(compilation); } [Fact] public void OptionalAttributeParameter_Enum() { var compilation = CreateCompilation(@" using System; public enum E { A, B, C } [AttributeUsage(AttributeTargets.Parameter)] public sealed class X : Attribute { public X(int x, [System.Runtime.InteropServices.Optional]int y, int z, [System.Runtime.InteropServices.Optional]E w) { } } public class C { public static void M([X(x:0, z: 2)]int i) { } } "); CompileAndVerify(compilation); } [Fact, WorkItem(546785, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546785")] public void OptionalAttributeOnPartialMethodParameters() { var source = @" using System.Runtime.InteropServices; using System.Runtime.CompilerServices; partial class C { partial void Goo([Optional] int x); partial void Goo([DefaultParameterValue(0)] int x) { } partial void Goo2([DefaultParameterValue(0)] int x); partial void Goo2([Optional] int x) { } partial void Goo3([Optional][DefaultParameterValue(0)] int x); partial void Goo3(int x) { } partial void Goo4(int x); partial void Goo4([Optional][DefaultParameterValue(0)] int x) { } } "; Action<SourceOrdinaryMethodSymbol> partialValidator = (SourceOrdinaryMethodSymbol sourceMethod) => { Assert.True(sourceMethod.IsPartial, "Not a partial method?"); MethodSymbol partialDefPart = sourceMethod.IsPartialDefinition ? sourceMethod : sourceMethod.PartialDefinitionPart; var param = (SourceParameterSymbol)partialDefPart.Parameters[0]; Assert.True(param.HasOptionalAttribute, "No OptionalAttribute?"); MethodSymbol partialImplPart = sourceMethod.IsPartialImplementation ? sourceMethod : sourceMethod.PartialImplementationPart; param = (SourceParameterSymbol)partialImplPart.Parameters[0]; Assert.True(param.HasOptionalAttribute, "No OptionalAttribute?"); }; Action<ModuleSymbol> sourceValidator = (ModuleSymbol m) => { var typeC = m.GlobalNamespace.GetTypeMember("C"); var sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo"); partialValidator(sourceMethod); sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo2"); partialValidator(sourceMethod); sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo3"); partialValidator(sourceMethod); sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo4"); partialValidator(sourceMethod); }; CompileAndVerify(source, sourceSymbolValidator: sourceValidator); } [WorkItem(544303, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544303")] [Fact] public void OptionalAttributeBindingCycle() { string source = @" using System; using System.Runtime.InteropServices; [Goo] public class Goo: Attribute { public Goo([Optional][Goo]int y) {} public static void Main() {} }"; CompileAndVerify(source, expectedOutput: ""); } [Fact] public void OptionalAttributeBindingCycle_02() { string source = @" using System; using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { public class OptionalAttribute: Attribute { public OptionalAttribute(bool isOpt = true) {} } } public class Goo: Attribute { public Goo([Optional(isOpt: false)][Goo]int y) {} public static void Main() {} }"; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (15,17): warning CS0436: The type 'System.Runtime.InteropServices.OptionalAttribute' in '' conflicts with the imported type 'System.Runtime.InteropServices.OptionalAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in ''. // public Goo([Optional(isOpt: false)][Goo]int y) {} Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Optional").WithArguments("", "System.Runtime.InteropServices.OptionalAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Runtime.InteropServices.OptionalAttribute").WithLocation(15, 17), // (15,41): error CS7036: There is no argument given that corresponds to the required formal parameter 'y' of 'Goo.Goo(int)' // public Goo([Optional(isOpt: false)][Goo]int y) {} Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(15, 41)); } [Fact] public void OptionalAttributeBindingCycle_03() { string source = @" using System; using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Class)] public class OptionalAttribute: Attribute { public OptionalAttribute() {} } } public class Goo: Attribute { public Goo([Optional][Goo]int y) {} public static void Main() {} }"; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (16,17): warning CS0436: The type 'System.Runtime.InteropServices.OptionalAttribute' in '' conflicts with the imported type 'System.Runtime.InteropServices.OptionalAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in ''. // public Goo([Optional][Goo]int y) {} Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Optional").WithArguments("", "System.Runtime.InteropServices.OptionalAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Runtime.InteropServices.OptionalAttribute"), // (16,17): error CS0592: Attribute 'Optional' is not valid on this declaration type. It is only valid on 'class' declarations. // public Goo([Optional][Goo]int y) {} Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Optional").WithArguments("Optional", "class")); } [Fact] public void OptionalAttributeBindingCycle_04() { string source = @" using System; using System.Runtime.InteropServices; namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Class)] public class OptionalAttribute: Attribute { public OptionalAttribute(object o) {} } } public class Goo: Attribute { public Goo([Optional(new Goo())][Goo]int y) {} public static void Main() {} }"; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (16,17): warning CS0436: The type 'System.Runtime.InteropServices.OptionalAttribute' in '' conflicts with the imported type 'System.Runtime.InteropServices.OptionalAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in ''. // public Goo([Optional(new Goo())][Goo]int y) {} Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Optional").WithArguments("", "System.Runtime.InteropServices.OptionalAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Runtime.InteropServices.OptionalAttribute").WithLocation(16, 17), // (16,30): error CS7036: There is no argument given that corresponds to the required formal parameter 'y' of 'Goo.Goo(int)' // public Goo([Optional(new Goo())][Goo]int y) {} Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(16, 30), // (16,38): error CS7036: There is no argument given that corresponds to the required formal parameter 'y' of 'Goo.Goo(int)' // public Goo([Optional(new Goo())][Goo]int y) {} Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(16, 38)); } [Fact, WorkItem(546624, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546624")] public void DPV_Optional_Valid() { string source = @" using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustomAttribute : Attribute { public MyCustomAttribute(SecurityAction action, [Optional][MarshalAs(UnmanagedType.Interface)]object x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom2Attribute : Attribute { public MyCustom2Attribute(SecurityAction action, [Optional]object x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom3Attribute : Attribute { public MyCustom3Attribute([Optional]object x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom4Attribute : Attribute { public MyCustom4Attribute([Optional]SecurityAction x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom7Attribute : Attribute { public MyCustom7Attribute(SecurityAction action, [Optional]int x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom10Attribute: Attribute { public MyCustom10Attribute(SecurityAction x, [Optional][DefaultParameterValueAttribute(SecurityAction.Demand)]object y) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom11Attribute: Attribute { public MyCustom11Attribute([Optional][DefaultParameterValue(SecurityAction.Demand)]SecurityAction x) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyCustom12Attribute: Attribute { public MyCustom12Attribute(SecurityAction action, [Optional][DefaultParameterValue(null)]object x) { } } [MyCustom(SecurityAction.Demand, null)] [MyCustom2(SecurityAction.Demand, null)] [MyCustom3(SecurityAction.Demand)] [MyCustom4Attribute] [MyCustom4(SecurityAction.Demand)] [MyCustom7(SecurityAction.Demand, 0)] [MyCustom10(SecurityAction.Demand, null)] [MyCustom10(SecurityAction.Demand, SecurityAction.Demand)] [MyCustom11()] [MyCustom11(SecurityAction.Demand)] [MyCustom12(SecurityAction.Demand)] [MyCustom12(SecurityAction.Demand, 0)] class C { public static void Main() { typeof(C).GetCustomAttributes(false); } } "; CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: ""); } [Fact, WorkItem(546624, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546624")] public void CS7067ERR_BadAttributeParamDefaultArgument() { string source = @" using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermissionAttribute : CodeAccessSecurityAttribute { public MyPermissionAttribute(SecurityAction action, [Optional][MarshalAs(UnmanagedType.Interface)]object x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission2Attribute : CodeAccessSecurityAttribute { public MyPermission2Attribute(SecurityAction action, [Optional]object x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission3Attribute : CodeAccessSecurityAttribute { public MyPermission3Attribute([Optional]object x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission4Attribute : CodeAccessSecurityAttribute { public MyPermission4Attribute([Optional]SecurityAction x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission5Attribute : CodeAccessSecurityAttribute { public MyPermission5Attribute(SecurityAction action, object x = SecurityAction.Demand) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission6Attribute : CodeAccessSecurityAttribute { public MyPermission6Attribute(object x = SecurityAction.Demand) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class MyPermission7Attribute : CodeAccessSecurityAttribute { public MyPermission7Attribute(SecurityAction action, [Optional]int x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } class MyPermission8Attribute : CodeAccessSecurityAttribute { public MyPermission8Attribute([Optional][DefaultParameterValueAttribute(null)]SecurityAction x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } class MyPermission9Attribute : CodeAccessSecurityAttribute { public MyPermission9Attribute([Optional][DefaultParameterValueAttribute(-1)]SecurityAction x) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } class MyPermission10Attribute : CodeAccessSecurityAttribute { public MyPermission10Attribute(SecurityAction x, [Optional][DefaultParameterValueAttribute(SecurityAction.Demand)]object y) : base(SecurityAction.Demand) { } public override IPermission CreatePermission() { return null; } } [MyPermission(SecurityAction.Demand)] [MyPermission(SecurityAction.Demand, null)] [MyPermission2(SecurityAction.Demand)] [MyPermission2(SecurityAction.Demand, null)] [MyPermission3()] [MyPermission3(SecurityAction.Demand)] [MyPermission3(null)] [MyPermission4()] [MyPermission4(SecurityAction.Demand)] [MyPermission4(null)] [MyPermission5(SecurityAction.Demand)] [MyPermission5(SecurityAction.Demand, null)] [MyPermission6()] [MyPermission6(SecurityAction.Demand)] [MyPermission6(null)] [MyPermission7(SecurityAction.Demand)] [MyPermission7(SecurityAction.Demand, 0)] [MyPermission8()] [MyPermission8(SecurityAction.Demand)] [MyPermission9()] [MyPermission9(SecurityAction.Demand)] [MyPermission10(SecurityAction.Demand)] [MyPermission10(SecurityAction.Demand, null)] class C { public static void Main() { } } "; CreateCompilation(source).VerifyDiagnostics( // (63,65): error CS1763: 'x' is of type 'object'. A default parameter value of a reference type other than string can only be initialized with null // public MyPermission5Attribute(SecurityAction action, object x = SecurityAction.Demand) : base(SecurityAction.Demand) Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "object"), // (76,42): error CS1763: 'x' is of type 'object'. A default parameter value of a reference type other than string can only be initialized with null // public MyPermission6Attribute(object x = SecurityAction.Demand) : base(SecurityAction.Demand) Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "object"), // (101,46): error CS1908: The type of the argument to the DefaultParameterValue attribute must match the parameter type // public MyPermission8Attribute([Optional][DefaultParameterValueAttribute(null)]SecurityAction x) : base(SecurityAction.Demand) Diagnostic(ErrorCode.ERR_DefaultValueTypeMustMatch, "DefaultParameterValueAttribute"), // (113,46): error CS1908: The type of the argument to the DefaultParameterValue attribute must match the parameter type // public MyPermission9Attribute([Optional][DefaultParameterValueAttribute(-1)]SecurityAction x) : base(SecurityAction.Demand) Diagnostic(ErrorCode.ERR_DefaultValueTypeMustMatch, "DefaultParameterValueAttribute"), // (137,2): error CS7067: Attribute constructor parameter 'x' is optional, but no default parameter value was specified. // [MyPermission(SecurityAction.Demand)] Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission").WithArguments("x"), // (140,2): error CS7067: Attribute constructor parameter 'x' is optional, but no default parameter value was specified. // [MyPermission2(SecurityAction.Demand)] Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission2").WithArguments("x"), // (143,2): error CS7067: Attribute constructor parameter 'x' is optional, but no default parameter value was specified. // [MyPermission3()] Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission3").WithArguments("x"), // (149,16): error CS1503: Argument 1: cannot convert from '<null>' to 'System.Security.Permissions.SecurityAction' // [MyPermission4(null)] Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("1", "<null>", "System.Security.Permissions.SecurityAction"), // (167,2): error CS1763: 'y' is of type 'object'. A default parameter value of a reference type other than string can only be initialized with null // [MyPermission10(SecurityAction.Demand)] Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "MyPermission10(SecurityAction.Demand)").WithArguments("y", "object"), // (145,2): error CS7048: First argument to a security attribute must be a valid SecurityAction // [MyPermission3(null)] Diagnostic(ErrorCode.ERR_SecurityAttributeMissingAction, "MyPermission3"), // (147,2): error CS7049: Security attribute 'MyPermission4' has an invalid SecurityAction value '0' // [MyPermission4()] Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "MyPermission4()").WithArguments("MyPermission4", "0"), // (156,2): error CS7048: First argument to a security attribute must be a valid SecurityAction // [MyPermission6(null)] Diagnostic(ErrorCode.ERR_SecurityAttributeMissingAction, "MyPermission6")); } [Fact] [WorkItem(1036356, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1036356")] public void EnumAsDefaultParameterValue() { const string source = @" using System; using System.Runtime.InteropServices; class Program { static void Goo([Optional][DefaultParameterValue(DayOfWeek.Monday)] Enum x) { } static void Main() { Goo(); // 1 } }"; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (13,9): error CS0029: Cannot implicitly convert type 'int' to 'System.Enum' // Goo(); // 1 Diagnostic(ErrorCode.ERR_NoImplicitConv, "Goo()").WithArguments("int", "System.Enum").WithLocation(13, 9)); } #endregion #region DecimalConstantAttribute [Fact, WorkItem(544438, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544438"), WorkItem(538206, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538206")] public void DefaultParameterValueIntToObj() { // The native compiler's behavior: // It does honour int default values in attributes whether the parameter // is int or object, and whether the attributes appear in source or metadata. // The native compiler does NOT honor decimal and datetime attributes in source // but does honour them in metadata. // // Roslyn removes this inconsistency; we honour the decimal and datetime // attributes whether they appear in metadata or source. string source = @" using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; public class Parent { public void Goo1([Optional][DecimalConstant(0, 0, (uint)0, (uint)0, (uint)100)] decimal i) { Console.Write(i); } public void Goo3([Optional][DateTimeConstant(200)] DateTime dt) { Console.Write(dt.Ticks); } public void Goo4([Optional][DefaultParameterValue(300)] int i) { Console.Write(i); } public void Goo5([Optional][DefaultParameterValue(400)] object i) { Console.Write(i); } } class Test { public static void Main() { var p = new Parent(); p.Goo1(); p.Goo3(); p.Goo4(); p.Goo5(); } } "; CompileAndVerify(source, expectedOutput: @"100200300400"); } [WorkItem(544516, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544516")] [Fact] public void DecimalConstantAttributesAsMetadata() { var source = @" using System; using System.Reflection; using System.Runtime.CompilerServices; public class MyClass { //should have DecimalConstantAttribute. public const decimal DecI1 = 10000.213213M; //should not have DecimalConstantAttribute. public static readonly decimal DecI2 = 10000.213213M; public static void Main() { FieldInfo fi = typeof(MyClass).GetField(""DecI1""); object[] Attrs = fi.GetCustomAttributes(false); if (Attrs != null && Attrs.Length == 1 && Attrs[0].GetType() == typeof(DecimalConstantAttribute)) { Console.WriteLine(""Has DecimalConstantAttribute""); } fi = typeof(MyClass).GetField(""DecI2""); Attrs = fi.GetCustomAttributes(false); if (Attrs == null || Attrs.Length == 0) { Console.WriteLine(""No DecimalConstantAttribute""); } } }"; CompileAndVerify(source, expectedOutput: @"Has DecimalConstantAttribute No DecimalConstantAttribute"); } [ConditionalFact(typeof(ClrOnly), Reason = "https://github.com/dotnet/roslyn/issues/23760")] public void DecimalConstant_Indexers() { string source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { public decimal this[[Optional, DecimalConstant(1,2,3,4,5)]decimal a, decimal b = 2m] { get { return 0; } [param: Optional, DecimalConstant(10,20,30,40,50)] set { } } } "; var comp = CompileAndVerify(source, expectedSignatures: new[] { Signature("C", "get_Item", ".method public hidebysig specialname instance System.Decimal get_Item(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal a = -5534023223830852403.7, " + "[System.Runtime.CompilerServices.DecimalConstantAttribute(0, 0, 0, 0, 2)] [opt] System.Decimal b = 2) " + "cil managed"), Signature("C", "set_Item", ".method public hidebysig specialname instance System.Void set_Item(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal a = -5534023223830852403.7, " + "[System.Runtime.CompilerServices.DecimalConstantAttribute(0, 0, 0, 0, 2)] [opt] System.Decimal b = 2, " + "[System.Runtime.CompilerServices.DecimalConstantAttribute(10, 20, 30, 40, 50)] [opt] System.Decimal value = -55340232238.3085240370) " + "cil managed") }); } [ConditionalFact(typeof(ClrOnly), Reason = "https://github.com/dotnet/roslyn/issues/23760")] public void DecimalConstant_Delegates() { string source = @" using System.Runtime.InteropServices; using System.Runtime.CompilerServices; public delegate void D([Optional, DecimalConstantAttribute(hi: 3, sign: 2, mid: 4, low: 5, scale: 1)]ref decimal a, decimal b = 2m); "; var comp = CompileAndVerify(source, expectedSignatures: new[] { Signature("D", "BeginInvoke", ".method public hidebysig newslot virtual instance System.IAsyncResult BeginInvoke(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal& a = -5534023223830852403.7, " + "System.Decimal b, " + "System.AsyncCallback callback, " + "System.Object object) " + "runtime managed"), Signature("D", "EndInvoke", ".method public hidebysig newslot virtual instance System.Void EndInvoke(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal& a = -5534023223830852403.7, " + "System.IAsyncResult result) " + "runtime managed"), Signature("D", "Invoke", ".method public hidebysig newslot virtual instance System.Void Invoke(" + "[System.Runtime.CompilerServices.DecimalConstantAttribute(1, 2, 3, 4, 5)] [opt] System.Decimal& a = -5534023223830852403.7, " + "[System.Runtime.CompilerServices.DecimalConstantAttribute(0, 0, 0, 0, 2)] [opt] System.Decimal b = 2) " + "runtime managed") }); } #endregion #region InAttribute, OutAttribute [Fact] public void InOutAttributes() { var source = @" using System.Runtime.InteropServices; class C { public static void M1([In]ref int a, [In] int b, [In]params object[] c) { throw null; } public static void M2([Out]out int d, [Out] int e, [Out]params object[] f) { throw null; } public static void M3([In, Out]ref int g, [In, Out] int h, [In, Out]params object[] i) { throw null; } public static void M4([In]int j = 1, [Out]int k = 2, [In, Out]int l = 3) { throw null; } public static void M5(int m, out int n, ref int o) { throw null; } } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(15, metadataReader.GetTableRowCount(TableIndex.Param)); foreach (var paramDef in metadataReader.GetParameters()) { var row = metadataReader.GetParameter(paramDef); string name = metadataReader.GetString(row.Name); ParameterAttributes expectedFlags; switch (name) { case "m": case "o": expectedFlags = 0; break; case "a": case "b": case "c": expectedFlags = ParameterAttributes.In; break; case "d": case "e": case "f": case "n": expectedFlags = ParameterAttributes.Out; break; case "g": case "h": case "i": expectedFlags = ParameterAttributes.In | ParameterAttributes.Out; break; case "j": expectedFlags = ParameterAttributes.In | ParameterAttributes.HasDefault | ParameterAttributes.Optional; break; case "k": expectedFlags = ParameterAttributes.Out | ParameterAttributes.HasDefault | ParameterAttributes.Optional; break; case "l": expectedFlags = ParameterAttributes.In | ParameterAttributes.Out | ParameterAttributes.HasDefault | ParameterAttributes.Optional; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } Assert.Equal(expectedFlags, row.Attributes); } }); } [Fact] public void InAttribute_RefParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In]ref int p) { } }").VerifyDiagnostics(); } [Fact] public void OutAttribute_RefParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([Out]ref int p) { } }").VerifyDiagnostics( // (5,39): error CS0662: Cannot specify the Out attribute on a ref parameter without also specifying the In attribute. // public static void M([Out]ref int p) { } Diagnostic(ErrorCode.ERR_OutAttrOnRefParam, "p").WithLocation(5, 39)); } [Fact] public void InAndOutAttributes_RefParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In, Out]ref int p) { } }").VerifyDiagnostics(); } [Fact] public void InAttribute_OutParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In]out int p) { p = 0; } }").VerifyDiagnostics( // (5,38): error CS0036: An out parameter cannot have the In attribute // public static void M([In]out int p) { p = 0; } Diagnostic(ErrorCode.ERR_InAttrOnOutParam, "p").WithLocation(5, 38)); } [Fact] public void OutAttribute_OutParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([Out]out int p) { p = 0; } }").VerifyDiagnostics(); } [Fact] public void InAndOutAttributes_OutParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In, Out]out int p) { p = 0; } }").VerifyDiagnostics( // (5,43): error CS0036: An out parameter cannot have the In attribute // public static void M([In, Out]out int p) { p = 0; } Diagnostic(ErrorCode.ERR_InAttrOnOutParam, "p").WithLocation(5, 43)); } [Fact] public void InAttribute_InParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([In]in int p) { } }").VerifyDiagnostics(); } [Fact] public void OutAttribute_InParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([Out]in int p) { } }").VerifyDiagnostics( // (5,38): error CS8355: An in parameter cannot have the Out attribute. // public static void M([Out]in int p) { } Diagnostic(ErrorCode.ERR_OutAttrOnInParam, "p").WithLocation(5, 38)); } [Fact] public void OutAndInAttributes_InParameter() { CreateCompilation(@" using System.Runtime.InteropServices; class C { public static void M([Out, In]in int p) { } }").VerifyDiagnostics( // (5,42): error CS8355: An in parameter cannot have the Out attribute. // public static void M([Out, In]in int p) { } Diagnostic(ErrorCode.ERR_OutAttrOnInParam, "p").WithLocation(5, 42)); } [Fact] public void InOutAttributes_Delegates() { var source = @" using System.Runtime.InteropServices; public delegate int F([Out]int a, [In]int b, [In, Out]ref int c, [In]ref int d, ref int e, [Out]out int f, out int g); "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var paramDef in metadataReader.GetParameters()) { var row = metadataReader.GetParameter(paramDef); string name = metadataReader.GetString(row.Name); ParameterAttributes expectedFlags; switch (name) { case "e": case "callback": case "object": case "method": case "result": expectedFlags = 0; break; case "b": case "d": expectedFlags = ParameterAttributes.In; break; case "a": case "g": case "f": expectedFlags = ParameterAttributes.Out; break; case "c": expectedFlags = ParameterAttributes.In | ParameterAttributes.Out; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } Assert.Equal(expectedFlags, row.Attributes); } }); } [Fact] public void InOutAttributes_Indexers() { var source = @" using System.Runtime.InteropServices; public class C { public int this[[Out]int a, [In]int b, [In, Out]int c, int d] { get { return 0; } set { } } } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var paramDef in metadataReader.GetParameters()) { var row = metadataReader.GetParameter(paramDef); string name = metadataReader.GetString(row.Name); ParameterAttributes expectedFlags; switch (name) { case "d": case "value": expectedFlags = 0; break; case "b": expectedFlags = ParameterAttributes.In; break; case "a": expectedFlags = ParameterAttributes.Out; break; case "c": expectedFlags = ParameterAttributes.In | ParameterAttributes.Out; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } Assert.Equal(expectedFlags, row.Attributes); } }); } [Fact] public void InOutAttributes_Accessors() { var source = @" using System; using System.Runtime.InteropServices; class C { event Action E { [param: In, Out] add { } [param: In, Out] remove { } } } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); ParameterHandle[] ps = metadataReader.GetParameters().ToArray(); Assert.Equal(2, ps.Length); Assert.Equal(ParameterAttributes.In | ParameterAttributes.Out, metadataReader.GetParameter(ps[0]).Attributes); Assert.Equal(ParameterAttributes.In | ParameterAttributes.Out, metadataReader.GetParameter(ps[1]).Attributes); }); } #endregion #region DllImportAttribute, MethodImplAttribute, DefaultCharSetAttribute [Fact] public void TestPseudoDllImport() { var source = CreateCompilation(@" using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; /// PreserveSigAttribute: automatically insert by compiler public class DllImportTest { //Metadata - .method public static pinvokeimpl(""unmanaged.dll"" lasterr fastcall) // void DllImportSub() cil managed preservesig [DllImport(""unmanaged.dll"", CallingConvention = CallingConvention.FastCall, SetLastError = true)] public static extern void DllImportSub(); // Metadata .method public static pinvokeimpl(""user32.dll"" unicode winapi) // int32 MessageBox(native int hwnd, string t, string caption, uint32 t2) cil managed preservesig // // MSDN has table for 'default' ExactSpelling value // C#|C++: always 'false' // VB: true if CharSet is ANSI|UniCode; otherwise false [DllImportAttribute(""user32.dll"", CharSet = CharSet.Unicode, ExactSpelling = false, EntryPoint = ""MessageBox"")] public static extern int MessageBox(IntPtr hwnd, string t, string caption, UInt32 t2); } class C { public static void Main() {} } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { // get expected attr symbol var type1 = m.GlobalNamespace.GetTypeMember("DllImportTest"); MethodSymbol method = null; method = type1.GetMember<MethodSymbol>("DllImportSub"); var attrSym = method.GetAttributes().First(); Assert.Equal("DllImportAttribute", attrSym.AttributeClass.Name); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "unmanaged.dll"); attrSym.VerifyNamedArgumentValue(0, "CallingConvention", TypedConstantKind.Enum, (int)CallingConvention.FastCall); attrSym.VerifyNamedArgumentValue(1, "SetLastError", TypedConstantKind.Primitive, true); method = (MethodSymbol)type1.GetMembers("MessageBox").First(); attrSym = method.GetAttributes().First(); Assert.Equal("DllImportAttribute", attrSym.AttributeClass.Name); attrSym.VerifyValue(0, TypedConstantKind.Primitive, "user32.dll"); attrSym.VerifyNamedArgumentValue(0, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); attrSym.VerifyNamedArgumentValue(1, "ExactSpelling", TypedConstantKind.Primitive, false); attrSym.VerifyNamedArgumentValue(2, "EntryPoint", TypedConstantKind.Primitive, "MessageBox"); }; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator); } [Fact] [WorkItem(544180, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544180"), WorkItem(545030, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545030")] public void DllImport_AttributeRedefinition() { var source = @" namespace System.Runtime.InteropServices { [DllImport] public class DllImportAttribute { } } "; // NOTE (tomat) // Dev10 reports: // warning CS1685: The predefined type 'System.Runtime.InteropServices.DllImportAttribute' is defined in multiple assemblies in the global alias; // using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll' // error CS0616: 'System.Runtime.InteropServices.DllImportAttribute' is not an attribute class // // DllImportAttribute is defined both in source and PE. // Both Dev10 and Roslyn correctly bind to the source symbol. // Dev10 generates incorrect warning CS1685. // CONSIDER: We may want to generate warning CS0436 in Roslyn: // (4,6): warning CS0436: The type 'DllImport' in '' conflicts with the imported type 'System.Runtime.InteropServices.DllImportAttribute' in // 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in ''. CreateCompilation(source).VerifyDiagnostics( // (4,6): error CS0616: 'System.Runtime.InteropServices.DllImportAttribute' is not an attribute class // [DllImport] Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "DllImport").WithArguments("System.Runtime.InteropServices.DllImportAttribute")); } [Fact] public void DllImport_InvalidArgs1() { var source = @" using System.Runtime.InteropServices; class C { [DllImport(null)] public extern static void F1(); [DllImport("""")] public extern static void F2(); [DllImport(""goo"", EntryPoint = null)] public extern static void F3(); [DllImport(""goo"", EntryPoint = """")] public extern static void F4(); [DllImport(null, EntryPoint = null)] public extern static void F5(); [DllImport(""\0"")] static extern void Empty1(); [DllImport(""\0b"")] static extern void Empty2(); [DllImport(""b\0"")] static extern void Empty3(); [DllImport(""x\0y"")] static extern void Empty4(); [DllImport(""x"", EntryPoint = ""x\0y"")] static extern void Empty5(); [DllImport(""\uD800"")] static extern void LeadingSurrogate(); [DllImport(""\uDC00"")] static extern void TrailingSurrogate(); [DllImport(""\uDC00\uD800"")] static extern void ReversedSurrogates1(); [DllImport(""x"", EntryPoint = ""\uDC00\uD800"")] static extern void ReversedSurrogates2(); } "; // Dev10 fails in Emit or emits invalid metadata CreateCompilation(source).VerifyDiagnostics( // (6,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "null").WithArguments("DllImport"), // (9,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""""").WithArguments("DllImport"), // (12,23): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "EntryPoint = null").WithArguments("EntryPoint"), // (15,23): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, @"EntryPoint = """"").WithArguments("EntryPoint"), // (18,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "null").WithArguments("DllImport"), // (18,22): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "EntryPoint = null").WithArguments("EntryPoint"), // (21,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\0""").WithArguments("DllImport"), // (24,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\0b""").WithArguments("DllImport"), // (27,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""b\0""").WithArguments("DllImport"), // (30,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""x\0y""").WithArguments("DllImport"), // (33,21): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, @"EntryPoint = ""x\0y""").WithArguments("EntryPoint"), // (36,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\uD800""").WithArguments("DllImport"), // (39,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\uDC00""").WithArguments("DllImport"), // (42,16): error CS0591: Invalid value for argument to 'DllImport' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""\uDC00\uD800""").WithArguments("DllImport"), // (45,21): error CS0599: Invalid value for named attribute argument 'EntryPoint' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, @"EntryPoint = ""\uDC00\uD800""").WithArguments("EntryPoint")); } [Fact] public void DllImport_SpecialCharactersInName() { var source = @" using System; using System.Runtime.InteropServices; class Program { [DllImport(""\uFFFF"")] static extern void InvalidCharacter(); [DllImport(""\uD800\uDC00"")] static extern void SurrogatePairMin(); [DllImport(""\uDBFF\uDFFF"")] static extern void SurrogatePairMax(); } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(3, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); Assert.Equal(3, metadataReader.GetTableRowCount(TableIndex.ImplMap)); foreach (var method in metadataReader.GetImportedMethods()) { var import = method.GetImport(); string moduleName = metadataReader.GetString(metadataReader.GetModuleReference(import.Module).Name); string methodName = metadataReader.GetString(method.Name); switch (methodName) { case "InvalidCharacter": Assert.Equal("\uFFFF", moduleName); break; case "SurrogatePairMin": Assert.Equal("\uD800\uDC00", moduleName); break; case "SurrogatePairMax": Assert.Equal("\uDBFF\uDFFF", moduleName); break; default: throw TestExceptionUtilities.UnexpectedValue(methodName); } } }); } [Fact] [WorkItem(544176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544176")] public void TestPseudoAttributes_DllImport_AllTrue() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { [DllImport(""mscorlib"", EntryPoint = ""bar"", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode, ExactSpelling = true, PreserveSig = true, SetLastError = true, BestFitMapping = true, ThrowOnUnmappableChar = true)] public static extern void M(); } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); // ModuleRef: var moduleRefName = metadataReader.GetModuleReference(metadataReader.GetModuleReferences().Single()).Name; Assert.Equal("mscorlib", metadataReader.GetString(moduleRefName)); // FileRef: // Although the Metadata spec says there should be a File entry for each ModuleRef entry // Dev10 compiler doesn't add it and peverify doesn't complain. Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.File)); // ImplMap: Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap)); var import = metadataReader.GetImportedMethods().Single().GetImport(); Assert.Equal("bar", metadataReader.GetString(import.Name)); Assert.Equal(1, metadataReader.GetRowNumber(import.Module)); Assert.Equal( MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode | MethodImportAttributes.SetLastError | MethodImportAttributes.CallingConventionCDecl | MethodImportAttributes.BestFitMappingEnable | MethodImportAttributes.ThrowOnUnmappableCharEnable, import.Attributes); // MethodDef: MethodDefinitionHandle[] methodDefs = metadataReader.MethodDefinitions.AsEnumerable().ToArray(); Assert.Equal(2, methodDefs.Length); // M, ctor Assert.Equal(MethodImplAttributes.PreserveSig, metadataReader.GetMethodDefinition(methodDefs[0]).ImplAttributes); }, symbolValidator: module => { var c = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); var m = c.GetMember<MethodSymbol>("M"); var info = m.GetDllImportData(); Assert.Equal("mscorlib", info.ModuleName); Assert.Equal("bar", info.EntryPointName); Assert.Equal(CharSet.Unicode, info.CharacterSet); Assert.True(info.ExactSpelling); Assert.True(info.SetLastError); Assert.True(info.BestFitMapping); Assert.True(info.ThrowOnUnmappableCharacter); Assert.Equal( MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode | MethodImportAttributes.SetLastError | MethodImportAttributes.CallingConventionCDecl | MethodImportAttributes.BestFitMappingEnable | MethodImportAttributes.ThrowOnUnmappableCharEnable, ((Cci.IPlatformInvokeInformation)info).Flags); }); } [Fact] [WorkItem(544601, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544601")] public void GetDllImportData_UnspecifiedProperties() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { [DllImport(""mscorlib"")] public static extern void M(); public static void N() { } } "; Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => { var c = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); var m = c.GetMember<MethodSymbol>("M"); var info = m.GetDllImportData(); Assert.Equal("mscorlib", info.ModuleName); Assert.Equal("M", info.EntryPointName); Assert.Equal(CharSet.None, info.CharacterSet); Assert.Equal(CallingConvention.Winapi, info.CallingConvention); Assert.False(info.ExactSpelling); Assert.False(info.SetLastError); Assert.Null(info.BestFitMapping); Assert.Null(info.ThrowOnUnmappableCharacter); var n = c.GetMember<MethodSymbol>("N"); Assert.Null(n.GetDllImportData()); }; CompileAndVerify(source, sourceSymbolValidator: validator(true), symbolValidator: validator(false)); } [Fact] public void TestPseudoAttributes_DllImport_OperatorsAndAccessors() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { [DllImport(""goo"")] public static extern int operator +(C a, C b); public extern static int F { [DllImport(""a"")]get; [DllImport(""b"")]set; } [method: DllImport(""c"")] public extern static event System.Action G; } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); // no backing fields should be generated -- all members are "extern" members: Assert.Equal(0, metadataReader.FieldDefinitions.AsEnumerable().Count()); Assert.Equal(4, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); Assert.Equal(5, metadataReader.GetTableRowCount(TableIndex.ImplMap)); var visitedEntryPoints = new Dictionary<string, bool>(); foreach (var method in metadataReader.GetImportedMethods()) { string moduleName = metadataReader.GetString(metadataReader.GetModuleReference(method.GetImport().Module).Name); string entryPointName = metadataReader.GetString(method.Name); switch (entryPointName) { case "op_Addition": Assert.Equal("goo", moduleName); break; case "get_F": Assert.Equal("a", moduleName); break; case "set_F": Assert.Equal("b", moduleName); break; case "add_G": case "remove_G": Assert.Equal("c", moduleName); break; default: throw TestExceptionUtilities.UnexpectedValue(entryPointName); } // This throws if we visit one entry point name twice. // We used to incorrectly share entry point name among event accessors. visitedEntryPoints.Add(entryPointName, true); } Assert.Equal(5, visitedEntryPoints.Count); }); } [Fact] public void TestPseudoAttributes_DllImport_Flags() { var cases = new[] { // calling convention: new { attr = MakeDllImport(), expected = MethodImportAttributes.CallingConventionWinApi}, // M0 new { attr = MakeDllImport(cc: CallingConvention.Cdecl), expected = MethodImportAttributes.CallingConventionCDecl }, // M1 new { attr = MakeDllImport(cc: CallingConvention.FastCall), expected = MethodImportAttributes.CallingConventionFastCall }, // M2 new { attr = MakeDllImport(cc: CallingConvention.StdCall), expected = MethodImportAttributes.CallingConventionStdCall }, // M3 new { attr = MakeDllImport(cc: CallingConvention.ThisCall), expected = MethodImportAttributes.CallingConventionThisCall }, // M4 new { attr = MakeDllImport(cc: CallingConvention.Winapi), expected = MethodImportAttributes.CallingConventionWinApi }, // M5 // charset & exact spelling: new { attr = MakeDllImport(), expected = MethodImportAttributes.CallingConventionWinApi }, // M6 new { attr = MakeDllImport(charSet: CharSet.None), expected = MethodImportAttributes.CallingConventionWinApi }, // M7 new { attr = MakeDllImport(charSet: CharSet.Ansi), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAnsi }, // M8 new { attr = MakeDllImport(charSet: CharSet.Unicode), expected =MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetUnicode }, // M9 new { attr = MakeDllImport(charSet: CharSet.Auto), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAuto }, // M10 new { attr = MakeDllImport(exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling }, // M11 new { attr = MakeDllImport(exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi }, // M12 new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAnsi }, // M13 new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAnsi }, // M14 new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode },// M15 new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetUnicode }, // M16 new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAuto }, // M17 new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAuto }, // M18 // preservesig: new { attr = MakeDllImport(preserveSig: true), expected = MethodImportAttributes.CallingConventionWinApi}, // M19 new { attr = MakeDllImport(preserveSig: false), expected = MethodImportAttributes.CallingConventionWinApi}, // M20 // setLastError: new { attr = MakeDllImport(setLastError: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError}, // M21 new { attr = MakeDllImport(setLastError: false), expected = MethodImportAttributes.CallingConventionWinApi}, // M22 // bestFitMapping: new { attr = MakeDllImport(bestFitMapping: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.BestFitMappingEnable}, // M23 new { attr = MakeDllImport(bestFitMapping: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.BestFitMappingDisable}, // M24 // throwOnUnmappableChar: new { attr = MakeDllImport(throwOnUnmappableChar: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ThrowOnUnmappableCharEnable}, // M23 new { attr = MakeDllImport(throwOnUnmappableChar: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ThrowOnUnmappableCharDisable}, // M24 // invalid enum values (ignored) new { attr = "[DllImport(\"bar\", CharSet = (CharSet)15, SetLastError = true)]", expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError }, // M25 // invalid enum values (ignored) new { attr = "[DllImport(\"bar\", CallingConvention = (CallingConvention)15, SetLastError = true)]", expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError }, // M26 }; StringBuilder sb = new StringBuilder(@" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; public class C { "); int i = 0; foreach (var testCase in cases) { sb.Append(testCase.attr); sb.AppendLine(); sb.Append("static extern void M" + (i++) + "();"); sb.AppendLine(); } sb.AppendLine("}"); var code = sb.ToString(); CompileAndVerify(code, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(cases.Length, metadataReader.GetTableRowCount(TableIndex.ImplMap)); int j = 0; foreach (var method in metadataReader.GetImportedMethods()) { Assert.Equal(cases[j].expected, method.GetImport().Attributes); j++; } }); } private string MakeDllImport( CallingConvention? cc = null, CharSet? charSet = null, bool? exactSpelling = null, bool? preserveSig = null, bool? setLastError = null, bool? bestFitMapping = null, bool? throwOnUnmappableChar = null) { StringBuilder sb = new StringBuilder("[DllImport(\"bar\""); if (cc != null) { sb.Append(", CallingConvention = CallingConvention."); sb.Append(cc.Value); } if (charSet != null) { sb.Append(", CharSet = CharSet."); sb.Append(charSet.Value); } if (exactSpelling != null) { sb.Append(", ExactSpelling = "); sb.Append(exactSpelling.Value ? "true" : "false"); } if (preserveSig != null) { sb.Append(", PreserveSig = "); sb.Append(preserveSig.Value ? "true" : "false"); } if (setLastError != null) { sb.Append(", SetLastError = "); sb.Append(setLastError.Value ? "true" : "false"); } if (bestFitMapping != null) { sb.Append(", BestFitMapping = "); sb.Append(bestFitMapping.Value ? "true" : "false"); } if (throwOnUnmappableChar != null) { sb.Append(", ThrowOnUnmappableChar = "); sb.Append(throwOnUnmappableChar.Value ? "true" : "false"); } sb.Append(")]"); return sb.ToString(); } [WorkItem(544238, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544238")] [WorkItem(544163, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544163")] [Fact] public void DllImport_InvalidCharsetValue_Null() { var source = @" using System.Runtime.InteropServices; class M { [DllImport(""1"", CharSet = null)] static extern int F1(); [DllImport(""2"", CharSet = CharSet)] static extern int F2(); [DllImport(""3"", CharSet = ""str"")] static extern int F3(); [DllImport(true)] static extern int F4(); [DllImport(CharSet)] static extern int F5(); [DllImport(1)] static extern int F6(); } "; CreateCompilation(source).VerifyDiagnostics( // (6,31): error CS0037: Cannot convert null to 'System.Runtime.InteropServices.CharSet' because it is a non-nullable value type Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("System.Runtime.InteropServices.CharSet"), // (9,31): error CS0119: 'System.Runtime.InteropServices.CharSet' is a type, which is not valid in the given context Diagnostic(ErrorCode.ERR_BadSKunknown, "CharSet").WithArguments("System.Runtime.InteropServices.CharSet", "type"), // (12,31): error CS0029: Cannot implicitly convert type 'string' to 'System.Runtime.InteropServices.CharSet' Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""str""").WithArguments("string", "System.Runtime.InteropServices.CharSet"), // (15,16): error CS1503: Argument 1: cannot convert from 'bool' to 'string' Diagnostic(ErrorCode.ERR_BadArgType, "true").WithArguments("1", "bool", "string"), // (18,16): error CS0119: 'System.Runtime.InteropServices.CharSet' is a type, which is not valid in the given context Diagnostic(ErrorCode.ERR_BadSKunknown, "CharSet").WithArguments("System.Runtime.InteropServices.CharSet", "type"), // (21,16): error CS1503: Argument 1: cannot convert from 'int' to 'string' Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string")); } [Fact] public void TestMethodImplAttribute_VerifiableMD() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; abstract class C { [MethodImpl(MethodImplOptions.ForwardRef)] public static void ForwardRef() { System.Console.WriteLine(0); } [MethodImpl(MethodImplOptions.NoInlining)] public static void NoInlining() { System.Console.WriteLine(1); } [MethodImpl(MethodImplOptions.NoOptimization)] public static void NoOptimization() { System.Console.WriteLine(2); } [MethodImpl(MethodImplOptions.Synchronized)] public static void Synchronized() { System.Console.WriteLine(3); } [MethodImpl(MethodImplOptions.InternalCall)] public extern static void InternalCallStatic(); [MethodImpl(MethodImplOptions.InternalCall)] public extern void InternalCallInstance(); [MethodImpl(MethodImplOptions.InternalCall)] public abstract void InternalCallAbstract(); } "; Action<PEAssembly> validator = (assembly) => { var peReader = assembly.GetMetadataReader(); foreach (var methodHandle in peReader.MethodDefinitions) { var methodDef = peReader.GetMethodDefinition(methodHandle); var actualFlags = methodDef.ImplAttributes; MethodImplAttributes expectedFlags; string methodName = peReader.GetString(methodDef.Name); switch (methodName) { case "NoInlining": expectedFlags = MethodImplAttributes.NoInlining; break; case "NoOptimization": expectedFlags = MethodImplAttributes.NoOptimization; break; case "Synchronized": expectedFlags = MethodImplAttributes.Synchronized; break; case "InternalCallStatic": case "InternalCallInstance": case "InternalCallAbstract": expectedFlags = MethodImplAttributes.InternalCall; break; case "ForwardRef": expectedFlags = MethodImplAttributes.ForwardRef; break; case ".ctor": expectedFlags = MethodImplAttributes.IL; break; default: throw TestExceptionUtilities.UnexpectedValue(methodName); } Assert.Equal(expectedFlags, actualFlags); } }; CompileAndVerify(source, assemblyValidator: validator); } [Fact] public void TestMethodImplAttribute_UnverifiableMD() { var compilation = CreateCompilation(@" using System.Runtime.CompilerServices; class C { [MethodImpl(MethodImplOptions.Unmanaged)] public static void Unmanaged() { System.Console.WriteLine(1); } // peverify: type load failed [MethodImpl(MethodCodeType = MethodCodeType.Native)] public static void Native() { System.Console.WriteLine(2); } // peverify: type load failed [MethodImpl(MethodCodeType = MethodCodeType.OPTIL)] public static void OPTIL() { System.Console.WriteLine(3); } // peverify: type load failed [MethodImpl(MethodCodeType = MethodCodeType.Runtime)] public static void Runtime() { System.Console.WriteLine(4); } // peverify: Runtime method shouldn't have a body [MethodImpl(MethodImplOptions.InternalCall)] public static void InternalCallStatic() { System.Console.WriteLine(5); } // peverify: InternalCall method shouldn't have a body [MethodImpl(MethodImplOptions.InternalCall)] public extern static void InternalCallGeneric1<T>(); // peverify: type load failed (InternalCall method can't be generic) } class C<T> { [MethodImpl(MethodImplOptions.InternalCall)] public extern static void InternalCallGeneric2(); // peverify: type load failed (InternalCall method can't be in a generic type) } "); compilation.VerifyDiagnostics(); var image = compilation.EmitToStream(); using (var metadata = ModuleMetadata.CreateFromStream(image)) { var metadataReader = metadata.MetadataReader; foreach (var methodHandle in metadataReader.MethodDefinitions) { var methodDef = metadataReader.GetMethodDefinition(methodHandle); var actualFlags = methodDef.ImplAttributes; MethodImplAttributes expectedFlags; string methodName = metadataReader.GetString(methodDef.Name); switch (methodName) { case "Unmanaged": expectedFlags = MethodImplAttributes.Unmanaged; break; case "Native": expectedFlags = MethodImplAttributes.Native; break; case "Runtime": expectedFlags = MethodImplAttributes.Runtime; break; case "OPTIL": expectedFlags = MethodImplAttributes.OPTIL; break; case ".ctor": expectedFlags = MethodImplAttributes.IL; break; case "InternalCallStatic": case "InternalCallGeneric1": case "InternalCallGeneric2": expectedFlags = MethodImplAttributes.InternalCall; break; default: throw TestExceptionUtilities.UnexpectedValue(methodName); } Assert.Equal(expectedFlags, actualFlags); } } } [Fact] public void TestMethodImplAttribute_PreserveSig() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; abstract class C { C() {} [PreserveSig] abstract public void f0(); [MethodImpl(MethodImplOptions.PreserveSig)] abstract public void f1(); [DllImport(""goo"")] public extern static void f2(); [DllImport(""goo"", PreserveSig=true)] public extern static void f3(); // false [DllImport(""goo"", PreserveSig=false)] public extern static void f4(); [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=true)] public extern static void f5(); // false [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=false)] public extern static void f6(); [MethodImpl(MethodImplOptions.PreserveSig)] [PreserveSig] abstract public void f7(); [DllImport(""goo"")] [PreserveSig] public extern static void f8(); [PreserveSig] [DllImport(""goo"", PreserveSig=true)] public extern static void f9(); [DllImport(""goo"", PreserveSig=false)] [PreserveSig] public extern static void f10(); [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=true)] [PreserveSig] public extern static void f11(); [DllImport(""goo"", PreserveSig=false)] [PreserveSig] [MethodImpl(MethodImplOptions.PreserveSig)] public extern static void f12(); [DllImport(""goo"", PreserveSig=false)] [MethodImpl(MethodImplOptions.PreserveSig)] [PreserveSig] public extern static void f13(); [PreserveSig] [DllImport(""goo"", PreserveSig=false)] [MethodImpl(MethodImplOptions.PreserveSig)] public extern static void f14(); // false [PreserveSig] [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=false)] public extern static void f15(); // false [MethodImpl(MethodImplOptions.PreserveSig)] [PreserveSig] [DllImport(""goo"", PreserveSig=false)] public extern static void f16(); [MethodImpl(MethodImplOptions.PreserveSig)] [DllImport(""goo"", PreserveSig=false)] [PreserveSig] public extern static void f17(); public static void f18() {} [MethodImpl(MethodImplOptions.Synchronized)] [DllImport(""goo"", PreserveSig=false)] [PreserveSig] public extern static void f19(); [PreserveSig] [DllImport(""goo"")] [MethodImpl(MethodImplOptions.Synchronized)] public extern static void f20(); [PreserveSig] [DllImport(""goo"", PreserveSig=false)] [MethodImpl(MethodImplOptions.Synchronized)] public extern static void f21(); } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var peReader = assembly.GetMetadataReader(); foreach (var methodHandle in peReader.MethodDefinitions) { var row = peReader.GetMethodDefinition(methodHandle); var actualFlags = row.ImplAttributes; MethodImplAttributes expectedFlags; var name = peReader.GetString(row.Name); switch (name) { case ".ctor": case "f4": case "f6": case "f15": case "f16": case "f18": expectedFlags = 0; break; case "f0": case "f1": case "f2": case "f3": case "f5": case "f7": case "f8": case "f9": case "f10": case "f11": case "f12": case "f13": case "f14": case "f17": expectedFlags = MethodImplAttributes.PreserveSig; break; case "f19": case "f20": expectedFlags = MethodImplAttributes.PreserveSig | MethodImplAttributes.Synchronized; break; case "f21": expectedFlags = MethodImplAttributes.Synchronized; break; default: throw TestExceptionUtilities.UnexpectedValue(name); } Assert.Equal(expectedFlags, actualFlags); } // no custom attributes applied on methods: foreach (var ca in peReader.CustomAttributes) { var ctor = peReader.GetCustomAttribute(ca).Constructor; Assert.NotEqual(HandleKind.MethodDefinition, ctor.Kind); } }); } [Fact] public void TestMethodImplAttribute_PreserveSig_Invalid() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; class C { [MethodImpl(MethodImplOptions.PreserveSig)] public static void f1() { } }"; CompileAndVerify(source); } [Fact] public void MethodImplAttribute_Errors() { string source = @" using System.Runtime.CompilerServices; class Program1 { [MethodImpl((short)0)] // ok void f0() { } [MethodImpl(1)] // error void f1() { } [MethodImpl(2)] // error void f2() { } [MethodImpl(3)] // error void f3() { } [MethodImpl(4)] // ok void f4() { } [MethodImpl(5)] // error void f5() { } [MethodImpl((MethodImplOptions)2)] // error void f6() { } [MethodImpl(4, MethodCodeType = (MethodCodeType)8, MethodCodeType = (MethodCodeType)9)] // errors void f7() { } } "; CreateCompilation(source).VerifyDiagnostics( // (9,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "1").WithArguments("MethodImpl"), // (12,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "2").WithArguments("MethodImpl"), // (15,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "3").WithArguments("MethodImpl"), // (21,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "5").WithArguments("MethodImpl"), // (27,17): error CS0591: Invalid value for argument to 'MethodImpl' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(MethodImplOptions)2").WithArguments("MethodImpl"), // (27,56): error CS0643: 'MethodCodeType' duplicate named attribute argument Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, "MethodCodeType = (MethodCodeType)9").WithArguments("MethodCodeType"), // (27,20): error CS0599: Invalid value for named attribute argument 'MethodCodeType' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "MethodCodeType = (MethodCodeType)8").WithArguments("MethodCodeType"), // (27,56): error CS0599: Invalid value for named attribute argument 'MethodCodeType' Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "MethodCodeType = (MethodCodeType)9").WithArguments("MethodCodeType")); } [Fact, WorkItem(544518, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544518")] public void DllImport_DefaultCharSet1() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Ansi)] abstract class C { [DllImport(""goo"")] static extern void f1(); } "; // Ref.Emit doesn't implement custom attributes yet CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap)); // the attribute is emitted: Assert.False(MetadataValidation.FindCustomAttribute(metadataReader, "DefaultCharSetAttribute").IsNil); var import = metadataReader.GetImportedMethods().Single().GetImport(); Assert.Equal(MethodImportAttributes.CharSetAnsi, import.Attributes & MethodImportAttributes.CharSetMask); }); } [Fact] public void DllImport_DefaultCharSet2() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.None)] [StructLayout(LayoutKind.Explicit)] abstract class C { [DllImport(""goo"")] static extern void f1(); } "; // Ref.Emit doesn't implement custom attributes yet CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap)); // the attribute is emitted: Assert.False(MetadataValidation.FindCustomAttribute(metadataReader, "DefaultCharSetAttribute").IsNil); var import = metadataReader.GetImportedMethods().Single().GetImport(); Assert.Equal(MethodImportAttributes.None, import.Attributes & MethodImportAttributes.CharSetMask); foreach (var typeHandle in metadataReader.TypeDefinitions) { var def = metadataReader.GetTypeDefinition(typeHandle); var name = metadataReader.GetString(def.Name); switch (name) { case "C": Assert.Equal(TypeAttributes.ExplicitLayout | TypeAttributes.Abstract | TypeAttributes.BeforeFieldInit, def.Attributes); break; case "<Module>": break; default: throw TestExceptionUtilities.UnexpectedValue(name); } } }); } [Fact] public void DllImport_DefaultCharSet_Errors() { var source = @" using System.Runtime.InteropServices; [module: DefaultCharSet((CharSet)int.MaxValue)] "; // Ref.Emit doesn't implement custom attributes yet CreateCompilation(source).VerifyDiagnostics( // (4,25): error CS0591: Invalid value for argument to 'DefaultCharSet' attribute Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(CharSet)int.MaxValue").WithArguments("DefaultCharSet")); } [Fact] public void DefaultCharSet_Types() { var source = @" using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; [module:DefaultCharSet(CharSet.Unicode)] class C { class D { int[] arr = new[] { 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0}; void goo() { int a = 1; int b = 2; var q = new { f = 1, g = 2 }; var z = new Action(() => Console.WriteLine(a + arr[b])); } IEnumerable<int> En() { yield return 1; yield return 2; } } } [SpecialName] public class Special { } [StructLayout(LayoutKind.Sequential, Pack=4, Size=10)] public struct SeqLayout { } struct S { } enum E { } interface I { } delegate void D(); "; // Ref.Emit doesn't implement custom attributes yet CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var typeHandle in metadataReader.TypeDefinitions) { var row = metadataReader.GetTypeDefinition(typeHandle); var name = metadataReader.GetString(row.Name); var actual = row.Attributes & TypeAttributes.StringFormatMask; if (name == "<Module>" || name.StartsWith("__StaticArrayInitTypeSize=", StringComparison.Ordinal) || name.StartsWith("<PrivateImplementationDetails>", StringComparison.Ordinal)) { Assert.Equal(TypeAttributes.AnsiClass, actual); } else { Assert.Equal(TypeAttributes.UnicodeClass, actual); } } }); } [Fact] public void DllImport_InvalidTargets() { var source = @" using System.Runtime.InteropServices; class C { [DllImport(""D.DLL"")] void F1() { } [DllImport(""D.DLL"")] enum E1 { a, b, c, d }; [DllImport(""D.DLL"")] int F2(int bufSize, string buf); [DllImport(""D.DLL"")] public static int i =2; [DllImport(""d.dll"")] int F3 { get {return 0;}} [DllImport(""D.DLL""), DllImport(""GDI.DLL"")] static extern int F4(int bufSize, string buf); void F5() { [DllImport(""d.dll"")] int loc = i; } } [DllImport(""dd.dllL"")] public class C1 { } [DllImport(""dd.dll"")] public class C2 { } "; // Dev10 fails in Emit or emits invalid metadata CreateCompilation(source).VerifyDiagnostics( // (13,9): error CS0501: 'C.F2(int, string)' must declare a body because it is not marked abstract, extern, or partial // int F2(int bufSize, string buf); Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "F2").WithArguments("C.F2(int, string)").WithLocation(13, 9), // (6,6): error CS0601: The DllImport attribute must be specified on a method marked 'static' and 'extern' // [DllImport("D.DLL")] Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").WithLocation(6, 6), // (9,6): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("D.DLL")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(9, 6), // (12,6): error CS0601: The DllImport attribute must be specified on a method marked 'static' and 'extern' // [DllImport("D.DLL")] Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").WithLocation(12, 6), // (15,6): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("D.DLL")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(15, 6), // (18,6): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("d.dll")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(18, 6), // (21,26): error CS0579: Duplicate 'DllImport' attribute // [DllImport("D.DLL"), DllImport("GDI.DLL")] Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DllImport").WithArguments("DllImport").WithLocation(21, 26), // (26,8): error CS7014: Attributes are not valid in this context. // [DllImport("d.dll")] Diagnostic(ErrorCode.ERR_AttributesNotAllowed, @"[DllImport(""d.dll"")]").WithLocation(26, 8), // (31,2): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("dd.dllL")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(31, 2), // (34,2): error CS0592: Attribute 'DllImport' is not valid on this declaration type. It is only valid on 'method' declarations. // [DllImport("dd.dll")] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").WithLocation(34, 2)); } #endregion #region ComImportAttribute, CoClassAttribute [Fact] public void TestComImportAttribute() { string source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] class A { public static extern void Goo(); } public class MainClass { public static int Main () { A.Goo(); return 0; } }"; Action<ModuleSymbol> sourceValidator = (ModuleSymbol m) => { MethodImplAttributes expectedMethodImplAttributes = MethodImplAttributes.Managed | MethodImplAttributes.Runtime | MethodImplAttributes.InternalCall; var typeA = m.GlobalNamespace.GetTypeMember("A"); Assert.True(typeA.IsComImport); Assert.Equal(2, typeA.GetAttributes().Length); var ctorA = typeA.InstanceConstructors.First(); Assert.Equal(expectedMethodImplAttributes, ctorA.ImplementationAttributes); Assert.True(((Cci.IMethodDefinition)ctorA.GetCciAdapter()).IsExternal); var methodGoo = (Cci.IMethodDefinition)typeA.GetMember("Goo").GetCciAdapter(); Assert.True(methodGoo.IsExternal); }; Action<ModuleSymbol> metadataValidator = (ModuleSymbol m) => { var typeA = m.GlobalNamespace.GetTypeMember("A"); Assert.True(typeA.IsComImport); Assert.Equal(1, typeA.GetAttributes().Length); var ctorA = typeA.InstanceConstructors.First(); Assert.False(ctorA.IsExtern); var methodGoo = (MethodSymbol)typeA.GetMember("Goo"); Assert.False(methodGoo.IsExtern); }; // the resulting code does not need to verify // This is consistent with Dev10 behavior CompileAndVerify(source, options: TestOptions.ReleaseDll, verify: Verification.Fails, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator); } [Fact, WorkItem(544507, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544507")] public void TestCoClassAttribute_NewOnInterface_FromSource() { string source = @" using System; using System.Runtime.InteropServices; class WorksheetClass : IWorksheet { int i; public WorksheetClass() { this.i = 0; } public WorksheetClass(int i) { this.i = i; } public int M1() { return i; } } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] interface IWorksheet { int M1(); } public class MainClass { public static int Main () { var a = new IWorksheet(); Console.WriteLine(a.M1()); IWorksheet b = new IWorksheet(1); Console.WriteLine(b.M1()); var c = (WorksheetClass)new IWorksheet(); Console.WriteLine(c.M1()); return 0; } }"; Func<bool, Action<ModuleSymbol>> attributeValidator = isFromSource => (ModuleSymbol m) => { NamespaceSymbol interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(m); var guidType = interopNS.GetTypeMember("GuidAttribute"); var comImportType = interopNS.GetTypeMember("ComImportAttribute"); var coClassType = interopNS.GetTypeMember("CoClassAttribute"); var worksheetInterface = m.GlobalNamespace.GetTypeMember("IWorksheet"); var attrs = worksheetInterface.GetAttributes().AsEnumerable(); Assert.True(worksheetInterface.IsComImport, "Must be ComImport"); if (isFromSource) { Assert.Equal(3, attrs.Count()); attrs = worksheetInterface.GetAttributes(comImportType); Assert.Equal(1, attrs.Count()); } else { Assert.Equal(2, attrs.Count()); // ComImportAttribute: Pseudo custom attribute shouldn't have been emitted attrs = worksheetInterface.GetAttributes(comImportType); Assert.Equal(0, attrs.Count()); } attrs = worksheetInterface.GetAttributes(guidType); Assert.Equal(1, attrs.Count()); attrs = worksheetInterface.GetAttributes(coClassType); Assert.Equal(1, attrs.Count()); }; string expectedOutput = @"0 1 0"; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator(true), symbolValidator: attributeValidator(false), expectedOutput: expectedOutput); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata() { var source = @" using System; using System.Runtime.InteropServices; public class Wrapper { public class WorksheetClass : IWorksheet { int i; public WorksheetClass() { this.i = 0; } public WorksheetClass(int i) { this.i = i; } public int M1() { return i; } } } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(Wrapper.WorksheetClass))] public interface IWorksheet { int M1(); } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_FromMetadata"); var source2 = @" using System; public class MainClass { public static int Main () { var a = new IWorksheet(); Console.WriteLine(a.M1()); IWorksheet b = new IWorksheet(1); Console.WriteLine(b.M1()); var c = (Wrapper.WorksheetClass)new IWorksheet(); Console.WriteLine(c.M1()); return 0; } }"; string expectedOutput = @"0 1 0"; // Verify attributes from source and then load metadata to see attributes are written correctly. // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CompileAndVerify(source2, references: new[] { compDll.ToMetadataReference() }, expectedOutput: expectedOutput); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CompileAndVerify(source2, references: new[] { compDll.EmitToImageReference() }, expectedOutput: expectedOutput); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_GenericTypeCoClass() { string source = @" using System; using System.Runtime.InteropServices; public class WorksheetClass<T, U>: IWorksheet<T> { public WorksheetClass(U x) { Console.WriteLine(x);} } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass<int, string>))] public interface IWorksheet<T> { } public class MainClass { public static int Main () { var a = new IWorksheet<int>(""string""); return 0; } }"; Func<bool, Action<ModuleSymbol>> attributeValidator = isFromSource => (ModuleSymbol m) => { NamespaceSymbol interopNS = Get_System_Runtime_InteropServices_NamespaceSymbol(m); var guidType = interopNS.GetTypeMember("GuidAttribute"); var comImportType = interopNS.GetTypeMember("ComImportAttribute"); var coClassType = interopNS.GetTypeMember("CoClassAttribute"); var worksheetInterface = m.GlobalNamespace.GetTypeMember("IWorksheet"); var attrs = worksheetInterface.GetAttributes().AsEnumerable(); Assert.True(worksheetInterface.IsComImport, "Must be ComImport"); if (isFromSource) { Assert.Equal(3, attrs.Count()); attrs = worksheetInterface.GetAttributes(comImportType); Assert.Equal(1, attrs.Count()); } else { Assert.Equal(2, attrs.Count()); // ComImportAttribute: Pseudo custom attribute shouldn't have been emitted attrs = worksheetInterface.GetAttributes(comImportType); Assert.Equal(0, attrs.Count()); } attrs = worksheetInterface.GetAttributes(guidType); Assert.Equal(1, attrs.Count()); attrs = worksheetInterface.GetAttributes(coClassType); Assert.Equal(1, attrs.Count()); }; string expectedOutput = @"string"; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator(true), symbolValidator: attributeValidator(false), expectedOutput: expectedOutput); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_GenericTypeCoClass() { var source = @" using System; using System.Runtime.InteropServices; public class WorksheetClass<T, U>: IWorksheet<T> { public WorksheetClass(U x) { Console.WriteLine(x);} } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass<int, string>))] public interface IWorksheet<T> { } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_GenericTypeCoClass"); var source2 = @" using System; public class MainClass { public static int Main () { var a = new IWorksheet<int>(""string""); return 0; } }"; string expectedOutput = @"string"; // Verify attributes from source and then load metadata to see attributes are written correctly. // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CompileAndVerify(source2, references: new[] { compDll.ToMetadataReference() }, expectedOutput: expectedOutput); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CompileAndVerify(source2, references: new[] { compDll.EmitToImageReference() }, expectedOutput: expectedOutput); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_InaccessibleInterface() { string source = @" using System; using System.Runtime.InteropServices; public class Wrapper { public class WorksheetClass : IWorksheet { } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] private interface IWorksheet { } } public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (22,29): error CS0122: 'Wrapper.IWorksheet' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").WithLocation(22, 29)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_InaccessibleInterface() { var source = @" using System; using System.Runtime.InteropServices; public class Wrapper { public class WorksheetClass : IWorksheet { } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] private interface IWorksheet { } } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_InaccessibleInterface"); var source2 = @" public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( // (6,29): error CS0122: 'Wrapper.IWorksheet' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").WithLocation(6, 29)); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( // (6,29): error CS0122: 'Wrapper.IWorksheet' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").WithLocation(6, 29)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_InaccessibleCoClass() { string source = @" using System; using System.Runtime.InteropServices; public class Wrapper { private class WorksheetClass : IWorksheet { } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] public interface IWorksheet { } } public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (22,21): error CS0122: 'Wrapper.WorksheetClass.WorksheetClass()' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").WithLocation(22, 21)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_InaccessibleCoClass() { var source = @" using System; using System.Runtime.InteropServices; public class Wrapper { private class WorksheetClass : IWorksheet { } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] public interface IWorksheet { } } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_InaccessibleCoClass"); var source2 = @" public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( // (6,21): error CS0122: 'Wrapper.WorksheetClass.WorksheetClass()' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").WithLocation(6, 21)); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( // (6,21): error CS0122: 'Wrapper.WorksheetClass.WorksheetClass()' is inaccessible due to its protection level // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").WithLocation(6, 21)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_CoClass_Without_ComImport() { string source = @" using System.Runtime.InteropServices; public class Wrapper { private class WorksheetClass : IWorksheet { } [CoClass(typeof(WorksheetClass))] public interface IWorksheet { } } public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (10,6): warning CS0684: 'IWorksheet' interface marked with 'CoClassAttribute' not marked with 'ComImportAttribute' // [CoClass(typeof(WorksheetClass))] Diagnostic(ErrorCode.WRN_CoClassWithoutComImport, "CoClass(typeof(WorksheetClass))").WithArguments("IWorksheet").WithLocation(10, 6), // (20,17): error CS0144: Cannot create an instance of the abstract type or interface 'Wrapper.IWorksheet' // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(20, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_CoClass_Without_ComImport() { var source = @" using System.Runtime.InteropServices; public class Wrapper { private class WorksheetClass : IWorksheet { } [CoClass(typeof(WorksheetClass))] public interface IWorksheet { } } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_CoClass_Without_ComImport"); var source2 = @" public class MainClass { public static int Main () { var a = new Wrapper.IWorksheet(); return 0; } }"; // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'Wrapper.IWorksheet' // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(6, 17)); var assemblyRef = compDll.EmitToImageReference(expectedWarnings: new[] { // (11,6): warning CS0684: 'IWorksheet' interface marked with 'CoClassAttribute' not marked with 'ComImportAttribute' // [CoClass(typeof(WorksheetClass))] Diagnostic(ErrorCode.WRN_CoClassWithoutComImport, "CoClass(typeof(WorksheetClass))").WithArguments("IWorksheet") }); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CreateCompilation(source2, references: new[] { assemblyRef }).VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'Wrapper.IWorksheet' // var a = new Wrapper.IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromSource_StructTypeInCoClassAttribute() { string source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(Wrapper.WorksheetClass))] public interface IWorksheet { } public class Wrapper { public struct WorksheetClass : IWorksheet { } } public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (22,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(22, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_FromMetadata_StructTypeInCoClassAttribute() { var source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(Wrapper.WorksheetClass))] public interface IWorksheet { } public class Wrapper { public struct WorksheetClass : IWorksheet { } } "; var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_StructTypeInCoClassAttribute"); var source2 = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; // Using metadata reference to test RetargetingNamedTypeSymbol CoClass type CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17)); // Using assembly file reference to test PENamedTypeSymbol symbol CoClass type CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_InaccessibleTypeInCoClassAttribute() { string source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(Wrapper.WorksheetClass))] interface IWorksheet { } public class Wrapper { private class WorksheetClass : IWorksheet { } } public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (6,25): error CS0122: 'Wrapper.WorksheetClass' is inaccessible due to its protection level // [CoClass(typeof(Wrapper.WorksheetClass))] Diagnostic(ErrorCode.ERR_BadAccess, "WorksheetClass").WithArguments("Wrapper.WorksheetClass").WithLocation(6, 25), // (22,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(22, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_CoClassDoesntImplementInterface() { string source = @" using System; using System.Runtime.InteropServices; [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(WorksheetClass))] interface IWorksheet { } class WorksheetClass { } public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; CompileAndVerify(source); } [Fact] public void TestCoClassAttribute_NewOnInterface_UsingCustomIL() { var ilSource = @" .class interface public abstract auto ansi import IWorksheet { .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 30 30 30 32 30 38 31 30 2D 30 30 30 30 2D 30 30 30 30 2D 43 30 30 30 2D 30 30 30 30 30 30 30 30 30 30 34 36 00 00 ) .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 0E 57 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 00 00 ) } .class public auto ansi beforefieldinit WorksheetClass extends [mscorlib]System.Object implements IWorksheet { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } }"; var source = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); compilation.VerifyDiagnostics(); } [Fact] public void TestCoClassAttribute_NewOnInterface_UsingCustomIL_StructTypeCoClass() { var ilSource = @" .class interface public abstract auto ansi import IWorksheet { .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 30 30 30 32 30 38 31 30 2D 30 30 30 30 2D 30 30 30 30 2D 43 30 30 30 2D 30 30 30 30 30 30 30 30 30 30 34 36 00 00 ) .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 0E 57 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 00 00 ) } .class sequential ansi sealed public beforefieldinit WorksheetClass extends [mscorlib]System.ValueType { .pack 0 .size 1 } "; var source = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); compilation.VerifyDiagnostics( // (6,17): error CS0144: Cannot create an instance of the abstract type or interface 'IWorksheet' // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_UsingCustomIL_InvalidTypeName() { var ilSource = @" .class interface public abstract auto ansi import IWorksheet { .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 30 30 30 32 30 38 31 30 2D 30 30 30 30 2D 30 30 30 30 2D 43 30 30 30 2D 30 30 30 30 30 30 30 30 30 30 34 36 00 00 ) // correct attribute arguments signature: 01 00 0E 57 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 00 00 .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 0E 59 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 00 00 ) } .class public auto ansi beforefieldinit WorksheetClass extends [mscorlib]System.Object implements IWorksheet { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } }"; var source = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); compilation.VerifyDiagnostics( // (6,17): error CS1613: The managed coclass wrapper class 'YorksheetClass' for interface 'IWorksheet' cannot be found (are you missing an assembly reference?) // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_MissingCoClass, "new IWorksheet()").WithArguments("YorksheetClass", "IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_UsingCustomIL_UnboundGenericTypeCoClass() { var ilSource = @" .class interface public abstract auto ansi import IWorksheet { .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 30 30 30 32 30 38 31 30 2D 30 30 30 30 2D 30 30 30 30 2D 43 30 30 30 2D 30 30 30 30 30 30 30 30 30 30 34 36 00 00 ) // [CoClass(typeof(WorksheetClass<>))] .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 10 57 6F 72 6B 73 68 65 65 74 43 6C 61 73 73 60 31 00 00 ) } .class public auto ansi beforefieldinit WorksheetClass`1<T> extends [mscorlib]System.Object implements IWorksheet { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } }"; var source = @" public class MainClass { public static int Main () { var a = new IWorksheet(); return 0; } }"; var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); compilation.VerifyDiagnostics( // (6,17): error CS1639: The managed coclass wrapper class signature 'WorksheetClass<>' for interface 'IWorksheet' is not a valid class name signature // var a = new IWorksheet(); Diagnostic(ErrorCode.ERR_BadCoClassSig, "new IWorksheet()").WithArguments("WorksheetClass<>", "IWorksheet").WithLocation(6, 17)); } [Fact] public void TestCoClassAttribute_NewOnInterface_Within_AttributeArgument() { string source = @" using System; using System.Runtime.InteropServices; class CoClassType : InterfaceType { } class AAttribute: Attribute { public AAttribute(object o) {} } [ComImport, Guid(""00020810-0000-0000-C000-000000000046"")] [CoClass(typeof(CoClassType))] [AAttribute(new InterfaceType())] interface InterfaceType { } public class MainClass { public static int Main () { return 0; } }"; CreateCompilation(source).VerifyDiagnostics( // (16,13): error CS0144: Cannot create an instance of the abstract type or interface 'InterfaceType' // [AAttribute(new InterfaceType())] Diagnostic(ErrorCode.ERR_NoNewAbstract, "new InterfaceType()").WithArguments("InterfaceType").WithLocation(16, 13)); } [Fact, WorkItem(544237, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544237")] public void TestCoClassAttribute_NewOnInterface_NoConversion() { string source = @" using System; using System.Runtime.InteropServices; [ComImport] [Guid(""69D3E2A0-BB0F-4FE3-9860-ED714C510756"")] [CoClass(typeof(StackOverflowException))] interface I { } class A { static void Main() { var x = new I(); // error CS0030: Cannot convert type 'System.StackOverflowException' to 'I' } } "; CreateCompilation(source).VerifyDiagnostics( // (14,17): error CS0030: Cannot convert type 'System.StackOverflowException' to 'I' // var x = new I(); // error CS0030: Cannot convert type 'System.StackOverflowException' to 'I' Diagnostic(ErrorCode.ERR_NoExplicitConv, "new I()").WithArguments("System.StackOverflowException", "I").WithLocation(14, 17)); } #endregion #region GuidAttribute [Fact] public void TestInvalidGuidAttribute() { string source = @" using System; using System.Runtime.InteropServices; [ComImport] [Guid(""69D3E2A0-BB0F-4FE3-9860-ED714C510756"")] // valid (36 chars) class A {} [Guid(""69D3E2A0-BB0F-4FE3-9860-ED714C51075"")] // incorrect length (35 chars) class B {} [Guid(""69D3E2A0BB0F--4FE3-9860-ED714C510756"")] // invalid format class C {} [Guid("""")] // empty string class D {} [Guid(null)] // null class E {} "; CreateCompilation(source).VerifyDiagnostics( // (9,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("69D3E2A0-BB0F-4FE3-9860-ED714C51075")] // incorrect length (35 chars) Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0-BB0F-4FE3-9860-ED714C51075""").WithArguments("Guid").WithLocation(9, 7), // (12,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("69D3E2A0BB0F--4FE3-9860-ED714C510756")] // invalid format Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F--4FE3-9860-ED714C510756""").WithArguments("Guid").WithLocation(12, 7), // (15,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("")] // empty string Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""""").WithArguments("Guid").WithLocation(15, 7), // (18,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid(null)] // null Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "null").WithArguments("Guid").WithLocation(18, 7)); } [WorkItem(545490, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545490")] [Fact] public void TestInvalidGuidAttribute_02() { string source = @" using System; using System.Runtime.InteropServices; // Following are alternate valid Guid formats, but disallowed by the native compiler. Ensure we disallow them. [Guid(""69D3E2A0BB0F4FE39860ED714C510756"")] // 32 digits, no hyphens class A {} [Guid(""{69D3E2A0-BB0F-4FE3-9860-ED714C510756}"")] // 32 digits separated by hyphens, enclosed in braces class B {} [Guid(""(69D3E2A0-BB0F-4FE3-9860-ED714C510756)"")] // 32 digits separated by hyphens, enclosed in parentheses class C {} [Guid(""{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}"")] // Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces class D {} "; CreateCompilation(source).VerifyDiagnostics( // (7,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("69D3E2A0BB0F4FE39860ED714C510756")] // 32 digits, no hyphens Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F4FE39860ED714C510756""").WithArguments("Guid").WithLocation(7, 7), // (10,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("{69D3E2A0-BB0F-4FE3-9860-ED714C510756}")] // 32 digits separated by hyphens, enclosed in braces Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""{69D3E2A0-BB0F-4FE3-9860-ED714C510756}""").WithArguments("Guid").WithLocation(10, 7), // (13,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("(69D3E2A0-BB0F-4FE3-9860-ED714C510756)")] // 32 digits separated by hyphens, enclosed in parentheses Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""(69D3E2A0-BB0F-4FE3-9860-ED714C510756)""").WithArguments("Guid").WithLocation(13, 7), // (16,7): error CS0591: Invalid value for argument to 'Guid' attribute // [Guid("{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}")] // Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}""").WithArguments("Guid").WithLocation(16, 7)); } [Fact] public void TestInvalidGuidAttribute_Assembly() { string source = @" using System; using System.Runtime.InteropServices; [assembly: Guid(""69D3E2A0BB0F--4FE3-9860-ED714C510756"")] // invalid format "; CreateCompilation(source).VerifyDiagnostics( // (5,17): error CS0591: Invalid value for argument to 'Guid' attribute // [assembly: Guid("69D3E2A0BB0F--4FE3-9860-ED714C510756")] // invalid format Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F--4FE3-9860-ED714C510756""").WithArguments("Guid").WithLocation(5, 17)); } #endregion #region SpecialNameAttribute [Fact, WorkItem(544392, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544392")] public void SpecialName() { string source = @" using System; using System.Runtime.CompilerServices; [SpecialName] class Z { [SpecialName] void m() { } [SpecialName] int f; [SpecialName] int p1 { get; set; } [SpecialName] int p2 { get { return 1; } } [SpecialName] int p3 { [SpecialName] get { return 1; } [SpecialName] set { } } [SpecialName] [field: SpecialName] [method: SpecialName] event Action e; } enum En { [SpecialName] A = 1 } [SpecialName] struct S { } "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var ca in metadataReader.CustomAttributes) { var name = MetadataValidation.GetAttributeName(metadataReader, ca); Assert.NotEqual("SpecialNameAttribute", name); } foreach (var typeDef in metadataReader.TypeDefinitions) { var row = metadataReader.GetTypeDefinition(typeDef); var name = metadataReader.GetString(row.Name); switch (name) { case "S": case "Z": Assert.Equal(TypeAttributes.SpecialName, row.Attributes & TypeAttributes.SpecialName); break; case "<Module>": case "En": Assert.Equal((TypeAttributes)0, row.Attributes & TypeAttributes.SpecialName); break; default: throw TestExceptionUtilities.UnexpectedValue(name); } } foreach (var methodHandle in metadataReader.MethodDefinitions) { var flags = metadataReader.GetMethodDefinition(methodHandle).Attributes; Assert.Equal(MethodAttributes.SpecialName, flags & MethodAttributes.SpecialName); } foreach (var fieldDef in metadataReader.FieldDefinitions) { var field = metadataReader.GetFieldDefinition(fieldDef); var name = metadataReader.GetString(field.Name); var flags = field.Attributes; switch (name) { case "e": case "f": case "value__": case "A": Assert.Equal(FieldAttributes.SpecialName, flags & FieldAttributes.SpecialName); break; case "<p1>k__BackingField": Assert.Equal((FieldAttributes)0, flags & FieldAttributes.SpecialName); break; default: throw TestExceptionUtilities.UnexpectedValue(name); } } foreach (var propertyDef in metadataReader.PropertyDefinitions) { var flags = metadataReader.GetPropertyDefinition(propertyDef).Attributes; Assert.Equal(PropertyAttributes.SpecialName, flags & PropertyAttributes.SpecialName); } foreach (var eventDef in metadataReader.EventDefinitions) { var flags = metadataReader.GetEventDefinition(eventDef).Attributes; Assert.Equal(EventAttributes.SpecialName, flags & EventAttributes.SpecialName); } }); } #endregion #region SerializableAttribute [Fact, WorkItem(544392, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544392")] public void Serializable() { string source = @" using System; using System.Runtime.CompilerServices; [Serializable] class A { [field: NonSerialized] event Action e; } [Serializable] struct B { [NonSerialized] int x; } [Serializable] enum E { [NonSerialized] A = 1 } [Serializable] delegate void D(); "; CompileAndVerify(source, assemblyValidator: (assembly) => { var metadataReader = assembly.GetMetadataReader(); foreach (var ca in metadataReader.CustomAttributes) { var name = MetadataValidation.GetAttributeName(metadataReader, ca); Assert.NotEqual("SpecialNameAttribute", name); } foreach (var typeDef in metadataReader.TypeDefinitions) { var row = metadataReader.GetTypeDefinition(typeDef); var name = metadataReader.GetString(row.Name); switch (name) { case "A": case "B": case "E": case "D": Assert.Equal(TypeAttributes.Serializable, row.Attributes & TypeAttributes.Serializable); break; case "<Module>": Assert.Equal((TypeAttributes)0, row.Attributes & TypeAttributes.Serializable); break; default: throw TestExceptionUtilities.UnexpectedValue(name); } } foreach (var fieldDef in metadataReader.FieldDefinitions) { var field = metadataReader.GetFieldDefinition(fieldDef); var name = metadataReader.GetString(field.Name); var flags = field.Attributes; switch (name) { case "e": case "x": case "A": Assert.Equal(FieldAttributes.NotSerialized, flags & FieldAttributes.NotSerialized); break; case "value__": Assert.Equal((FieldAttributes)0, flags & FieldAttributes.NotSerialized); break; } } }); } [Fact] [WorkItem(3898, "https://github.com/dotnet/roslyn/issues/3898")] void SerializableFromPE() { string lib_cs = @" using System; [Serializable, Bob] public class C { } [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class BobAttribute : Attribute { }"; var lib_comp = CreateCompilation(lib_cs); verify(lib_comp, isSerializablePresent: true); var client1 = CreateCompilation("", references: new[] { lib_comp.ToMetadataReference() }); verify(client1, isSerializablePresent: true); var client2 = CreateCompilation("", references: new[] { lib_comp.EmitToImageReference() }); verify(client2, isSerializablePresent: false); void verify(CSharpCompilation comp, bool isSerializablePresent) { NamedTypeSymbol typeC = comp.GetTypeByMetadataName("C"); var expectedAttributes = isSerializablePresent ? new[] { "System.SerializableAttribute", "BobAttribute" } : new[] { "BobAttribute" }; AssertEx.SetEqual(expectedAttributes, typeC.GetAttributes().Select(a => a.ToString())); Assert.True(typeC.IsSerializable); NamedTypeSymbol typeBobAttribute = comp.GetTypeByMetadataName("BobAttribute"); Assert.False(typeBobAttribute.IsSerializable); } } [Fact] [WorkItem(3898, "https://github.com/dotnet/roslyn/issues/3898")] public void TestIsSerializableProperty() { string missing = @" public class TopLevel { public class Nested { } } public class TopLevel<T> { public class Nested<U> { } } public class Constructed<T> { } "; string source = @" public class C<T> { public class Nested { } } [System.Serializable] public class CS<T> { [System.Serializable] public class NestedS { } } public class SubstitutedNested : C<int>.Nested { } public class SubstitutedNestedS : CS<int>.NestedS { } public class Constructed : C<int> { } public class ConstructedS : CS<int> { } public class MissingTopLevel : TopLevel { } public class MissingNested : TopLevel.Nested { } public class MissingConstructed : Constructed<int> { } public class MissingSubstitutedNested<T, U> : TopLevel<T>.Nested<U> { } namespace System { [System.Serializable] public struct ValueTuple<T1, T2> { } } public class ValueTupleS { (int, int) M() => throw null; } "; string errors = @" public class ExtendedError : ExtendedErrorBase { } public class Unbound : Constructed<> { } "; var lib = CreateCompilationWithMscorlib46(missing, assemblyName: "missing"); lib.VerifyDiagnostics(); var comp = CreateCompilationWithMscorlib46(source, references: new[] { lib.EmitToImageReference() }); comp.VerifyDiagnostics(); var comp2 = CreateCompilationWithMscorlib46(errors, references: new[] { comp.EmitToImageReference() }); var substitutedNested = comp.GetTypeByMetadataName("SubstitutedNested").BaseType(); Assert.IsType<SubstitutedNestedTypeSymbol>(substitutedNested); Assert.False(((NamedTypeSymbol)substitutedNested).IsSerializable); var substitutedNestedS = comp.GetTypeByMetadataName("SubstitutedNestedS").BaseType(); Assert.IsType<SubstitutedNestedTypeSymbol>(substitutedNestedS); Assert.True(((NamedTypeSymbol)substitutedNestedS).IsSerializable); var valueTupleS = comp.GetTypeByMetadataName("ValueTupleS").GetMember("M").GetTypeOrReturnType().Type; Assert.True(valueTupleS.IsTupleType); Assert.True(((NamedTypeSymbol)valueTupleS).IsSerializable); var constructed = comp.GetTypeByMetadataName("Constructed").BaseType(); Assert.IsType<ConstructedNamedTypeSymbol>(constructed); Assert.False(((NamedTypeSymbol)constructed).IsSerializable); var constructedS = comp.GetTypeByMetadataName("ConstructedS").BaseType(); Assert.IsType<ConstructedNamedTypeSymbol>(constructedS); Assert.True(((NamedTypeSymbol)constructedS).IsSerializable); var extendedError = comp2.GetTypeByMetadataName("ExtendedError").BaseType(); Assert.IsType<ExtendedErrorTypeSymbol>(extendedError); Assert.False(((NamedTypeSymbol)extendedError).IsSerializable); var topLevel = comp2.GetTypeByMetadataName("MissingTopLevel").BaseType(); Assert.IsType<MissingMetadataTypeSymbol.TopLevel>(topLevel); Assert.False(((NamedTypeSymbol)topLevel).IsSerializable); var nested = comp2.GetTypeByMetadataName("MissingNested").BaseType(); Assert.IsType<MissingMetadataTypeSymbol.Nested>(nested); Assert.False(((NamedTypeSymbol)nested).IsSerializable); var constructedError = comp2.GetTypeByMetadataName("MissingConstructed").BaseType(); Assert.IsType<ConstructedErrorTypeSymbol>(constructedError); Assert.False(((NamedTypeSymbol)constructedError).IsSerializable); var nestedSubstitutedError = comp2.GetTypeByMetadataName("MissingSubstitutedNested`2").BaseType().ConstructedFrom; Assert.IsType<SubstitutedNestedErrorTypeSymbol>(nestedSubstitutedError); Assert.False(((NamedTypeSymbol)nestedSubstitutedError).IsSerializable); var unbound = comp2.GetTypeByMetadataName("Unbound").BaseType().TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type; Assert.IsType<UnboundArgumentErrorTypeSymbol>(unbound); Assert.False(((NamedTypeSymbol)unbound).IsSerializable); var script = CreateCompilation("", parseOptions: TestOptions.Script); var scriptClass = script.GetTypeByMetadataName("Script"); Assert.IsType<ImplicitNamedTypeSymbol>(scriptClass); Assert.False(((NamedTypeSymbol)scriptClass).IsSerializable); } #endregion #region ParamArrayAttribute [Fact] public void TestParamArrayAttributeForParams() { string source = @" using System; namespace AttributeTest { public class MyClass { public static void UseParams(params int[] list) { for ( int i = 0 ; i < list.Length ; i++ ) Console.WriteLine(list[i]); Console.WriteLine(); } public static void NoParams(object list) { Console.WriteLine(); } public static void Main() { UseParams(1, 2, 3); NoParams(1); int[] myarray = new int[3] {10,11,12}; UseParams(myarray); } } } "; var compilation = CreateCompilation(source); // Verify attributes from source and then load metadata to see attributes are written correctly. var comp = CompileAndVerify( compilation, expectedSignatures: new[] { Signature("AttributeTest.MyClass", "UseParams", ".method public hidebysig static System.Void UseParams([System.ParamArrayAttribute()] System.Int32[] list) cil managed"), Signature("AttributeTest.MyClass", "NoParams", ".method public hidebysig static System.Void NoParams(System.Object list) cil managed"), }, symbolValidator: module => { var @namespace = module.GlobalNamespace.GetNestedNamespace("AttributeTest"); var type = @namespace.GetTypeMember("MyClass"); var useParamsMethod = type.GetMethod("UseParams"); var paramsParameter = useParamsMethod.Parameters[0]; VerifyParamArrayAttribute(paramsParameter); var noParamsMethod = type.GetMethod("NoParams"); var noParamsParameter = noParamsMethod.Parameters[0]; Assert.Empty(noParamsParameter.GetAttributes()); }); } #endregion #region AttributeUsageAttribute [WorkItem(541733, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541733")] [Fact] public void TestSourceOverrideWellKnownAttribute_01() { string source = @" namespace System { [AttributeUsage(AttributeTargets.Class)] [AttributeUsage(AttributeTargets.Class)] class AttributeUsageAttribute : Attribute { public AttributeUsageAttribute(AttributeTargets x) { } } }"; var syntaxTree = Parse(source, filename: "test.cs"); var compilation = CreateCompilationWithMscorlib40(syntaxTree); var comp = compilation.VerifyDiagnostics( // test.cs(4,6): warning CS0436: The type 'AttributeUsageAttribute' in 'test.cs' conflicts with the imported type 'AttributeUsageAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in 'test.cs'. // [AttributeUsage(AttributeTargets.Class)] Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AttributeUsage").WithArguments("test.cs", "System.AttributeUsageAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.AttributeUsageAttribute").WithLocation(4, 6), // test.cs(5,6): warning CS0436: The type 'AttributeUsageAttribute' in 'test.cs' conflicts with the imported type 'AttributeUsageAttribute' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using the type defined in 'test.cs'. // [AttributeUsage(AttributeTargets.Class)] Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AttributeUsage").WithArguments("test.cs", "System.AttributeUsageAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.AttributeUsageAttribute").WithLocation(5, 6), // test.cs(5,6): error CS0579: Duplicate 'AttributeUsage' attribute // [AttributeUsage(AttributeTargets.Class)] Diagnostic(ErrorCode.ERR_DuplicateAttribute, "AttributeUsage").WithArguments("AttributeUsage").WithLocation(5, 6)); } [WorkItem(541733, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541733")] [WorkItem(546102, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546102")] [Fact] public void TestSourceOverrideWellKnownAttribute_02() { string source = @" namespace System { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] class AttributeUsageAttribute : Attribute { public AttributeUsageAttribute(AttributeTargets x) { } public bool AllowMultiple { get { return false; } set { } } } }"; var syntaxTree = Parse(source, filename: "test.cs"); var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var ns = (NamespaceSymbol)m.GlobalNamespace.GetMember("System"); var attrType = ns.GetTypeMember("AttributeUsageAttribute"); var attrs = attrType.GetAttributes(attrType); Assert.Equal(2, attrs.Count()); // Verify attributes var attrSym = attrs.First(); Assert.Equal(1, attrSym.CommonConstructorArguments.Length); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)AttributeTargets.Class); Assert.Equal(1, attrSym.CommonNamedArguments.Length); attrSym.VerifyNamedArgumentValue(0, "AllowMultiple", TypedConstantKind.Primitive, true); attrSym = attrs.ElementAt(1); Assert.Equal(1, attrSym.CommonConstructorArguments.Length); attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)AttributeTargets.Class); Assert.Equal(1, attrSym.CommonNamedArguments.Length); attrSym.VerifyNamedArgumentValue(0, "AllowMultiple", TypedConstantKind.Primitive, false); // Verify AttributeUsage var attributeUsage = attrType.GetAttributeUsageInfo(); Assert.Equal(AttributeTargets.Class, attributeUsage.ValidTargets); Assert.True(attributeUsage.AllowMultiple); Assert.True(attributeUsage.Inherited); }; // Verify attributes from source and then load metadata to see attributes are written correctly. CompileAndVerify(source, sourceSymbolValidator: attributeValidator, symbolValidator: attributeValidator); } [WorkItem(546102, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546102")] [Fact] public void TestAttributeUsageAllowMultiple() { string source = @" using System; namespace System { class AttributeUsageAttribute : Attribute { public AttributeUsageAttribute(AttributeTargets x) { } public bool AllowMultiple { get { return false; } set { } } } } [A, A] [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] class A: Attribute {} "; CompileAndVerify(source); } [WorkItem(546056, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546056")] [Fact] public void TestBadAttributeUsageArgument() { string source = @" using System; [AttributeUsage(badAttributeTargets)] public class MyAttribute : Attribute { public const AttributeTargets badAttributeTargets = Missing; } "; CreateCompilation(source).VerifyDiagnostics( // (7,54): error CS0103: The name 'Missing' does not exist in the current context // public const AttributeTargets badAttributeTargets = Missing; Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing"), // (4,17): error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type // [AttributeUsage(badAttributeTargets)] Diagnostic(ErrorCode.ERR_BadAttributeArgument, "badAttributeTargets")); } #endregion #region InternalsVisibleToAttribute [WorkItem(542173, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542173")] [Fact] public void MergeMemberImplWithImportedInternals() { #region "Text" string text1 = @" [assembly: System.Runtime.CompilerServices.InternalsVisibleTo(""Child"")] [assembly: System.Runtime.CompilerServices.InternalsVisibleTo(""Child2"")] public abstract class Parent { internal abstract string M1(); public abstract int GetInt(); } "; string text2 = @" [assembly: System.Runtime.CompilerServices.InternalsVisibleTo(""Child2"")] public abstract class Child: Parent { internal override string M1() { return ""Child""; } } "; string text3 = @" public class Child2: Child { public override int GetInt() { return 2; } } "; #endregion var opt = TestOptions.ReleaseDll; var comp1 = CreateCompilation(text1, options: opt); var compref1 = new CSharpCompilationReference(comp1); var comp2 = CreateCompilation(text2, references: new[] { compref1 }, options: opt, assemblyName: "Child"); var comp3 = CreateCompilation(text3, references: new[] { compref1, new CSharpCompilationReference(comp2) }, options: opt, assemblyName: "Child2"); // OK comp3.VerifyDiagnostics(); comp3 = CreateCompilation(text3, references: new[] { compref1, new CSharpCompilationReference(comp2) }, options: opt, assemblyName: "Child2"); comp3.VerifyDiagnostics(); } #endregion #region CustomConstantAttribute [Fact, WorkItem(544440, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544440"), WorkItem(538206, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538206")] public void CustomConstantAttributeIntToObj() { #region "Source" string source = @" using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)] sealed class ObjectConstantAttribute : CustomConstantAttribute { private object _obj; public override object Value { get { return _obj; } } public ObjectConstantAttribute(object objectValue) { _obj = objectValue; } } public class Test { public void Goo2([Optional][ObjectConstant(1000)] object obj) { Console.WriteLine(obj); } public static void Main() { new Test().Goo2(); } } "; #endregion CompileAndVerify(source, expectedOutput: @"System.Reflection.Missing") .VerifyIL("Test.Main", @"{ // Code size 16 (0x10) .maxstack 2 IL_0000: newobj ""Test..ctor()"" IL_0005: ldsfld ""object System.Type.Missing"" IL_000a: call ""void Test.Goo2(object)"" IL_000f: ret }"); } #endregion #region AssemblyKeyFileAttribute // See InternalsVisibleToAndStrongNameTests #endregion #region ClassInterfaceAttribute [Fact] public void TestClassInterfaceAttribute() { var source = @" using System.Runtime.InteropServices; // Valid cases [assembly: ClassInterface(ClassInterfaceType.None)] [ClassInterface(ClassInterfaceType.AutoDispatch)] public class Class1 {} [ClassInterface(ClassInterfaceType.AutoDual)] public class Class2 {} [ClassInterface((short)0)] public class Class4 {} [ClassInterface((short)1)] public class Class5 {} [ClassInterface((short)2)] public class Class6 {} // Invalid cases [ClassInterface((ClassInterfaceType)(-1))] public class InvalidClass1 {} [ClassInterface((ClassInterfaceType)3)] public class InvalidClass2 {} [ClassInterface((short)(-1))] public class InvalidClass3 {} [ClassInterface((short)3)] public class InvalidClass4 {} [ClassInterface(System.Int32.MaxValue)] public class InvalidClass5 { } [ClassInterface(ClassInterfaceType.None)] public interface InvalidTarget {} "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (26,17): error CS0591: Invalid value for argument to 'ClassInterface' attribute // [ClassInterface((ClassInterfaceType)(-1))] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(ClassInterfaceType)(-1)").WithArguments("ClassInterface"), // (29,17): error CS0591: Invalid value for argument to 'ClassInterface' attribute // [ClassInterface((ClassInterfaceType)3)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(ClassInterfaceType)3").WithArguments("ClassInterface"), // (32,17): error CS0591: Invalid value for argument to 'ClassInterface' attribute // [ClassInterface((short)(-1))] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(short)(-1)").WithArguments("ClassInterface"), // (35,17): error CS0591: Invalid value for argument to 'ClassInterface' attribute // [ClassInterface((short)3)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(short)3").WithArguments("ClassInterface"), // (38,17): error CS1503: Argument 1: cannot convert from 'int' to 'System.Runtime.InteropServices.ClassInterfaceType' // [ClassInterface(System.Int32.MaxValue)] Diagnostic(ErrorCode.ERR_BadArgType, "System.Int32.MaxValue").WithArguments("1", "int", "System.Runtime.InteropServices.ClassInterfaceType"), // (41,2): error CS0592: Attribute 'ClassInterface' is not valid on this declaration type. It is only valid on 'assembly, class' declarations. // [ClassInterface(ClassInterfaceType.None)] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ClassInterface").WithArguments("ClassInterface", "assembly, class")); } #endregion #region InterfaceTypeAttribute [Fact] public void TestInterfaceTypeAttribute() { var source = @" using System.Runtime.InteropServices; // Valid cases [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface Interface1 {} [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface Interface2 {} [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface Interface4 {} // ComInterfaceType.InterfaceIsIInspectable seems to be undefined in version of mscorlib used by the test framework. [InterfaceType((ComInterfaceType)3)] public interface Interface3 {} [InterfaceType((short)0)] public interface Interface5 {} [InterfaceType((short)1)] public interface Interface6 {} [InterfaceType((short)2)] public interface Interface7 {} [InterfaceType((short)3)] public interface Interface8 {} // Invalid cases [InterfaceType((ComInterfaceType)(-1))] public interface InvalidInterface1 {} [InterfaceType((ComInterfaceType)4)] public interface InvalidInterface2 {} [InterfaceType((short)(-1))] public interface InvalidInterface3 {} [InterfaceType((short)4)] public interface InvalidInterface4 {} [InterfaceType(System.Int32.MaxValue)] public interface InvalidInterface5 {} [InterfaceType(ComInterfaceType.InterfaceIsDual)] public class InvalidTarget {} "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (34,16): error CS0591: Invalid value for argument to 'InterfaceType' attribute // [InterfaceType((ComInterfaceType)(-1))] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(ComInterfaceType)(-1)").WithArguments("InterfaceType"), // (37,16): error CS0591: Invalid value for argument to 'InterfaceType' attribute // [InterfaceType((ComInterfaceType)4)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(ComInterfaceType)4").WithArguments("InterfaceType"), // (40,16): error CS0591: Invalid value for argument to 'InterfaceType' attribute // [InterfaceType((short)(-1))] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(short)(-1)").WithArguments("InterfaceType"), // (43,16): error CS0591: Invalid value for argument to 'InterfaceType' attribute // [InterfaceType((short)4)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "(short)4").WithArguments("InterfaceType"), // (46,16): error CS1503: Argument 1: cannot convert from 'int' to 'System.Runtime.InteropServices.ComInterfaceType' // [InterfaceType(System.Int32.MaxValue)] Diagnostic(ErrorCode.ERR_BadArgType, "System.Int32.MaxValue").WithArguments("1", "int", "System.Runtime.InteropServices.ComInterfaceType"), // (49,2): error CS0592: Attribute 'InterfaceType' is not valid on this declaration type. It is only valid on 'interface' declarations. // [InterfaceType(ComInterfaceType.InterfaceIsDual)] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "InterfaceType").WithArguments("InterfaceType", "interface")); } #endregion #region TypeLibVersionAttribute [Fact] public void TestTypeLibVersionAttribute_Valid() { var source = @" using System.Runtime.InteropServices; [assembly: TypeLibVersionAttribute(0, int.MaxValue)] "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics(); } [Fact] public void TestTypeLibVersionAttribute_Valid2() { var source = @" using System.Runtime.InteropServices; [assembly: TypeLibVersionAttribute(C.S * C.S, unchecked((int)((long)-int.MinValue - 1)))] public class C { public const short S = short.MaxValue; } "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics(); } [Fact] public void TestTypeLibVersionAttribute_Invalid() { var source = @" using System.Runtime.InteropServices; [assembly: TypeLibVersionAttribute(-1, int.MinValue)] "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (4,36): error CS0591: Invalid value for argument to 'TypeLibVersionAttribute' attribute // [assembly: TypeLibVersionAttribute(-1, int.MinValue)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("TypeLibVersionAttribute"), // (4,40): error CS0591: Invalid value for argument to 'TypeLibVersionAttribute' attribute // [assembly: TypeLibVersionAttribute(-1, int.MinValue)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "int.MinValue").WithArguments("TypeLibVersionAttribute")); } [Fact] public void TestTypeLibVersionAttribute_Invalid_02() { var source = @" using System.Runtime.InteropServices; [assembly: TypeLibVersionAttribute(""str"", 0)] "; CreateCompilationWithMscorlib40(source).VerifyDiagnostics( // (4,36): error CS1503: Argument 1: cannot convert from 'string' to 'int' // [assembly: TypeLibVersionAttribute("str", 0)] Diagnostic(ErrorCode.ERR_BadArgType, @"""str""").WithArguments("1", "string", "int")); } #endregion #region ComCompatibleVersionAttribute [Fact] public void TestComCompatibleVersionAttribute_Valid() { var source = @" using System.Runtime.InteropServices; [assembly: ComCompatibleVersionAttribute(0, 0, 0, 0)] "; CreateCompilation(source).VerifyDiagnostics(); } [Fact] public void TestComCompatibleVersionAttribute_Invalid() { var source = @" using System.Runtime.InteropServices; [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] "; CreateCompilation(source).VerifyDiagnostics( // (4,42): error CS0591: Invalid value for argument to 'ComCompatibleVersionAttribute' attribute // [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("ComCompatibleVersionAttribute"), // (4,46): error CS0591: Invalid value for argument to 'ComCompatibleVersionAttribute' attribute // [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("ComCompatibleVersionAttribute"), // (4,50): error CS0591: Invalid value for argument to 'ComCompatibleVersionAttribute' attribute // [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("ComCompatibleVersionAttribute"), // (4,54): error CS0591: Invalid value for argument to 'ComCompatibleVersionAttribute' attribute // [assembly: ComCompatibleVersionAttribute(-1, -1, -1, -1)] Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("ComCompatibleVersionAttribute")); } [Fact] public void TestComCompatibleVersionAttribute_Invalid_02() { var source = @" using System.Runtime.InteropServices; [assembly: ComCompatibleVersionAttribute(""str"", 0)] "; CreateCompilation(source).VerifyDiagnostics( // (4,12): error CS7036: There is no argument given that corresponds to the required formal parameter 'build' of 'System.Runtime.InteropServices.ComCompatibleVersionAttribute.ComCompatibleVersionAttribute(int, int, int, int)' // [assembly: ComCompatibleVersionAttribute("str", 0)] Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, @"ComCompatibleVersionAttribute(""str"", 0)").WithArguments("build", "System.Runtime.InteropServices.ComCompatibleVersionAttribute.ComCompatibleVersionAttribute(int, int, int, int)").WithLocation(4, 12)); } #endregion #region WindowsRuntimeImportAttribute [Fact] public void TestWindowsRuntimeImportAttribute() { var source = @" using System; using System.Runtime.InteropServices; namespace System.Runtime.InteropServices.WindowsRuntime { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Struct | AttributeTargets.Delegate, Inherited = false)] internal sealed class WindowsRuntimeImportAttribute : Attribute { public WindowsRuntimeImportAttribute() { } } } [System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeImport] class A { public static void Main() {} } "; Action<ModuleSymbol> sourceValidator = (ModuleSymbol module) => { NamespaceSymbol windowsRuntimeNS = Get_System_Runtime_InteropServices_WindowsRuntime_NamespaceSymbol(module); NamedTypeSymbol windowsRuntimeImportAttrType = windowsRuntimeNS.GetTypeMember("WindowsRuntimeImportAttribute"); NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); Assert.Equal(1, typeA.GetAttributes(windowsRuntimeImportAttrType).Count()); Assert.True(typeA.IsWindowsRuntimeImport, "Metadata flag not set for IsWindowsRuntimeImport"); }; Action<ModuleSymbol> metadataValidator = (ModuleSymbol module) => { NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); Assert.Equal(0, typeA.GetAttributes().Length); Assert.True(typeA.IsWindowsRuntimeImport, "Metadata flag not set for IsWindowsRuntimeImport"); }; // Verify that PEVerify will fail despite the fact that compiler produces no errors // This is consistent with Dev10 behavior // // Dev10 PEVerify failure: // [token 0x02000003] Type load failed. // // Dev10 Runtime Exception: // Unhandled Exception: System.TypeLoadException: Windows Runtime types can only be declared in Windows Runtime assemblies. var verifier = CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, verify: Verification.Fails, targetFramework: TargetFramework.Mscorlib40); } #endregion #region DynamicSecurityMethodAttribute [Fact] public void TestDynamicSecurityMethodAttribute() { var source = @" using System; using System.Security; namespace System.Security { // DynamicSecurityMethodAttribute: // Indicates that calling the target method requires space for a security // object to be allocated on the callers stack. This attribute is only ever // set on certain security methods defined within mscorlib. [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false )] sealed internal class DynamicSecurityMethodAttribute : System.Attribute { } } class A { [DynamicSecurityMethodAttribute] public static void SecurityMethod() { } public static void Main() { SecurityMethod(); } } "; Action<ModuleSymbol> sourceValidator = (ModuleSymbol module) => { NamespaceSymbol securityNS = Get_System_Security_NamespaceSymbol(module); NamedTypeSymbol dynamicSecurityMethodAttrType = securityNS.GetTypeMembers("DynamicSecurityMethodAttribute").Single(type => type.DeclaringSyntaxReferences.Any()); NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); MethodSymbol method = typeA.GetMember<MethodSymbol>("SecurityMethod"); Assert.Equal(1, method.GetAttributes(dynamicSecurityMethodAttrType).Count()); Assert.True(method.RequiresSecurityObject, "Metadata flag RequiresSecurityObject is not set"); }; Action<ModuleSymbol> metadataValidator = (ModuleSymbol module) => { NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); MethodSymbol method = typeA.GetMember<MethodSymbol>("SecurityMethod"); Assert.Equal(0, method.GetAttributes().Length); Assert.True(method.RequiresSecurityObject, "Metadata flag RequiresSecurityObject is not set"); }; CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, expectedOutput: ""); } [Fact] public void TestDynamicSecurityMethodAttribute_LocalFunction() { var source = @" using System; using System.Security; namespace System.Security { // DynamicSecurityMethodAttribute: // Indicates that calling the target method requires space for a security // object to be allocated on the callers stack. This attribute is only ever // set on certain security methods defined within mscorlib. [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false )] sealed internal class DynamicSecurityMethodAttribute : System.Attribute { } } class A { public static void Main() { SecurityMethod(); [DynamicSecurityMethodAttribute] static void SecurityMethod() { } } } "; void metadataValidator(ModuleSymbol module) { NamedTypeSymbol typeA = module.GlobalNamespace.GetTypeMember("A"); MethodSymbol method = typeA.GetMember<MethodSymbol>("<Main>g__SecurityMethod|0_0"); Assert.Equal(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(method.GetAttributes())); Assert.True(method.RequiresSecurityObject); }; var verifier = CompileAndVerify( source, symbolValidator: metadataValidator, expectedOutput: "", parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation = verifier.Compilation; var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var localFunctionSyntax = tree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Single(); var localFunctionSymbol = model.GetDeclaredSymbol(localFunctionSyntax).GetSymbol<LocalFunctionSymbol>(); Assert.True(localFunctionSymbol.RequiresSecurityObject); } #endregion #region ObsoleteAttribute [Fact, WorkItem(546062, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546062")] public void TestObsoleteAttributeOnTypes() { var source = @" using System; class Test { Class1 field1; Class1 Prop1 { get; set; } void Method1(Class1 c) {} public static void Main() { Class1 c = null; Test t = new Test(); t.field1 = c; t.Prop1 = c; t.Method1(new Class1()); Mydeleg x = (i) => i; } } [Obsolete(""Do not use this type"", true)] class Class1 {} [Obsolete] [SelfRecursive] class SelfRecursiveAttribute : Attribute {} [Obsolete(""Do not use A1"", false)] [A2] class A1 : Attribute {} [Obsolete] [A1] class A2: Attribute {} [A1] class A3: Attribute {} class AttrWithType : Attribute { public AttrWithType(Type t) {} } [Obsolete] [Another] class G<T, U> {} [Obsolete] [AttrWithType(typeof(G<int, AnotherAttribute>))] class AnotherAttribute: Attribute {} [AttrWithType(typeof(G<int, AnotherAttribute>))] class AnotherAttribute1: Attribute {} [System.Obsolete(""This message"" + "" should be concat'ed"", !(false))] [SelfRecursive1] class SelfRecursive1Attribute : Attribute {} [Obsolete] public delegate int Mydeleg(int x); [GooAttribute.BarAttribute.Baz] [Obsolete(""Blah"")] class GooAttribute : Attribute { class BazAttribute : Attribute { } class BarAttribute : GooAttribute { } } namespace TypeClashWithNS { class BarAttribute : Attribute {} } [TypeClashWithNS.Bar] class TypeClashWithNS : Attribute { class BarAttribute : Attribute { } } interface IGoo<T> {} [Obsolete] class SelfReferenceInBase : IGoo<SelfReferenceInBase> {} class SelfReferenceInBase1 : IGoo<SelfReferenceInBase> {} "; CreateCompilation(source).VerifyDiagnostics( // (78,7): error CS0101: The namespace '<global namespace>' already contains a definition for 'TypeClashWithNS' // class TypeClashWithNS : Attribute Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "TypeClashWithNS").WithArguments("TypeClashWithNS", "<global namespace>").WithLocation(78, 7), // (53,29): warning CS0612: 'AnotherAttribute' is obsolete // [AttrWithType(typeof(G<int, AnotherAttribute>))] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "AnotherAttribute").WithArguments("AnotherAttribute").WithLocation(53, 29), // (53,22): warning CS0612: 'G<int, AnotherAttribute>' is obsolete // [AttrWithType(typeof(G<int, AnotherAttribute>))] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "G<int, AnotherAttribute>").WithArguments("G<int, AnotherAttribute>").WithLocation(53, 22), // (7,5): error CS0619: 'Class1' is obsolete: 'Do not use this type' // Class1 Prop1 { get; set; } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(7, 5), // (87,35): warning CS0612: 'SelfReferenceInBase' is obsolete // class SelfReferenceInBase1 : IGoo<SelfReferenceInBase> {} Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "SelfReferenceInBase").WithArguments("SelfReferenceInBase").WithLocation(87, 35), // (6,5): error CS0619: 'Class1' is obsolete: 'Do not use this type' // Class1 field1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(6, 5), // (37,2): warning CS0618: 'A1' is obsolete: 'Do not use A1' // [A1] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "A1").WithArguments("A1", "Do not use A1").WithLocation(37, 2), // (8,18): error CS0619: 'Class1' is obsolete: 'Do not use this type' // void Method1(Class1 c) {} Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(8, 18), // (12,9): error CS0619: 'Class1' is obsolete: 'Do not use this type' // Class1 c = null; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(12, 9), // (16,23): error CS0619: 'Class1' is obsolete: 'Do not use this type' // t.Method1(new Class1()); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(16, 23), // (18,9): warning CS0612: 'Mydeleg' is obsolete // Mydeleg x = (i) => i; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Mydeleg").WithArguments("Mydeleg").WithLocation(18, 9)); } [Fact] public void TestObsoleteAttributeOnMembersAndAccessors() { var source = @" using System; public class Test { public static void Main() { ObsoleteMethod1(); ObsoleteMethod2(); ObsoleteMethod3(); ObsoleteMethod5(); Test t = new Test(); t.ObsoleteMethod4(); var f = t.field1; var p1 = t.Property1; var p2 = t.Property2; var p3 = t.Prop2; t.Prop2 = p3; var p4 = t.Prop3; t.Prop3 = p4; var p5 = t.Prop4; t.Prop4 = p5; t.event1(); t.event1 += () => { }; t.ObsoleteExtensionMethod1(); Action<int> func = t.ObsoleteMethod4; func(1); Action func1 = t.ObsoleteMethod4; func1(); Test t1 = new Test { Property1 = 10, Property2 =20}; var i1 = t1[10]; GenericTest<int> gt = new GenericTest<int>(); gt.ObsoleteMethod1<double>(); var gf = gt.field1; var gp1 = gt.Property1; gt.event1 += (i) => { }; } [Obsolete] public static void ObsoleteMethod1() { } [Obsolete(""Do not call this method"")] public static void ObsoleteMethod2() { } [Obsolete("""", true)] public static void ObsoleteMethod3() { } [Obsolete(""Do not call this method"")] public void ObsoleteMethod4() { } [Obsolete(""Do not call this method"")] public void ObsoleteMethod4(int x) { } [Obsolete(null, true)] public static void ObsoleteMethod5() { } [Obsolete(""Do not use this field"")] public int field1 = 0; [Obsolete(""Do not use this property"")] public int Property1 { get; set; } [Obsolete(""Do not use this property"")] public int Property2 { get { return 10; } set { } } [Obsolete(""Do not use this event"")] public event Action event1; public int Prop2 { [Obsolete] get { return 10; } set {} } public int Prop3 { get { return 10; } [Obsolete] set { } } public int Prop4 { [Obsolete] get { return 10; } [Obsolete] set { } } public event Action event2 { [Obsolete] add {} [Obsolete(""Don't use remove accessor"")] remove {} } [Obsolete] public int this[int x] { get { return 10; } } } public class GenericTest<T> { [Obsolete] public void ObsoleteMethod1<U>() { } [Obsolete(""Do not use this field"")] public T field1 = default(T); [Obsolete(""Do not use this property"")] public T Property1 { get; set; } [Obsolete(""Do not use this event"")] public event Action<T> event1; } public static class TestExtension { [Obsolete(""Do not call this extension method"")] public static void ObsoleteExtensionMethod1(this Test t) { } } "; CreateCompilationWithMscorlib40(source, new[] { TestMetadata.Net40.SystemCore }).VerifyDiagnostics( // (98,10): error CS8423: Attribute 'System.ObsoleteAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Obsolete] add {} Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(98, 10), // (99,10): error CS8423: Attribute 'System.ObsoleteAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Obsolete("Don't use remove accessor")] remove {} Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(99, 10), // (8,9): warning CS0612: 'Test.ObsoleteMethod1()' is obsolete // ObsoleteMethod1(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteMethod1()").WithArguments("Test.ObsoleteMethod1()").WithLocation(8, 9), // (9,9): warning CS0618: 'Test.ObsoleteMethod2()' is obsolete: 'Do not call this method' // ObsoleteMethod2(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "ObsoleteMethod2()").WithArguments("Test.ObsoleteMethod2()", "Do not call this method").WithLocation(9, 9), // (10,9): error CS0619: 'Test.ObsoleteMethod3()' is obsolete: '' // ObsoleteMethod3(); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "ObsoleteMethod3()").WithArguments("Test.ObsoleteMethod3()", "").WithLocation(10, 9), // (11,9): warning CS0612: 'Test.ObsoleteMethod5()' is obsolete // ObsoleteMethod5(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteMethod5()").WithArguments("Test.ObsoleteMethod5()").WithLocation(11, 9), // (15,9): warning CS0618: 'Test.ObsoleteMethod4()' is obsolete: 'Do not call this method' // t.ObsoleteMethod4(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4()").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").WithLocation(15, 9), // (16,17): warning CS0618: 'Test.field1' is obsolete: 'Do not use this field' // var f = t.field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.field1").WithArguments("Test.field1", "Do not use this field").WithLocation(16, 17), // (17,18): warning CS0618: 'Test.Property1' is obsolete: 'Do not use this property' // var p1 = t.Property1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.Property1").WithArguments("Test.Property1", "Do not use this property").WithLocation(17, 18), // (18,18): warning CS0618: 'Test.Property2' is obsolete: 'Do not use this property' // var p2 = t.Property2; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.Property2").WithArguments("Test.Property2", "Do not use this property").WithLocation(18, 18), // (20,18): warning CS0612: 'Test.Prop2.get' is obsolete // var p3 = t.Prop2; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop2").WithArguments("Test.Prop2.get").WithLocation(20, 18), // (24,9): warning CS0612: 'Test.Prop3.set' is obsolete // t.Prop3 = p4; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop3").WithArguments("Test.Prop3.set").WithLocation(24, 9), // (26,18): warning CS0612: 'Test.Prop4.get' is obsolete // var p5 = t.Prop4; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop4").WithArguments("Test.Prop4.get").WithLocation(26, 18), // (27,9): warning CS0612: 'Test.Prop4.set' is obsolete // t.Prop4 = p5; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop4").WithArguments("Test.Prop4.set").WithLocation(27, 9), // (32,9): warning CS0618: 'TestExtension.ObsoleteExtensionMethod1(Test)' is obsolete: 'Do not call this extension method' // t.ObsoleteExtensionMethod1(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteExtensionMethod1()").WithArguments("TestExtension.ObsoleteExtensionMethod1(Test)", "Do not call this extension method").WithLocation(32, 9), // (34,28): warning CS0618: 'Test.ObsoleteMethod4(int)' is obsolete: 'Do not call this method' // Action<int> func = t.ObsoleteMethod4; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4(int)", "Do not call this method").WithLocation(34, 28), // (36,24): warning CS0618: 'Test.ObsoleteMethod4()' is obsolete: 'Do not call this method' // Action func1 = t.ObsoleteMethod4; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").WithLocation(36, 24), // (38,30): warning CS0618: 'Test.Property1' is obsolete: 'Do not use this property' // Test t1 = new Test { Property1 = 10, Property2 =20}; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Property1").WithArguments("Test.Property1", "Do not use this property").WithLocation(38, 30), // (38,46): warning CS0618: 'Test.Property2' is obsolete: 'Do not use this property' // Test t1 = new Test { Property1 = 10, Property2 =20}; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Property2").WithArguments("Test.Property2", "Do not use this property").WithLocation(38, 46), // (39,18): warning CS0612: 'Test.this[int]' is obsolete // var i1 = t1[10]; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t1[10]").WithArguments("Test.this[int]").WithLocation(39, 18), // (42,9): warning CS0612: 'GenericTest<int>.ObsoleteMethod1<U>()' is obsolete // gt.ObsoleteMethod1<double>(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "gt.ObsoleteMethod1<double>()").WithArguments("GenericTest<int>.ObsoleteMethod1<U>()").WithLocation(42, 9), // (43,18): warning CS0618: 'GenericTest<int>.field1' is obsolete: 'Do not use this field' // var gf = gt.field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.field1").WithArguments("GenericTest<int>.field1", "Do not use this field").WithLocation(43, 18), // (44,19): warning CS0618: 'GenericTest<int>.Property1' is obsolete: 'Do not use this property' // var gp1 = gt.Property1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.Property1").WithArguments("GenericTest<int>.Property1", "Do not use this property").WithLocation(44, 19), // (30,9): warning CS0618: 'Test.event1' is obsolete: 'Do not use this event' // t.event1 += () => { }; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.event1").WithArguments("Test.event1", "Do not use this event").WithLocation(30, 9), // (45,9): warning CS0618: 'GenericTest<int>.event1' is obsolete: 'Do not use this event' // gt.event1 += (i) => { }; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.event1").WithArguments("GenericTest<int>.event1", "Do not use this event").WithLocation(45, 9), // (121,28): warning CS0067: The event 'GenericTest<T>.event1' is never used // public event Action<T> event1; Diagnostic(ErrorCode.WRN_UnreferencedEvent, "event1").WithArguments("GenericTest<T>.event1").WithLocation(121, 28)); } [Fact] public void TestObsoleteAttributeOnOperators() { var source = @" using System; public class Test { public static void Main() { Test t = new Test(); t = 10; t = (Test)""10""; Test c = new Test(); Test c1 = -c; Test c2 = c++; bool b1 = c? true: false; if (c && c1) { c1 += c; } } [Obsolete] static public implicit operator Test(int value) { return new Test(); } [Obsolete] static public explicit operator Test(string value) { return new Test(); } [Obsolete] static public Test operator -(Test x) { return new Test(); } [Obsolete] static public Test operator ++(Test x) { return new Test(); } [Obsolete] static public bool operator true(Test x) { return true; } [Obsolete] static public bool operator false(Test x) { return false; } [Obsolete] static public Test operator +(Test x, Test y) { return new Test(); } [Obsolete] static public Test operator &(Test x, Test x2) { return new Test(); } } "; CreateCompilation(source).VerifyDiagnostics( // (27,13): warning CS0612: 'Test.implicit operator Test(int)' is obsolete // t = 10; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "10").WithArguments("Test.implicit operator Test(int)"), // (28,13): warning CS0612: 'Test.explicit operator Test(string)' is obsolete // t = (Test)"10"; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, @"(Test)""10""").WithArguments("Test.explicit operator Test(string)"), // (13,19): warning CS0612: 'Test.operator -(Test)' is obsolete // Test c1 = -c; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "-c").WithArguments("Test.operator -(Test)"), // (14,19): warning CS0612: 'Test.operator ++(Test)' is obsolete // Test c2 = c++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c++").WithArguments("Test.operator ++(Test)"), // (15,19): warning CS0612: 'Test.operator true(Test)' is obsolete // bool b1 = c? true: false; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c").WithArguments("Test.operator true(Test)"), // (16,13): warning CS0612: 'Test.operator &(Test, Test)' is obsolete // if (c && c1) Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c && c1").WithArguments("Test.operator &(Test, Test)"), // (16,13): warning CS0612: 'Test.operator true(Test)' is obsolete // if (c && c1) Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c && c1").WithArguments("Test.operator true(Test)"), // (18,11): warning CS0612: 'Test.operator +(Test, Test)' is obsolete // c1 += c; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c1 += c").WithArguments("Test.operator +(Test, Test)")); } [Fact, WorkItem(546062, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546062")] public void TestObsoleteAttributeInMetadata() { var peSource = @" using System; [Obsolete] public class TestClass1 {} [Obsolete(""TestClass2 is obsolete"")] public class TestClass2 {} [Obsolete(""Do not use TestClass3"", true)] public class TestClass3 {} [Obsolete(""TestClass4 is obsolete"", false)] public class TestClass4 {} public class TestClass { [Obsolete(""Do not use TestMethod"")] public void TestMethod() {} [Obsolete(""Do not use Prop1"", false)] public int Prop1 { get; set; } public int Prop2 { [Obsolete(""Do not use Prop2.Get"")] get; set; } public int Prop3 { get; [Obsolete(""Do not use Prop3.Get"", true)] set; } [Obsolete(""Do not use field1"", true)] public TestClass field1; [Obsolete(""Do not use event"", true)] public Action event1; } "; var peReference = MetadataReference.CreateFromStream(CreateCompilation(peSource).EmitToStream()); var source = @" public class Test { public static void goo1(TestClass1 c) {} public static void goo2(TestClass2 c) {} public static void goo3(TestClass3 c) {} public static void goo4(TestClass4 c) {} public static void Main() { TestClass c = new TestClass(); c.TestMethod(); var i = c.Prop1; c = c.field1; c.event1(); c.event1 += () => {}; c.Prop2 = 42; i = c.Prop2; c.Prop3 = 42; i = c.Prop3; } } "; CreateCompilation(source, new[] { peReference }).VerifyDiagnostics( // (5,29): warning CS0618: 'TestClass2' is obsolete: 'TestClass2 is obsolete' // public static void goo2(TestClass2 c) {} Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestClass2").WithArguments("TestClass2", "TestClass2 is obsolete").WithLocation(5, 29), // (6,29): error CS0619: 'TestClass3' is obsolete: 'Do not use TestClass3' // public static void goo3(TestClass3 c) {} Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "TestClass3").WithArguments("TestClass3", "Do not use TestClass3").WithLocation(6, 29), // (7,29): warning CS0618: 'TestClass4' is obsolete: 'TestClass4 is obsolete' // public static void goo4(TestClass4 c) {} Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestClass4").WithArguments("TestClass4", "TestClass4 is obsolete").WithLocation(7, 29), // (4,29): warning CS0612: 'TestClass1' is obsolete // public static void goo1(TestClass1 c) {} Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "TestClass1").WithArguments("TestClass1").WithLocation(4, 29), // (12,9): warning CS0618: 'TestClass.TestMethod()' is obsolete: 'Do not use TestMethod' // c.TestMethod(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.TestMethod()").WithArguments("TestClass.TestMethod()", "Do not use TestMethod").WithLocation(12, 9), // (13,17): warning CS0618: 'TestClass.Prop1' is obsolete: 'Do not use Prop1' // var i = c.Prop1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.Prop1").WithArguments("TestClass.Prop1", "Do not use Prop1").WithLocation(13, 17), // (14,13): error CS0619: 'TestClass.field1' is obsolete: 'Do not use field1' // c = c.field1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.field1").WithArguments("TestClass.field1", "Do not use field1").WithLocation(14, 13), // (15,9): error CS0619: 'TestClass.event1' is obsolete: 'Do not use event' // c.event1(); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.event1").WithArguments("TestClass.event1", "Do not use event").WithLocation(15, 9), // (16,9): error CS0619: 'TestClass.event1' is obsolete: 'Do not use event' // c.event1 += () => {}; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.event1").WithArguments("TestClass.event1", "Do not use event").WithLocation(16, 9), // (18,13): warning CS0618: 'TestClass.Prop2.get' is obsolete: 'Do not use Prop2.Get' // i = c.Prop2; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.Prop2").WithArguments("TestClass.Prop2.get", "Do not use Prop2.Get").WithLocation(18, 13), // (19,9): error CS0619: 'TestClass.Prop3.set' is obsolete: 'Do not use Prop3.Get' // c.Prop3 = 42; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.Prop3").WithArguments("TestClass.Prop3.set", "Do not use Prop3.Get").WithLocation(19, 9)); } [Fact] public void TestObsoleteAttributeOnOverriddenMembers() { var source = @" using System; class C1 { public virtual void goo() {} } class C2 : C1 { [Obsolete] public override void goo() {} } class C3 : C1 { [Obsolete] public new void goo() {} } class C4 : C1 { public override void goo() {} } class C5 : C4 { [Obsolete] public override void goo() {} } class C6 : C5 { public override void goo() {} } class D1 { [Obsolete] public virtual void goo() {} } class D2 : D1 { public override void goo() {} } class D3 : D1 { public new void goo() {} } class D4 : D1 { [Obsolete] public override void goo() {} } class D5 : D4 { public override void goo() {} } class D6 : D5 { [Obsolete] public override void goo() {} } class E1 { public virtual int Goo {get; set;} } class E2 : E1 { public override int Goo { [Obsolete] get; set;} } class E3 : E1 { public new int Goo { [Obsolete] get; set;} } class E4 : E1 { public override int Goo {get; set;} } class E5 : E4 { public override int Goo { [Obsolete] get; set;} } class E6 : E5 { public override int Goo {get; set;} } class F1 { public virtual int Goo { [Obsolete] get; set;} } class F2 : F1 { public override int Goo {get; set;} } class F3 : F1 { public new int Goo {get; set;} } class F4 : F1 { public override int Goo { [Obsolete] get; set;} } class F5 : F4 { public override int Goo {get; set;} } class F6 : F5 { public override int Goo { [Obsolete] get; set;} } "; CreateCompilation(source).VerifyDiagnostics( // (10,26): warning CS0809: Obsolete member 'C2.goo()' overrides non-obsolete member 'C1.goo()' // public override void goo() {} Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "goo").WithArguments("C2.goo()", "C1.goo()").WithLocation(10, 26), // (90,30): warning CS0672: Member 'F2.Goo.get' overrides obsolete member 'F1.Goo.get'. Add the Obsolete attribute to 'F2.Goo.get'. // public override int Goo {get; set;} Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("F2.Goo.get", "F1.Goo.get").WithLocation(90, 30), // (77,42): warning CS0809: Obsolete member 'E5.Goo.get' overrides non-obsolete member 'E1.Goo.get' // public override int Goo { [Obsolete] get; set;} Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("E5.Goo.get", "E1.Goo.get").WithLocation(77, 42), // (51,26): warning CS0672: Member 'D5.goo()' overrides obsolete member 'D1.goo()'. Add the Obsolete attribute to 'D5.goo()'. // public override void goo() {} Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "goo").WithArguments("D5.goo()", "D1.goo()").WithLocation(51, 26), // (38,26): warning CS0672: Member 'D2.goo()' overrides obsolete member 'D1.goo()'. Add the Obsolete attribute to 'D2.goo()'. // public override void goo() {} Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "goo").WithArguments("D2.goo()", "D1.goo()").WithLocation(38, 26), // (24,26): warning CS0809: Obsolete member 'C5.goo()' overrides non-obsolete member 'C1.goo()' // public override void goo() {} Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "goo").WithArguments("C5.goo()", "C1.goo()").WithLocation(24, 26), // (102,30): warning CS0672: Member 'F5.Goo.get' overrides obsolete member 'F1.Goo.get'. Add the Obsolete attribute to 'F5.Goo.get'. // public override int Goo {get; set;} Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("F5.Goo.get", "F1.Goo.get").WithLocation(102, 30), // (65,42): warning CS0809: Obsolete member 'E2.Goo.get' overrides non-obsolete member 'E1.Goo.get' // public override int Goo { [Obsolete] get; set;} Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("E2.Goo.get", "E1.Goo.get").WithLocation(65, 42)); } [Fact] public void TestConsumptionOfObsoleteAttributeOnOverriddenAccessors() { var source = @" using System; class Base { public virtual int Boo { [Obsolete] get; set;} public virtual int Goo { get; set; } public virtual int Hoo { [Obsolete(""Base.Hoo is Obsolete"", true)] get; set; } public virtual int Joo { [Obsolete(""Base.Joo is Obsolete"", false)] get; set; } [Obsolete(""Base.Koo is Obsolete"")] public virtual int Koo { get; set; } } class Derived : Base { public override int Boo { get; set; } public override int Goo { [Obsolete] get; set; } public override int Hoo { [Obsolete(""Derived.Hoo is Obsolete"", false)] get; set; } public override int Joo { [Obsolete(""Derived.Joo is Obsolete"", true)] get; set; } public override int Koo { [Obsolete(""Derived.Koo is Obsolete"")] get; set; } } public class Program { public void Main() { var derived = new Derived(); _ = derived.Boo; _ = derived.Goo; _ = derived.Hoo; _ = derived.Joo; _ = derived.Koo; } } "; CreateCompilation(source).VerifyDiagnostics( // (14,31): warning CS0672: Member 'Derived.Boo.get' overrides obsolete member 'Base.Boo.get'. Add the Obsolete attribute to 'Derived.Boo.get'. // public override int Boo { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("Derived.Boo.get", "Base.Boo.get").WithLocation(14, 31), // (15,42): warning CS0809: Obsolete member 'Derived.Goo.get' overrides non-obsolete member 'Base.Goo.get' // public override int Goo { [Obsolete] get; set; } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("Derived.Goo.get", "Base.Goo.get").WithLocation(15, 42), // (18,25): warning CS0672: Member 'Derived.Koo' overrides obsolete member 'Base.Koo'. Add the Obsolete attribute to 'Derived.Koo'. // public override int Koo { [Obsolete("Derived.Koo is Obsolete")] get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "Koo").WithArguments("Derived.Koo", "Base.Koo").WithLocation(18, 25), // (18,69): warning CS0809: Obsolete member 'Derived.Koo.get' overrides non-obsolete member 'Base.Koo.get' // public override int Koo { [Obsolete("Derived.Koo is Obsolete")] get; set; } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("Derived.Koo.get", "Base.Koo.get").WithLocation(18, 69), // (26,7): warning CS0612: 'Base.Boo.get' is obsolete // _ = derived.Boo; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "derived.Boo").WithArguments("Base.Boo.get").WithLocation(26, 7), // (28,13): error CS0619: 'Base.Hoo.get' is obsolete: 'Base.Hoo is Obsolete' // _ = derived.Hoo; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "derived.Hoo").WithArguments("Base.Hoo.get", "Base.Hoo is Obsolete").WithLocation(28, 13), // (29,13): warning CS0618: 'Base.Joo.get' is obsolete: 'Base.Joo is Obsolete' // _ = derived.Joo; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "derived.Joo").WithArguments("Base.Joo.get", "Base.Joo is Obsolete").WithLocation(29, 13), // (30,13): warning CS0618: 'Base.Koo' is obsolete: 'Base.Koo is Obsolete' // _ = derived.Koo; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "derived.Koo").WithArguments("Base.Koo", "Base.Koo is Obsolete").WithLocation(30, 13)); } [Fact] public void TestObsoleteAttributeCycles() { var source = @" using System; public class Test { [Obsolete(""F1 is obsolete"")] [SomeAttr(F1)] public const int F1 = 10; [Obsolete(""F2 is obsolete"", true)] [SomeAttr(F3)] public const int F2 = 10; [Obsolete(""F3 is obsolete"")] [SomeAttr(F2)] public const int F3 = 10; [Obsolete(F4, true)] public const string F4 = ""blah""; [Obsolete(F5)] public string F5 = ""blah""; [Obsolete(P1, true)] public string P1 { get { return ""blah""; } } [Obsolete] [SomeAttr(P2, true)] public string P2 { get { return ""blah""; } } [Obsolete(Method1)] public void Method1() {} [Obsolete()] [SomeAttr1(Method2)] public void Method2() {} [Obsolete(F6)] [SomeAttr(F6)] [SomeAttr(F7)] public const string F6 = ""F6 is obsolete""; [Obsolete(F7, true)] [SomeAttr(F6)] [SomeAttr(F7)] public const string F7 = ""F7 is obsolete""; } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class SomeAttr: Attribute { public SomeAttr(int x) {} public SomeAttr(string x) {} } public class SomeAttr1: Attribute { public SomeAttr1(Action x) {} } "; CreateCompilation(source).VerifyDiagnostics( // (7,15): warning CS0618: 'Test.F1' is obsolete: 'F1 is obsolete' // [SomeAttr(F1)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F1").WithArguments("Test.F1", "F1 is obsolete").WithLocation(7, 15), // (15,15): error CS0619: 'Test.F2' is obsolete: 'F2 is obsolete' // [SomeAttr(F2)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F2").WithArguments("Test.F2", "F2 is obsolete").WithLocation(15, 15), // (11,15): warning CS0618: 'Test.F3' is obsolete: 'F3 is obsolete' // [SomeAttr(F3)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F3").WithArguments("Test.F3", "F3 is obsolete").WithLocation(11, 15), // (18,15): error CS0619: 'Test.F4' is obsolete: 'blah' // [Obsolete(F4, true)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F4").WithArguments("Test.F4", "blah").WithLocation(18, 15), // (21,15): error CS0120: An object reference is required for the non-static field, method, or property 'Test.F5' // [Obsolete(F5)] Diagnostic(ErrorCode.ERR_ObjectRequired, "F5").WithArguments("Test.F5").WithLocation(21, 15), // (24,15): error CS0120: An object reference is required for the non-static field, method, or property 'Test.P1' // [Obsolete(P1, true)] Diagnostic(ErrorCode.ERR_ObjectRequired, "P1").WithArguments("Test.P1").WithLocation(24, 15), // (28,15): warning CS0612: 'Test.P2' is obsolete // [SomeAttr(P2, true)] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "P2").WithArguments("Test.P2").WithLocation(28, 15), // (28,15): error CS0120: An object reference is required for the non-static field, method, or property 'Test.P2' // [SomeAttr(P2, true)] Diagnostic(ErrorCode.ERR_ObjectRequired, "P2").WithArguments("Test.P2").WithLocation(28, 15), // (28,6): error CS1729: 'SomeAttr' does not contain a constructor that takes 2 arguments // [SomeAttr(P2, true)] Diagnostic(ErrorCode.ERR_BadCtorArgCount, "SomeAttr(P2, true)").WithArguments("SomeAttr", "2").WithLocation(28, 6), // (31,15): error CS1503: Argument 1: cannot convert from 'method group' to 'string' // [Obsolete(Method1)] Diagnostic(ErrorCode.ERR_BadArgType, "Method1").WithArguments("1", "method group", "string").WithLocation(31, 15), // (35,16): warning CS0612: 'Test.Method2()' is obsolete // [SomeAttr1(Method2)] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Method2").WithArguments("Test.Method2()").WithLocation(35, 16), // (35,6): error CS0181: Attribute constructor parameter 'x' has type 'Action', which is not a valid attribute parameter type // [SomeAttr1(Method2)] Diagnostic(ErrorCode.ERR_BadAttributeParamType, "SomeAttr1").WithArguments("x", "System.Action").WithLocation(35, 6), // (43,15): error CS0619: 'Test.F7' is obsolete: 'F7 is obsolete' // [Obsolete(F7, true)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(43, 15), // (44,15): warning CS0618: 'Test.F6' is obsolete: 'F6 is obsolete' // [SomeAttr(F6)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(44, 15), // (45,15): error CS0619: 'Test.F7' is obsolete: 'F7 is obsolete' // [SomeAttr(F7)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(45, 15), // (38,15): warning CS0618: 'Test.F6' is obsolete: 'F6 is obsolete' // [Obsolete(F6)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(38, 15), // (39,15): warning CS0618: 'Test.F6' is obsolete: 'F6 is obsolete' // [SomeAttr(F6)] Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(39, 15), // (40,15): error CS0619: 'Test.F7' is obsolete: 'F7 is obsolete' // [SomeAttr(F7)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(40, 15)); } [WorkItem(546064, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546064")] [Fact] public void TestObsoleteAttributeCycles_02() { var source = @" [Goo] class Goo: Base {} [Goo] class Base: System.Attribute { public class Nested: Goo {} } "; CompileAndVerify(source); source = @" using System; [Obsolete] public class SomeType { public static SomeType Instance; public const string Message = ""goo""; } public class SomeAttr : Attribute { public SomeAttr(string message) {} } [Obsolete(SomeType.Message)] public class Derived : Base { } public class Base { [Obsolete(SomeType.Message)] public SomeType SomeProp { get; set; } } "; CreateCompilation(source, null, TestOptions.ReleaseDll.WithConcurrentBuild(false)).VerifyDiagnostics( // (23,15): warning CS0612: 'SomeType' is obsolete // [Obsolete(SomeType.Message)] Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "SomeType").WithArguments("SomeType")); } [Fact] public void TestObsoleteAttributeSuppress() { var source = @" using System; [Obsolete] public class SomeType { public static SomeType Instance; public const string Message = ""goo""; } public class Test { [Obsolete] SomeType someField = SomeType.Instance; [Obsolete] Func<SomeType> someFuncField = () => new SomeType(); [Obsolete] event Action<SomeType> someEvent; [Obsolete] public static SomeType someProp { get => new SomeType(); set {} } public static string someProp2 { [Obsolete] get => new SomeType().ToString(); } public static SomeType someProp3 { [Obsolete] get => new SomeType(); } [Obsolete] SomeType this[int x] { get { SomeType y = new SomeType(); return y; } } [Obsolete] SomeType goo(SomeType x) { SomeType y = new SomeType(); return x; } [Obsolete] Test(SomeType x) { SomeType y = new SomeType(); } } [Obsolete] public class Base<T> {} [Obsolete] public class Derived : Base<Base<int>> {} "; CreateCompilation(source).VerifyDiagnostics( // (27,19): warning CS0612: 'SomeType' is obsolete // public static SomeType someProp3 { [Obsolete] get => new SomeType(); } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "SomeType").WithArguments("SomeType").WithLocation(27, 19), // (20,28): warning CS0067: The event 'Test.someEvent' is never used // event Action<SomeType> someEvent; Diagnostic(ErrorCode.WRN_UnreferencedEvent, "someEvent").WithArguments("Test.someEvent").WithLocation(20, 28)); } [Fact] public void TestNestedTypeMember() { var source = @" using System; using System.Diagnostics; [Conditional(Nested.ConstStr)] [Outer] // this attribute should not be emitted class Outer: Attribute { class Nested { public const string ConstStr = ""str""; } } "; CreateCompilation(source).VerifyDiagnostics(); } [Fact] public void TestObsoleteAttributeP2PReference() { string s = @" using System; [Obsolete] public class C { [Obsolete] public void Goo() {} } "; var other = CreateCompilation(s); s = @" public class A { protected A(C o) { o.Goo(); } } "; CreateCompilation(s, new[] { new CSharpCompilationReference(other) }).VerifyDiagnostics( // (3,17): warning CS0612: 'C' is obsolete // protected A(C o) Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "C").WithArguments("C"), // (5,9): warning CS0612: 'C.Goo()' is obsolete // o.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "o.Goo()").WithArguments("C.Goo()")); } [Fact] [WorkItem(546455, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546455"), WorkItem(546456, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546456"), WorkItem(546457, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546457")] public void TestObsoleteAttributeOnCollectionInitializer() { var source = @" using System; using System.Collections; class Test { public static void Main() { B coll = new B { 1, new B(), ""a"", false }; } } public class B : IEnumerable { [Obsolete()] public void Add(long i) { } [Obsolete(""Don't use this overload"")] public void Add(B i) { } [Obsolete(""Don't use this overload"", true)] public void Add(string s) { } [Obsolete(null, true)] public void Add(bool s) { } IEnumerator IEnumerable.GetEnumerator() { return null; } } "; CreateCompilation(source).VerifyDiagnostics( // (9,26): warning CS1064: The best overloaded Add method 'B.Add(long)' for the collection initializer element is obsolete. // B coll = new B { 1, new B(), "a", false }; Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "1").WithArguments("B.Add(long)"), // (9,29): warning CS1062: The best overloaded Add method 'B.Add(B)' for the collection initializer element is obsolete. Don't use this overload // B coll = new B { 1, new B(), "a", false }; Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAddStr, "new B()").WithArguments("B.Add(B)", "Don't use this overload"), // (9,38): error CS1063: The best overloaded Add method 'B.Add(string)' for the collection initializer element is obsolete. Don't use this overload // B coll = new B { 1, new B(), "a", false }; Diagnostic(ErrorCode.ERR_DeprecatedCollectionInitAddStr, @"""a""").WithArguments("B.Add(string)", "Don't use this overload"), // (9,43): warning CS1064: The best overloaded Add method 'B.Add(bool)' for the collection initializer element is obsolete. // B coll = new B { 1, new B(), "a", false }; Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "false").WithArguments("B.Add(bool)")); } [Fact] [WorkItem(546636, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546636")] public void TestObsoleteAttributeOnAttributes() { var source = @" using System; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class Att : Attribute { [Obsolete(""Constructor"", true)] public Att() { } [Obsolete(""Property"", true)] public int Prop { get { return 1; } set { } } [Obsolete(""Property"", true)] public int Prop2 { get; set; } public int Prop3 { get; [Obsolete(""setter"", true)]set; } [Obsolete(""Property"", true)] public int Prop4 { get; [Obsolete(""setter"", true)]set; } public int Prop5 { [Obsolete(""setter"", true)]get; set; } [Obsolete(""Field"", true)] public int Field; } [Att] [Att(Field = 1)] [Att(Prop = 1)] [Att(Prop2 = 1)] [Att(Prop3 = 1)] [Att(Prop4 = 1)] [Att(Prop5 = 1)] public class Test { [Att()] public static void Main() { } } "; CreateCompilation(source).VerifyDiagnostics( // (37,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att").WithArguments("Att.Att()", "Constructor").WithLocation(37, 2), // (38,6): error CS0619: 'Att.Field' is obsolete: 'Field' // [Att(Field = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Field = 1").WithArguments("Att.Field", "Field").WithLocation(38, 6), // (38,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Field = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Field = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(38, 2), // (39,6): error CS0619: 'Att.Prop' is obsolete: 'Property' // [Att(Prop = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop = 1").WithArguments("Att.Prop", "Property").WithLocation(39, 6), // (39,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(39, 2), // (40,6): error CS0619: 'Att.Prop2' is obsolete: 'Property' // [Att(Prop2 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop2 = 1").WithArguments("Att.Prop2", "Property").WithLocation(40, 6), // (40,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop2 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop2 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(40, 2), // (41,6): error CS0619: 'Att.Prop3.set' is obsolete: 'setter' // [Att(Prop3 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop3 = 1").WithArguments("Att.Prop3.set", "setter").WithLocation(41, 6), // (41,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop3 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop3 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(41, 2), // (42,6): error CS0619: 'Att.Prop4' is obsolete: 'Property' // [Att(Prop4 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop4 = 1").WithArguments("Att.Prop4", "Property").WithLocation(42, 6), // (42,6): error CS0619: 'Att.Prop4.set' is obsolete: 'setter' // [Att(Prop4 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop4 = 1").WithArguments("Att.Prop4.set", "setter").WithLocation(42, 6), // (42,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop4 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop4 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(42, 2), // (43,2): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att(Prop5 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop5 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(43, 2), // (46,6): error CS0619: 'Att.Att()' is obsolete: 'Constructor' // [Att()] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att()").WithArguments("Att.Att()", "Constructor").WithLocation(46, 6)); } [Fact] public void TestOverriddenObsoleteSetterOnAttributes() { var source = @" using System; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class BaseAtt : Attribute { public virtual int Prop { get { return 1; } [Obsolete(""setter"", true)] set { } } public virtual int Prop1 { get { return 1; } [Obsolete(""setter"", true)] set { } } public virtual int Prop2 { get { return 1; } [Obsolete(""base setter"", true)] set { } } public virtual int Prop3 { get { return 1; } set { } } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class DerivedAtt : BaseAtt { public override int Prop { get { return 1; } } public override int Prop1 { get { return 1; } set { } } public override int Prop2 { get { return 1; } [Obsolete(""derived setter"", true)] set { } } public override int Prop3 { get { return 1; } [Obsolete(""setter"", true)] set { } } } [DerivedAtt(Prop = 1)] [DerivedAtt(Prop1 = 1)] [DerivedAtt(Prop2 = 1)] [DerivedAtt(Prop3 = 1)] public class Test { public static void Main() { } } "; CreateCompilation(source).VerifyDiagnostics( // (43,9): warning CS0672: Member 'DerivedAtt.Prop1.set' overrides obsolete member 'BaseAtt.Prop1.set'. Add the Obsolete attribute to 'DerivedAtt.Prop1.set'. // set { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "set").WithArguments("DerivedAtt.Prop1.set", "BaseAtt.Prop1.set").WithLocation(43, 9), // (55,36): warning CS0809: Obsolete member 'DerivedAtt.Prop3.set' overrides non-obsolete member 'BaseAtt.Prop3.set' // [Obsolete("setter", true)] set { } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "set").WithArguments("DerivedAtt.Prop3.set", "BaseAtt.Prop3.set").WithLocation(55, 36), // (59,13): error CS0619: 'BaseAtt.Prop.set' is obsolete: 'setter' // [DerivedAtt(Prop = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop = 1").WithArguments("BaseAtt.Prop.set", "setter").WithLocation(59, 13), // (60,13): error CS0619: 'BaseAtt.Prop1.set' is obsolete: 'setter' // [DerivedAtt(Prop1 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop1 = 1").WithArguments("BaseAtt.Prop1.set", "setter").WithLocation(60, 13), // (61,13): error CS0619: 'BaseAtt.Prop2.set' is obsolete: 'base setter' // [DerivedAtt(Prop2 = 1)] Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop2 = 1").WithArguments("BaseAtt.Prop2.set", "base setter").WithLocation(61, 13)); } [Fact] public void TestObsoleteAttributeOnIndexerAccessors() { var source = @" using System; class C1 { public int this[int index] { [Obsolete] get => 1; set {} } } class C2 { public int this[int index] { get => 1; [Obsolete] set {} } } public class Program { public void Main() { var c1 = new C1(); c1[0] = c1[0]; var c2 = new C2(); c2[0] = c2[0]; } } "; CreateCompilation(source).VerifyDiagnostics( // (19,17): warning CS0612: 'C1.this[int].get' is obsolete // c1[0] = c1[0]; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c1[0]").WithArguments("C1.this[int].get").WithLocation(19, 17), // (21,9): warning CS0612: 'C2.this[int].set' is obsolete // c2[0] = c2[0]; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c2[0]").WithArguments("C2.this[int].set").WithLocation(21, 9)); } [Fact] public void TestObsoleteAttributeOnMembers2() { var source = @" using System; namespace A.B { [Obsolete] public class C { [Obsolete] public static int Field1 = 10; [Obsolete] public class D { [Obsolete] public static int Field2 = 20; } } [Obsolete] public class C1 { public class D { } } [Obsolete] public class C2<T> { [Obsolete] public static int Field1 = 10; public class D { } [Obsolete] public class E<U> { } } } class B<T> { } class D : B<A.B.C1.D> { } class D1 : B<A.B.C2<int>.D> { } class Program { static void Main(string[] args) { var x = A.B.C.Field1; var x1 = A.B.C.D.Field2; var y = new A.B.C1.D(); var y1 = new A.B.C2<int>.D(); var y2 = A.B.C2<int>.Field1; var y3 = new A.B.C2<int>.E<int>(); } } "; CreateCompilation(source).VerifyDiagnostics( // (42,13): warning CS0612: 'A.B.C1' is obsolete // class D : B<A.B.C1.D> { } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C1").WithArguments("A.B.C1"), // (43,14): warning CS0612: 'A.B.C2<int>' is obsolete // class D1 : B<A.B.C2<int>.D> { } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>").WithArguments("A.B.C2<int>"), // (49,17): warning CS0612: 'A.B.C' is obsolete // var x = A.B.C.Field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C").WithArguments("A.B.C"), // (49,17): warning CS0612: 'A.B.C.Field1' is obsolete // var x = A.B.C.Field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C.Field1").WithArguments("A.B.C.Field1"), // (50,18): warning CS0612: 'A.B.C' is obsolete // var x1 = A.B.C.D.Field2; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C").WithArguments("A.B.C"), // (50,18): warning CS0612: 'A.B.C.D' is obsolete // var x1 = A.B.C.D.Field2; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C.D").WithArguments("A.B.C.D"), // (50,18): warning CS0612: 'A.B.C.D.Field2' is obsolete // var x1 = A.B.C.D.Field2; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C.D.Field2").WithArguments("A.B.C.D.Field2"), // (51,21): warning CS0612: 'A.B.C1' is obsolete // var y = new A.B.C1.D(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C1").WithArguments("A.B.C1"), // (52,22): warning CS0612: 'A.B.C2<int>' is obsolete // var y1 = new A.B.C2<int>.D(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>").WithArguments("A.B.C2<int>"), // (53,18): warning CS0612: 'A.B.C2<int>' is obsolete // var y2 = A.B.C2<int>.Field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>").WithArguments("A.B.C2<int>"), // (53,18): warning CS0612: 'A.B.C2<int>.Field1' is obsolete // var y2 = A.B.C2<int>.Field1; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>.Field1").WithArguments("A.B.C2<int>.Field1"), // (54,22): warning CS0612: 'A.B.C2<int>' is obsolete // var y3 = new A.B.C2<int>.E<int>(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>").WithArguments("A.B.C2<int>"), // (54,22): warning CS0612: 'A.B.C2<int>.E<int>' is obsolete // var y3 = new A.B.C2<int>.E<int>(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A.B.C2<int>.E<int>").WithArguments("A.B.C2<int>.E<int>")); } [Fact] [WorkItem(546766, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546766")] public void TestObsoleteAttributeOnMembers3() { var source = @" using System; class C { [Obsolete(""Do not use"", true)] public C() { } } class D : C { public D() { } } class E : C { public E() : base() { } } class Event1 { [Obsolete(""Do not use"")] public event Action A; [field:Obsolete(""Do not use"")] public event Action A1; public void Test() { A(); A1(); A += () => {}; A1 += () => {}; } public static void Test1() { var e = new Event1(); e.A(); e.A1(); e.A += () => {}; e.A1 += () => {}; } } "; CreateCompilation(source).VerifyDiagnostics( // (11,5): error CS0619: 'C.C()' is obsolete: 'Do not use' // public D() { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "public D() { }").WithArguments("C.C()", "Do not use"), // (15,16): error CS0619: 'C.C()' is obsolete: 'Do not use' // public E() : base() { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, ": base()").WithArguments("C.C()", "Do not use"), // (29,9): warning CS0618: 'Event1.A1' is obsolete: 'Do not use' // A1(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "A1").WithArguments("Event1.A1", "Do not use"), // (30,9): warning CS0618: 'Event1.A' is obsolete: 'Do not use' // A += () => {}; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "A").WithArguments("Event1.A", "Do not use"), // (38,9): warning CS0618: 'Event1.A1' is obsolete: 'Do not use' // e.A1(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "e.A1").WithArguments("Event1.A1", "Do not use"), // (39,9): warning CS0618: 'Event1.A' is obsolete: 'Do not use' // e.A += () => {}; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "e.A").WithArguments("Event1.A", "Do not use")); } [Fact] [WorkItem(547024, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/547024")] public void TestObsoleteForeachMembers() { var source = @"using System; public class MyEnumerator : IDisposable { [Obsolete(""1"", false)] public bool MoveNext() { return false; } [Obsolete(""2"", false)] public int Current { get { return 0; } } [Obsolete(""3"", false)] public void Dispose() { } } class Foreachable { [Obsolete(""4"", false)] public MyEnumerator GetEnumerator() { return new MyEnumerator(); } } class Program { public static void Main(string[] args) { foreach (var x in new Foreachable()) { } } }"; CreateCompilation(source).VerifyDiagnostics( // (35,9): warning CS0618: 'Foreachable.GetEnumerator()' is obsolete: '4' // foreach (var x in new Foreachable()) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "foreach").WithArguments("Foreachable.GetEnumerator()", "4"), // (35,9): warning CS0618: 'MyEnumerator.MoveNext()' is obsolete: '1' // foreach (var x in new Foreachable()) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "foreach").WithArguments("MyEnumerator.MoveNext()", "1"), // (35,9): warning CS0618: 'MyEnumerator.Current' is obsolete: '2' // foreach (var x in new Foreachable()) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "foreach").WithArguments("MyEnumerator.Current", "2") ); } [Fact] public void TestObsoleteAttributeSuppress2() { var source = @" using System; using X = A; using Y = A.B; [Obsolete(""Do not use"")] class A { public class B { } } [Obsolete] interface I1 { void M(); } #pragma warning disable 612 internal sealed class C1 : I1 #pragma warning restore 612 { void I1.M() {} } "; CreateCompilation(source).VerifyDiagnostics( // (4,1): info CS8019: Unnecessary using directive. // using X = A; Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = A;"), // (5,1): info CS8019: Unnecessary using directive. // using Y = A.B; Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = A.B;")); } [Fact] public void TestObsoleteAndPropertyAccessors() { var source0 = @"using System; namespace Windows.Foundation.Metadata { public sealed class DeprecatedAttribute : Attribute { public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version) { } } public enum DeprecationType { Deprecate = 0, Remove = 1 } }"; var source1 = @"using Windows.Foundation.Metadata; [Deprecated(null, DeprecationType.Deprecate, 0)] class A { } [Deprecated(null, DeprecationType.Deprecate, 0)] class B { } [Deprecated(null, DeprecationType.Deprecate, 0)] class C { } class D { object P { get { return new A(); } } [Deprecated(null, DeprecationType.Deprecate, 0)] object Q { get { return new B(); } } object R { [Deprecated(null, DeprecationType.Deprecate, 0)] get { return new C(); } } }"; var comp = CreateCompilation(new[] { Parse(source0), Parse(source1) }); comp.VerifyDiagnostics( // (7,33): warning CS0612: 'A' is obsolete // object P { get { return new A(); } } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("A").WithLocation(7, 33)); } [Fact] public void TestObsoleteAndEventAccessors() { var source0 = @"using System; namespace Windows.Foundation.Metadata { public sealed class DeprecatedAttribute : Attribute { public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version) { } } public enum DeprecationType { Deprecate = 0, Remove = 1 } }"; var source1 = @"using System; using Windows.Foundation.Metadata; [Deprecated(null, DeprecationType.Deprecate, 0)] class A { } [Deprecated(null, DeprecationType.Deprecate, 0)] class B { } [Deprecated(null, DeprecationType.Deprecate, 0)] class C { } class D { event EventHandler E { add { } remove { M(new A()); } } [Deprecated(null, DeprecationType.Deprecate, 0)] event EventHandler F { add { } remove { M(new B()); } } event EventHandler G { add { } [Deprecated(null, DeprecationType.Deprecate, 0)] remove { M(new C()); } } static void M(object o) { } }"; var comp = CreateCompilation(new[] { Parse(source0), Parse(source1) }); comp.VerifyDiagnostics( // (11,24): warning CS0612: 'A' is obsolete // remove { M(new A()); } Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("A").WithLocation(11, 24), // (21,10): error CS8423: Attribute 'Windows.Foundation.Metadata.DeprecatedAttribute' is not valid on event accessors. It is only valid on 'assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations. // [Deprecated(null, DeprecationType.Deprecate, 0)] remove { M(new C()); } Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter").WithLocation(21, 10)); } [Fact] [WorkItem(531071, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531071")] public void TestObsoleteTypeParameterInAlias() { var source = @"using System; public class List<T> { } namespace N { using X = A; using Y = List<A>; using Z = List<A[]>; [Obsolete(""Do not use"", true)] public class A { } public class B : X { } public class C : Y { } public class E : Z { } public class D : List<Y> { public X x; public Y y1; public List<Y> y2; public Z z; } }"; CreateCompilation(source).VerifyDiagnostics( // (12,22): error CS0619: 'A' is obsolete: 'Do not use' // public class E : Z { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Z").WithArguments("N.A", "Do not use").WithLocation(12, 22), // (13,27): error CS0619: 'A' is obsolete: 'Do not use' // public class D : List<Y> Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").WithLocation(13, 27), // (10,22): error CS0619: 'A' is obsolete: 'Do not use' // public class B : X { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "X").WithArguments("N.A", "Do not use").WithLocation(10, 22), // (11,22): error CS0619: 'A' is obsolete: 'Do not use' // public class C : Y { } Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").WithLocation(11, 22), // (16,16): error CS0619: 'A' is obsolete: 'Do not use' // public Y y1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").WithLocation(16, 16), // (17,21): error CS0619: 'A' is obsolete: 'Do not use' // public List<Y> y2; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").WithLocation(17, 21), // (18,16): error CS0619: 'A' is obsolete: 'Do not use' // public Z z; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Z").WithArguments("N.A", "Do not use").WithLocation(18, 16), // (15,16): error CS0619: 'A' is obsolete: 'Do not use' // public X x; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "X").WithArguments("N.A", "Do not use").WithLocation(15, 16)); } [ConditionalFact(typeof(IsEnglishLocal), Reason = "https://github.com/dotnet/roslyn/issues/28328")] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnBase() { var source = @" using System; public class A { [Obsolete] public virtual event Action E { add { } remove { } } [Obsolete] public virtual int P { get; set; } [Obsolete] public virtual void M() { } } public class B : A { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } } class Test { void M(A a, B b, C c) { a.E += null; a.P++; a.M(); b.E += null; b.P++; b.M(); c.E += null; c.P++; c.M(); } } "; // All member accesses produce obsolete warnings. CreateCompilation(source).VerifyDiagnostics( // (17,25): warning CS0672: Member 'B.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'B.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("B.P", "A.P"), // (18,26): warning CS0672: Member 'B.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'B.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M()", "A.M()"), // (16,34): warning CS0672: Member 'B.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'B.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("B.E", "A.E"), // (24,25): warning CS0672: Member 'C.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'C.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("C.P", "A.P"), // (25,26): warning CS0672: Member 'C.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'C.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("C.M()", "A.M()"), // (23,34): warning CS0672: Member 'C.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'C.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("C.E", "A.E"), // (32,9): warning CS0612: 'A.E' is obsolete // a.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "a.E").WithArguments("A.E"), // (33,9): warning CS0612: 'A.P' is obsolete // a.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "a.P").WithArguments("A.P"), // (34,9): warning CS0612: 'A.M()' is obsolete // a.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "a.M()").WithArguments("A.M()"), // (36,9): warning CS0612: 'A.E' is obsolete // b.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.E").WithArguments("A.E"), // (37,9): warning CS0612: 'A.P' is obsolete // b.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.P").WithArguments("A.P"), // (38,9): warning CS0612: 'A.M()' is obsolete // b.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.M()").WithArguments("A.M()"), // (40,9): warning CS0612: 'A.E' is obsolete // c.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c.E").WithArguments("A.E"), // (41,9): warning CS0612: 'A.P' is obsolete // c.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c.P").WithArguments("A.P"), // (42,9): warning CS0612: 'A.M()' is obsolete // c.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c.M()").WithArguments("A.M()")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnDerived() { var source = @" using System; public class A { public virtual event Action E { add { } remove { } } public virtual int P { get; set; } public virtual void M() { } } public class B : A { [Obsolete] public override event Action E { add { } remove { } } [Obsolete] public override int P { get; set; } [Obsolete] public override void M() { } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } } class Test { void M(A a, B b, C c) { a.E += null; a.P++; a.M(); b.E += null; b.P++; b.M(); c.E += null; c.P++; c.M(); } } "; // No member accesses produce obsolete warnings. CreateCompilation(source).VerifyDiagnostics( // (16,25): warning CS0809: Obsolete member 'B.P' overrides non-obsolete member 'A.P' // public override int P { get; set; } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "P").WithArguments("B.P", "A.P"), // (18,26): warning CS0809: Obsolete member 'B.M()' overrides non-obsolete member 'A.M()' // public override void M() { } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "M").WithArguments("B.M()", "A.M()"), // (14,34): warning CS0809: Obsolete member 'B.E' overrides non-obsolete member 'A.E' // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "E").WithArguments("B.E", "A.E")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_GenericType() { var source = @" using System; public class A<T> { [Obsolete] public virtual void M() { } } public class B : A<int> { public override void M() { } } public class C<T> : A<T> { public override void M() { } } class Test { void M(A<int> a, B b, C<char> c) { a.M(); b.M(); c.M(); } } "; // All member accesses produce obsolete warnings. CreateCompilation(source).VerifyDiagnostics( // (17,26): warning CS0672: Member 'C<T>.M()' overrides obsolete member 'A<T>.M()'. Add the Obsolete attribute to 'C<T>.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("C<T>.M()", "A<T>.M()"), // (12,26): warning CS0672: Member 'B.M()' overrides obsolete member 'A<int>.M()'. Add the Obsolete attribute to 'B.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M()", "A<int>.M()"), // (24,9): warning CS0612: 'A<int>.M()' is obsolete // a.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "a.M()").WithArguments("A<int>.M()"), // (25,9): warning CS0612: 'A<int>.M()' is obsolete // b.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.M()").WithArguments("A<int>.M()"), // (26,9): warning CS0612: 'A<char>.M()' is obsolete // c.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c.M()").WithArguments("A<char>.M()")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_GenericMethod() { var source = @" using System; public class A { [Obsolete] public virtual void M<T>() { } } public class B : A { public override void M<T>() { } } class Test { void M(B b) { b.M<int>(); } } "; // All member accesses produce obsolete warnings. CreateCompilation(source).VerifyDiagnostics( // (12,26): warning CS0672: Member 'B.M<T>()' overrides obsolete member 'A.M<T>()'. Add the Obsolete attribute to 'B.M<T>()'. // public override void M<T>() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M<T>()", "A.M<T>()"), // (19,9): warning CS0612: 'A.M<T>()' is obsolete // b.M<int>(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "b.M<int>()").WithArguments("A.M<T>()")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnBase_BaseCall() { var source = @" using System; public class A { [Obsolete] public virtual event Action E { add { } remove { } } [Obsolete] public virtual int P { get; set; } [Obsolete] public virtual void M() { } } public class B : A { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } "; // Reported in B.Test and C.Test against members of A. CreateCompilation(source).VerifyDiagnostics( // (17,25): warning CS0672: Member 'B.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'B.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("B.P", "A.P"), // (18,26): warning CS0672: Member 'B.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'B.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M()", "A.M()"), // (16,34): warning CS0672: Member 'B.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'B.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("B.E", "A.E"), // (31,25): warning CS0672: Member 'C.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'C.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("C.P", "A.P"), // (32,26): warning CS0672: Member 'C.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'C.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("C.M()", "A.M()"), // (30,34): warning CS0672: Member 'C.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'C.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("C.E", "A.E"), // (23,9): warning CS0612: 'A.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("A.P"), // (24,9): warning CS0612: 'A.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("A.M()"), // (22,9): warning CS0612: 'A.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("A.E"), // (37,9): warning CS0612: 'A.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("A.P"), // (38,9): warning CS0612: 'A.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("A.M()"), // (36,9): warning CS0612: 'A.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("A.E")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnBaseAndDerived_BaseCall() { var source = @" using System; public class A { [Obsolete] public virtual event Action E { add { } remove { } } [Obsolete] public virtual int P { get; set; } [Obsolete] public virtual void M() { } } public class B : A { [Obsolete] public override event Action E { add { } remove { } } [Obsolete] public override int P { get; set; } [Obsolete] public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } "; // Reported in B.Test and C.Test against members of A (seems like C.Test should report against members of B, // but this is dev11's behavior). CreateCompilation(source).VerifyDiagnostics( // (34,25): warning CS0672: Member 'C.P' overrides obsolete member 'A.P'. Add the Obsolete attribute to 'C.P'. // public override int P { get; set; } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "P").WithArguments("C.P", "A.P"), // (35,26): warning CS0672: Member 'C.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'C.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("C.M()", "A.M()"), // (33,34): warning CS0672: Member 'C.E' overrides obsolete member 'A.E'. Add the Obsolete attribute to 'C.E'. // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "E").WithArguments("C.E", "A.E"), // (26,9): warning CS0612: 'A.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("A.P"), // (27,9): warning CS0612: 'A.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("A.M()"), // (25,9): warning CS0612: 'A.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("A.E"), // (40,9): warning CS0612: 'A.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("A.P"), // (41,9): warning CS0612: 'A.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("A.M()"), // (39,9): warning CS0612: 'A.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("A.E")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnDerived_BaseCall() { var source = @" using System; public class A { public virtual event Action E { add { } remove { } } public virtual int P { get; set; } public virtual void M() { } } public class B : A { [Obsolete] public override event Action E { add { } remove { } } [Obsolete] public override int P { get; set; } [Obsolete] public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } public class C : B { public override event Action E { add { } remove { } } public override int P { get; set; } public override void M() { } private void Test() { base.E += null; base.P++; base.M(); } } "; CreateCompilation(source).VerifyDiagnostics( // (16,25): warning CS0809: Obsolete member 'B.P' overrides non-obsolete member 'A.P' // public override int P { get; set; } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "P").WithArguments("B.P", "A.P"), // (18,26): warning CS0809: Obsolete member 'B.M()' overrides non-obsolete member 'A.M()' // public override void M() { } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "M").WithArguments("B.M()", "A.M()"), // (14,34): warning CS0809: Obsolete member 'B.E' overrides non-obsolete member 'A.E' // public override event Action E { add { } remove { } } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "E").WithArguments("B.E", "A.E"), // (37,9): warning CS0612: 'B.P' is obsolete // base.P++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.P").WithArguments("B.P"), // (38,9): warning CS0612: 'B.M()' is obsolete // base.M(); Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.M()").WithArguments("B.M()"), // (36,9): warning CS0612: 'B.E' is obsolete // base.E += null; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base.E").WithArguments("B.E")); } [Fact] [WorkItem(580832, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/580832")] public void ObsoleteOnVirtual_OnDerived_BaseCall2() { var source = @" using System; public class A { public virtual int this[int x] { get { return 0; } set { } } } public class B : A { [Obsolete] public B() { } [Obsolete] public override int this[int x] { get { return 0; } set { } } } public class C : B { public C() { } // Implicit base constructor invocation. public C(int x) : base() { } // Doesn't override anything anyway. private void Test() { base[1]++; } } "; CreateCompilation(source).VerifyDiagnostics( // (15,25): warning CS0809: Obsolete member 'B.this[int]' overrides non-obsolete member 'A.this[int]' // public override int this[int x] { get { return 0; } set { } } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "this").WithArguments("B.this[int]", "A.this[int]"), // (20,5): warning CS0612: 'B.B()' is obsolete // public C() { } // Implicit base constructor invocation. Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "public C() { }").WithArguments("B.B()"), // (21,21): warning CS0612: 'B.B()' is obsolete // public C(int x) : base() { } // Doesn't override anything anyway. Diagnostic(ErrorCode.WRN_DeprecatedSymbol, ": base()").WithArguments("B.B()"), // (25,9): warning CS0612: 'B.this[int]' is obsolete // base[1]++; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "base[1]").WithArguments("B.this[int]")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion1() { var source = @" using System; class A { } class B { [Obsolete(""B to A"")] public static explicit operator B(A a) { return null; } [Obsolete(""A to B"")] public static implicit operator A(B b) { return null; } } class Test { static void Main() { A a = new A(); B b = (B)a; a = b; a = (A)(B)(A)b; } } "; CreateCompilation(source).VerifyDiagnostics( // (29,15): warning CS0618: 'B.explicit operator B(A)' is obsolete: 'B to A' // B b = (B)a; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "(B)a").WithArguments("B.explicit operator B(A)", "B to A"), // (30,13): warning CS0618: 'B.implicit operator A(B)' is obsolete: 'A to B' // a = b; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "b").WithArguments("B.implicit operator A(B)", "A to B"), // (31,19): warning CS0618: 'B.implicit operator A(B)' is obsolete: 'A to B' // a = (A)(B)(A)b; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "(A)b").WithArguments("B.implicit operator A(B)", "A to B"), // (31,16): warning CS0618: 'B.explicit operator B(A)' is obsolete: 'B to A' // a = (A)(B)(A)b; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "(B)(A)b").WithArguments("B.explicit operator B(A)", "B to A"), // (31,13): warning CS0618: 'B.implicit operator A(B)' is obsolete: 'A to B' // a = (A)(B)(A)b; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "(A)(B)(A)b").WithArguments("B.implicit operator A(B)", "A to B")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion2() { var source = @" using System; class A<T> { [Obsolete(""A<T> to T"")] public static implicit operator T(A<T> a) { return default(T); } [Obsolete(""T to A<T>"")] public static implicit operator A<T>(T t) { return null; } } class Test { static void Main() { A<int> ai = new A<int>(); int i = ai; ai = i; // These casts don't use the UDCs (at compile time). A<dynamic> ad = new A<dynamic>(); dynamic d = ad; ad = d; } } "; CreateCompilation(source).VerifyDiagnostics( // (25,17): warning CS0618: 'A<int>.implicit operator int(A<int>)' is obsolete: 'A<T> to T' // int i = ai; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "ai").WithArguments("A<int>.implicit operator int(A<int>)", "A<T> to T"), // (26,14): warning CS0618: 'A<int>.implicit operator A<int>(int)' is obsolete: 'T to A<T>' // ai = i; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "i").WithArguments("A<int>.implicit operator A<int>(int)", "T to A<T>")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion3() { var source = @" using System; class Convertible { [Obsolete(""To int"")] public static implicit operator int(Convertible c) { return 0; } [Obsolete(""To bool"")] public static implicit operator bool(Convertible c) { return false; } } class Test { static void Main() { Convertible c = new Convertible(); if (c) { switch (c) { case 0: int x = c + 1; x = +c; break; } } } } "; CreateCompilation(source).VerifyDiagnostics( // (25,13): warning CS0618: 'Convertible.implicit operator bool(Convertible)' is obsolete: 'To bool' // if (c) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator bool(Convertible)", "To bool"), // (27,21): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // switch (c) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"), // (30,29): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // int x = c + 1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"), // (31,26): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // x = +c; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion4() { var source = @" using System; class Convertible { [Obsolete(""To int"")] public static implicit operator int(Convertible c) { return 0; } } class Test { static void Main(string[] args) { Convertible c = new Convertible(); args[c].ToString(); } } "; CreateCompilation(source).VerifyDiagnostics( // (19,14): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // args[c].ToString(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion5() { var source = @" using System; class Convertible { [Obsolete(""To int"")] public static implicit operator int(Convertible c) { return 0; } [Obsolete(""From int"")] public static implicit operator Convertible(int i) { return null; } } class Test { static void Main(string[] args) { foreach (int i in new Convertible[1]) { Convertible c = new Convertible(); c++; c -= 2; } } } "; CreateCompilation(source).VerifyDiagnostics( // (26,13): warning CS0618: 'Convertible.implicit operator Convertible(int)' is obsolete: 'From int' // c++; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c++").WithArguments("Convertible.implicit operator Convertible(int)", "From int"), // (26,13): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // c++; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c++").WithArguments("Convertible.implicit operator int(Convertible)", "To int"), // (27,13): warning CS0618: 'Convertible.implicit operator Convertible(int)' is obsolete: 'From int' // c -= 2; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c -= 2").WithArguments("Convertible.implicit operator Convertible(int)", "From int"), // (27,13): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // c -= 2; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c -= 2").WithArguments("Convertible.implicit operator int(Convertible)", "To int"), // (23,9): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // foreach (int i in new Convertible[1]) Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "foreach").WithArguments("Convertible.implicit operator int(Convertible)", "To int")); } [Fact] [WorkItem(531148, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531148")] public void ObsoleteUserDefinedConversion6() { var source = @" using System; struct Convertible { [Obsolete(""To int"")] public static implicit operator int(Convertible c) { return 0; } } class Test { static void Main(string[] args) { Convertible? c = null; int i = c ?? 1; } } "; CreateCompilation(source).VerifyDiagnostics( // (18,17): warning CS0618: 'Convertible.implicit operator int(Convertible)' is obsolete: 'To int' // int i = c ?? 1; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c ?? 1").WithArguments("Convertible.implicit operator int(Convertible)", "To int")); } private const string ObsoleteAttributeSource = @" #nullable enable namespace System { public class ObsoleteAttribute : Attribute { public ObsoleteAttribute() { } public ObsoleteAttribute(string? message) { } public ObsoleteAttribute(string? message, bool error) { } public string? DiagnosticId { get; set; } public string? UrlFormat { get; set; } } } "; [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_01() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(DiagnosticId = ""TEST1"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("TEST1", diag.Id); Assert.Equal(ErrorCode.WRN_DeprecatedSymbol, (ErrorCode)diag.Code); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning TEST1: 'C.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C.M1()").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_02() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/CS0612", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning CS0612: 'C.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_03() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}/{1}"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning CS0612: 'C.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_04() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/CS0612"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/CS0612", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning CS0612: 'C.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadAttribute_01() { var source = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public string DiagnosticId; public string DiagnosticId { get; set; } // 1 } } class C { [Obsolete(DiagnosticId = ""TEST1"")] // 2 void M1() { } void M2() { M1(); } } "; var comp = CreateCompilation(source); var diags = comp.GetDiagnostics(); diags.Verify( // (10,23): error CS0102: The type 'ObsoleteAttribute' already contains a definition for 'DiagnosticId' // public string DiagnosticId { get; set; } // 1 Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "DiagnosticId").WithArguments("System.ObsoleteAttribute", "DiagnosticId").WithLocation(10, 23), // (16,15): error CS0229: Ambiguity between 'ObsoleteAttribute.DiagnosticId' and 'ObsoleteAttribute.DiagnosticId' // [Obsolete(DiagnosticId = "TEST1")] // 2 Diagnostic(ErrorCode.ERR_AmbigMember, "DiagnosticId").WithArguments("System.ObsoleteAttribute.DiagnosticId", "System.ObsoleteAttribute.DiagnosticId").WithLocation(16, 15)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_05() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(""don't use"", error: false, DiagnosticId = ""TEST1"", UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}"")] void M1() { } void M2() { M1(); // 1 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("TEST1", diag.Id); Assert.Equal(ErrorCode.WRN_DeprecatedSymbolStr, (ErrorCode)diag.Code); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/TEST1", diag.Descriptor.HelpLinkUri); diags.Verify( // (12,9): warning TEST1: 'C.M1()' is obsolete: 'don't use' // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").WithLocation(12, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadAttribute_02() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete( DiagnosticId = ""A"", DiagnosticId = ""B"", // 1 UrlFormat = ""C"", UrlFormat = ""D"")] // 2 void M1() { } void M2() { M1(); // 3 } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); var diags = comp.GetDiagnostics(); diags.Verify( // (9,9): error CS0643: 'DiagnosticId' duplicate named attribute argument // DiagnosticId = "B", // 1 Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, @"DiagnosticId = ""B""").WithArguments("DiagnosticId").WithLocation(9, 9), // (11,9): error CS0643: 'UrlFormat' duplicate named attribute argument // UrlFormat = "D")] // 2 Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, @"UrlFormat = ""D""").WithArguments("UrlFormat").WithLocation(11, 9), // (16,9): warning A: 'C.M1()' is obsolete // M1(); // 3 Diagnostic("A", "M1()").WithArguments("C.M1()").WithLocation(16, 9)); var diag = diags.Last(); Assert.Equal("C", diag.Descriptor.HelpLinkUri); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_Suppression_01() { var source = @" using System; #pragma warning disable 436 class C { [Obsolete(""don't use"", error: false, DiagnosticId = ""TEST1"")] void M1() { } [Obsolete] void M2() { } void M3() { M1(); // 1 M2(); // 2 #pragma warning disable TEST1 M1(); M2(); // 3 #pragma warning restore TEST1 #pragma warning disable 612 M1(); // 4 M2(); } } "; var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); comp.VerifyDiagnostics( // (15,9): warning TEST1: 'C.M1()' is obsolete: 'don't use' // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").WithLocation(15, 9), // (16,9): warning CS0612: 'C.M2()' is obsolete // M2(); // 2 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C.M2()").WithLocation(16, 9), // (20,9): warning CS0612: 'C.M2()' is obsolete // M2(); // 3 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C.M2()").WithLocation(20, 9), // (24,9): warning TEST1: 'C.M1()' is obsolete: 'don't use' // M1(); // 4 Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").WithLocation(24, 9)); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_01() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(""don't use"", error: false, DiagnosticId = ""TEST1"")] public void M1() { } [Obsolete] public void M2() { } } "; var source2 = @" class C2 : C1 { void M3() { M1(); // 1 M2(); // 2 #pragma warning disable TEST1 M1(); M2(); // 3 #pragma warning restore TEST1 #pragma warning disable 612 M1(); // 4 M2(); } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete: 'don't use' // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()", "don't use").WithLocation(6, 9), // (7,9): warning CS0612: 'C1.M2()' is obsolete // M2(); // 2 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C1.M2()").WithLocation(7, 9), // (11,9): warning CS0612: 'C1.M2()' is obsolete // M2(); // 3 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C1.M2()").WithLocation(11, 9), // (15,9): warning TEST1: 'C1.M1()' is obsolete: 'don't use' // M1(); // 4 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()", "don't use").WithLocation(15, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_02() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(DiagnosticId = ""TEST1"")] public void M1() { } [Obsolete(""don't use"", DiagnosticId = ""TEST2"")] public void M2() { } [Obsolete(""don't use"", error: false, DiagnosticId = ""TEST3"")] public void M3() { } } "; var source2 = @" class C2 : C1 { void M4() { M1(); // 1 M2(); // 2 M3(); // 3 } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9), // (7,9): warning TEST2: 'C1.M2()' is obsolete: 'don't use' // M2(); // 2 Diagnostic("TEST2", "M2()").WithArguments("C1.M2()", "don't use").WithLocation(7, 9), // (8,9): warning TEST3: 'C1.M3()' is obsolete: 'don't use' // M3(); // 3 Diagnostic("TEST3", "M3()").WithArguments("C1.M3()", "don't use").WithLocation(8, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_03() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(DiagnosticId = ""TEST1"", UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/TEST1", diag.Descriptor.HelpLinkUri); diags.Verify( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_04() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(DiagnosticId = null, UrlFormat = null)] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_FromMetadata_05() { var source1 = @" using System; #pragma warning disable 436 public class C1 { [Obsolete(DiagnosticId = ""TEST1"", UrlFormat = ""https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/{0}"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); comp1.VerifyDiagnostics(); // WithGeneralDiagnosticOption verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn), // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error), // (6,9): error TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9).WithWarningAsError(true) ); verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden), // (6,9): hidden TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9)); verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); // WithSpecificDiagnosticOption for id TEST1 verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Warn)), // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Error)), // (6,9): error TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9).WithWarningAsError(true) ); verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Hidden)), // (6,9): hidden TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Suppress))); // WithSpecificDiagnosticOption for id CS0618 verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Error)), // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Suppress)), // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").WithLocation(6, 9) ); void verify(CSharpCompilationOptions options, params DiagnosticDescription[] expectedDiagnostics) { verifyReference(comp1.ToMetadataReference(), options, expectedDiagnostics); verifyReference(comp1.EmitToImageReference(), options, expectedDiagnostics); } void verifyReference(MetadataReference reference, CSharpCompilationOptions options, DiagnosticDescription[] expectedDiagnostics) { var comp2 = CreateCompilation(source2, references: new[] { reference }, options: options); var diags = comp2.GetDiagnostics(); if (expectedDiagnostics.Any()) { var diag = diags.Single(); Assert.Equal("https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/TEST1", diag.Descriptor.HelpLinkUri); } diags.Verify(expectedDiagnostics); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_01() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public bool Flag { get; set; } public string DiagnosticId { get; set; } } } public class C1 { [Obsolete(Flag = false, DiagnosticId = ""TEST1"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_02() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public string DiagnosticId; public string UrlFormat; } } public class C1 { [Obsolete(DiagnosticId = ""TEST1"", UrlFormat = ""TEST2"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_03() { var source1 = @" using System; #pragma warning disable 436 public enum E1 { A, B } namespace System { public class ObsoleteAttribute : Attribute { public byte Byte { get; set; } public sbyte SByte { get; set; } public bool Bool { get; set; } public short Short { get; set; } public ushort UShort { get; set; } public char Char { get; set; } public int Int { get; set; } public uint UInt { get; set; } public float Float { get; set; } public long Long { get; set; } public ulong ULong { get; set; } public double Double { get; set; } public E1 Enum { get; set; } public string DiagnosticId { get; set; } } } public class C1 { [Obsolete( Byte = 0, SByte = 0, Bool = false, Short = 0, UShort = 0, Char = '\0', Int = 0, UInt = 0, Float = 0, Long = 0, ULong = 0, Double = 0, Enum = E1.A, DiagnosticId = ""TEST1"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_04() { var source1 = @" using System; #pragma warning disable 436 public enum E1 { A, B } namespace System { public class ObsoleteAttribute : Attribute { public int[] Int { get; set; } public E1[] Enum { get; set; } public string DiagnosticId { get; set; } } } public class C1 { [Obsolete( Int = new[] { 0, 1, 2 }, Enum = new[] { E1.A, E1.B }, DiagnosticId = ""TEST1"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); // https://github.com/dotnet/roslyn/issues/42771 //verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); comp2.VerifyDiagnostics( // (6,9): warning TEST1: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_05() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public char[] DiagnosticId { get; set; } public char[] UrlFormat { get; set; } } } public class C1 { [Obsolete(DiagnosticId = new[] { 'A' }, UrlFormat = new[] { 'B' })] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); // https://github.com/dotnet/roslyn/issues/42771 //verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal($"https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_06() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public char[] DiagnosticId { get; set; } public char[] UrlFormat { get; set; } } } public class C1 { [Obsolete(DiagnosticId = null, UrlFormat = null)] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_07() { // In this program C1.M1 has an ObsoleteAttribute with multiple values provided for DiagnosticId and UrlFormat var ilSource = @" .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. .ver 4:0:0:0 } .class public auto ansi beforefieldinit C1 extends [mscorlib]System.Object { .method public hidebysig instance void M1() cil managed { .custom instance void System.ObsoleteAttribute::.ctor() = ( 01 00 04 00 // .... 54 0E 0C 44 69 61 67 6E 6F 73 74 69 63 49 64 01 41 // T..DiagnosticId.A 54 0E 0C 44 69 61 67 6E 6F 73 74 69 63 49 64 01 42 // T..DiagnosticId.B 54 0E 09 55 72 6C 46 6F 72 6D 61 74 01 43 // T..UrlFormat.C 54 0E 09 55 72 6C 46 6F 72 6D 61 74 01 44 ) // T..UrlFormat.D // Code size 2 (0x2) .maxstack 8 IL_0000: nop IL_0001: ret } // end of method C1::M1 .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method C1::.ctor } // end of class C1 .class public auto ansi beforefieldinit System.ObsoleteAttribute extends [mscorlib]System.Attribute { .field private string '<DiagnosticId>k__BackingField' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) .field private string '<UrlFormat>k__BackingField' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) .method public hidebysig specialname instance string get_DiagnosticId() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldfld string System.ObsoleteAttribute::'<DiagnosticId>k__BackingField' IL_0006: ret } // end of method ObsoleteAttribute::get_DiagnosticId .method public hidebysig specialname instance void set_DiagnosticId(string 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string System.ObsoleteAttribute::'<DiagnosticId>k__BackingField' IL_0007: ret } // end of method ObsoleteAttribute::set_DiagnosticId .method public hidebysig specialname instance string get_UrlFormat() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldfld string System.ObsoleteAttribute::'<UrlFormat>k__BackingField' IL_0006: ret } // end of method ObsoleteAttribute::get_UrlFormat .method public hidebysig specialname instance void set_UrlFormat(string 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string System.ObsoleteAttribute::'<UrlFormat>k__BackingField' IL_0007: ret } // end of method ObsoleteAttribute::set_UrlFormat .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Attribute::.ctor() IL_0006: nop IL_0007: ret } // end of method ObsoleteAttribute::.ctor .property instance string DiagnosticId() { .get instance string System.ObsoleteAttribute::get_DiagnosticId() .set instance void System.ObsoleteAttribute::set_DiagnosticId(string) } // end of property ObsoleteAttribute::DiagnosticId .property instance string UrlFormat() { .get instance string System.ObsoleteAttribute::get_UrlFormat() .set instance void System.ObsoleteAttribute::set_UrlFormat(string) } // end of property ObsoleteAttribute::UrlFormat } // end of class System.ObsoleteAttribute "; var csSource = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var ilComp = CompileIL(ilSource); var comp = CreateCompilation(csSource, references: new[] { ilComp }); var diags = comp.GetDiagnostics(); diags.Verify( // (6,9): warning A: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("A", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("C", diag.Descriptor.HelpLinkUri); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_08() { // In this program C1.M1 has an ObsoleteAttribute with a malformed value provided for a named argument var ilSource = @" .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. .ver 4:0:0:0 } .class public auto ansi beforefieldinit C1 extends [mscorlib]System.Object { .method public hidebysig instance void M1() cil managed { .custom instance void System.ObsoleteAttribute::.ctor() = ( 01 00 02 00 // .... 54 0E 0C 44 69 61 67 6E 6F 73 74 69 63 49 64 01 41 // T..DiagnosticId.A 0E 09 55 72 6C 46 6F 72 6D 61 74 01 42 ) // ..UrlFormat.B // Code size 2 (0x2) .maxstack 8 IL_0000: nop IL_0001: ret } // end of method C1::M1 .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method C1::.ctor } // end of class C1 .class public auto ansi beforefieldinit System.ObsoleteAttribute extends [mscorlib]System.Attribute { .field private string '<DiagnosticId>k__BackingField' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) .field private string '<UrlFormat>k__BackingField' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) .method public hidebysig specialname instance string get_DiagnosticId() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldfld string System.ObsoleteAttribute::'<DiagnosticId>k__BackingField' IL_0006: ret } // end of method ObsoleteAttribute::get_DiagnosticId .method public hidebysig specialname instance void set_DiagnosticId(string 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string System.ObsoleteAttribute::'<DiagnosticId>k__BackingField' IL_0007: ret } // end of method ObsoleteAttribute::set_DiagnosticId .method public hidebysig specialname instance string get_UrlFormat() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldfld string System.ObsoleteAttribute::'<UrlFormat>k__BackingField' IL_0006: ret } // end of method ObsoleteAttribute::get_UrlFormat .method public hidebysig specialname instance void set_UrlFormat(string 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string System.ObsoleteAttribute::'<UrlFormat>k__BackingField' IL_0007: ret } // end of method ObsoleteAttribute::set_UrlFormat .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Attribute::.ctor() IL_0006: nop IL_0007: ret } // end of method ObsoleteAttribute::.ctor .property instance string DiagnosticId() { .get instance string System.ObsoleteAttribute::get_DiagnosticId() .set instance void System.ObsoleteAttribute::set_DiagnosticId(string) } // end of property ObsoleteAttribute::DiagnosticId .property instance string UrlFormat() { .get instance string System.ObsoleteAttribute::get_UrlFormat() .set instance void System.ObsoleteAttribute::set_UrlFormat(string) } // end of property ObsoleteAttribute::UrlFormat } // end of class System.ObsoleteAttribute "; var csSource = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var ilComp = CompileIL(ilSource); var comp = CreateCompilation(csSource, references: new[] { ilComp }); var diags = comp.GetDiagnostics(); diags.Verify( // (6,9): warning A: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic("A", "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } [Fact, WorkItem(42119, "https://github.com/dotnet/roslyn/issues/42119")] public void Obsolete_CustomDiagnosticId_BadMetadata_09() { var source1 = @" using System; #pragma warning disable 436 namespace System { public class ObsoleteAttribute : Attribute { public object DiagnosticId { get; set; } public object UrlFormat { get; set; } } } public class C1 { [Obsolete(DiagnosticId = ""A"", UrlFormat = ""B"")] public void M1() { } } "; var source2 = @" class C2 : C1 { void M2() { M1(); // 1 } }"; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); verify(comp1.ToMetadataReference()); verify(comp1.EmitToImageReference()); void verify(MetadataReference reference) { var comp2 = CreateCompilation(source2, references: new[] { reference }); var diags = comp2.GetDiagnostics(); diags.Verify( // (6,9): warning CS0612: 'C1.M1()' is obsolete // M1(); // 1 Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").WithLocation(6, 9)); var diag = diags.Single(); Assert.Equal("https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0612)", diag.Descriptor.HelpLinkUri); } } [Fact] [WorkItem(656345, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/656345")] public void ConditionalLazyObsoleteDiagnostic() { var source = @" public class A { protected virtual void M() { } } public class B : A { protected override void M() { } } public class C : B { void Test() { base.M(); } } "; var comp = CreateCompilation(source); var tree = comp.SyntaxTrees.Single(); var model = comp.GetSemanticModel(tree); var syntax = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); // Used to assert because it depended on some lazy state being evaluated but didn't // actually trigger evaluation. model.GetSymbolInfo(syntax); comp.VerifyDiagnostics(); } [Fact] [WorkItem(656345, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/656345")] public void ConditionalLazyObsoleteDiagnosticInAttribute() { var source = @" using System; public class A { protected virtual int M() { return 1; } } public class B : A { protected override int M() { return 2; } } public class C : B { [Num(base.M())] void Test() { } } public class NumAttribute : Attribute { public NumAttribute(int x) { } } "; var comp = CreateCompilation(source); var tree = comp.SyntaxTrees.Single(); var model = comp.GetSemanticModel(tree); var syntax = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); // Used to assert because it depended on some lazy state being evaluated but didn't // actually trigger evaluation. model.GetSymbolInfo(syntax); comp.VerifyDiagnostics( // (22,10): error CS1512: Keyword 'base' is not available in the current context // [Num(base.M())] Diagnostic(ErrorCode.ERR_BaseInBadContext, "base")); } [Fact] [WorkItem(665595, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/665595")] public void ConditionalLazyObsoleteDiagnosticInLazyObsoleteContext() { var source1 = @" namespace System.Web.UI.Design { public class ReadWriteControlDesignerBase { [Obsolete(""A"")] protected virtual void OnBehaviorAttached() { } } public class ReadWriteControlDesigner : ReadWriteControlDesignerBase { [Obsolete(""B"")] protected override void OnBehaviorAttached() { } } } "; var source2 = @" using System.Web.UI.Design; class C : ReadWriteControlDesigner { protected override void OnBehaviorAttached() { base.OnBehaviorAttached(); } } "; var comp1 = CreateCompilation(source1); comp1.VerifyDiagnostics(); var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }); var tree = comp2.SyntaxTrees.Single(); var model = comp2.GetSemanticModel(tree); var syntax = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Last(n => n.Identifier.ValueText == "OnBehaviorAttached"); // Used to assert because it depended on some lazy state being evaluated but didn't // actually trigger evaluation. model.GetSymbolInfo(syntax); comp2.VerifyDiagnostics( // (6,29): warning CS0672: Member 'C.OnBehaviorAttached()' overrides obsolete member 'System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()'. Add the Obsolete attribute to 'C.OnBehaviorAttached()'. // protected override void OnBehaviorAttached() Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "OnBehaviorAttached").WithArguments("C.OnBehaviorAttached()", "System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()"), // (8,9): warning CS0618: 'System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()' is obsolete: 'A' // base.OnBehaviorAttached(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "base.OnBehaviorAttached()").WithArguments("System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()", "A")); } [Fact] [WorkItem(668365, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/668365")] public void ObsoleteOverrideChain() { var source = @" using System; public class A { [Obsolete] public virtual void M() { } } public class B : A { // Not obsolete public override void M() { } } public class C : B { [Obsolete] public override void M() { } } public class D { // Not obsolete public virtual void M() { } } public class E : D { [Obsolete] public override void M() { } } public class F : E { // Not obsolete public override void M() { } } "; CreateCompilation(source).VerifyDiagnostics( // (13,26): warning CS0672: Member 'B.M()' overrides obsolete member 'A.M()'. Add the Obsolete attribute to 'B.M()'. // public override void M() { } Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "M").WithArguments("B.M()", "A.M()"), // (31,26): warning CS0809: Obsolete member 'E.M()' overrides non-obsolete member 'D.M()' // public override void M() { } Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "M").WithArguments("E.M()", "D.M()")); } [Fact] public void DefaultValueOnParamsParameter() { var source = @" using System; using System.Runtime.InteropServices; public class C { public void M([Optional, DefaultParameterValue(null)]params int[] args) { } } "; var comp = CreateCompilation(source); Action<ModuleSymbol> validator = module => { var method = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); var param = method.Parameters.Single(); Assert.True(param.IsParams); Assert.False(param.IsOptional); Assert.False(param.HasExplicitDefaultValue); }; CompileAndVerify(comp, symbolValidator: validator, sourceSymbolValidator: validator); // NOTE: Illegal in dev11, but legal in roslyn. } [Fact] public void TestDeprecatedAttribute() { var source1 = @" using Windows.Foundation.Metadata; [Deprecated(""Class1 is deprecated."", DeprecationType.Deprecate, 0)] public class Class1 { } [Deprecated(""Class2 is deprecated."", DeprecationType.Deprecate, 0, Platform.Windows)] public class Class2 { } [Deprecated(""Class3 is deprecated."", DeprecationType.Remove, 1)] public class Class3 { } [Deprecated(""Class4 is deprecated."", DeprecationType.Remove, 0, Platform.WindowsPhone)] public class Class4 { } "; var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); compilation1.VerifyDiagnostics(); var source2 = @" using Windows.Foundation.Metadata; class Class5 { void Test() { Class1 x1 = null; Class2 x2 = null; Class3 x3 = null; Class4 x4 = null; Class6 x6 = new Class6(); object x5; x5=x1; x5 = x2; x5 = x3; x5 = x4; x5 = x6.P1; x6.P1 = 1; x5 = x6.P2; x6.P2 = 1; x6.E1 += null; x6.E1 -= null; } } class Class6 { public int P1 { [Deprecated(""P1.get is deprecated."", DeprecationType.Remove, 1)] get { return 1; } set {} } public int P2 { get { return 1; } [Deprecated(""P1.get is deprecated."", DeprecationType.Remove, 1)] set {} } public event System.Action E1 { [Deprecated(""E1.add is deprecated."", DeprecationType.Remove, 1)] add { } remove { } } } "; var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); var expected = new[] { // (8,9): warning CS0618: 'Class1' is obsolete: 'Class1 is deprecated.' // Class1 x1 = null; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Class1 is deprecated.").WithLocation(8, 9), // (9,9): warning CS0618: 'Class2' is obsolete: 'Class2 is deprecated.' // Class2 x2 = null; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Class2").WithArguments("Class2", "Class2 is deprecated.").WithLocation(9, 9), // (10,9): error CS0619: 'Class3' is obsolete: 'Class3 is deprecated.' // Class3 x3 = null; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class3").WithArguments("Class3", "Class3 is deprecated.").WithLocation(10, 9), // (11,9): error CS0619: 'Class4' is obsolete: 'Class4 is deprecated.' // Class4 x4 = null; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class4").WithArguments("Class4", "Class4 is deprecated.").WithLocation(11, 9), // (19,14): error CS0619: 'Class6.P1.get' is obsolete: 'P1.get is deprecated.' // x5 = x6.P1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "x6.P1").WithArguments("Class6.P1.get", "P1.get is deprecated.").WithLocation(19, 14), // (22,9): error CS0619: 'Class6.P2.set' is obsolete: 'P1.get is deprecated.' // x6.P2 = 1; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "x6.P2").WithArguments("Class6.P2.set", "P1.get is deprecated.").WithLocation(22, 9), // (52,10): error CS8423: Attribute 'Windows.Foundation.Metadata.DeprecatedAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Deprecated("E1.add is deprecated.", DeprecationType.Remove, 1)] Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(52, 10) }; compilation2.VerifyDiagnostics(expected); compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { compilation1.EmitToImageReference() }), TestOptions.ReleaseDll); compilation2.VerifyDiagnostics(expected); } /// <summary> /// Report warning or error based on last attribute. /// </summary> [WorkItem(18755, "https://github.com/dotnet/roslyn/issues/18755")] [Fact] public void TestMultipleDeprecatedAttributes() { var source = @"using Windows.Foundation.Metadata; class C { [Deprecated(""Removed"", DeprecationType.Remove, 0)] [Deprecated(""Deprecated"", DeprecationType.Deprecate, 0)] static void F() { } [Deprecated(""Deprecated"", DeprecationType.Deprecate, 0)] [Deprecated(""Removed"", DeprecationType.Remove, 0)] static void G() { } static void Main() { F(); G(); } }"; var compilation = CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseDll); compilation.VerifyDiagnostics( // (12,9): warning CS0618: 'C.F()' is obsolete: 'Deprecated' // F(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F()").WithArguments("C.F()", "Deprecated").WithLocation(12, 9), // (13,9): error CS0619: 'C.G()' is obsolete: 'Removed' // G(); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "G()").WithArguments("C.G()", "Removed").WithLocation(13, 9)); } private const string DeprecatedAttributeSourceTH1 = @"using System; namespace Windows.Foundation.Metadata { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = true)] public sealed class DeprecatedAttribute : Attribute { public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version) { } // this signature is only used in TH1 metadata // see: https://github.com/dotnet/roslyn/issues/10630 public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version, Type contract) { } } public enum DeprecationType { Deprecate = 0, Remove = 1 } }"; [Fact] public void TestDeprecatedAttributeTH1() { var source1 = @" using Windows.Foundation.Metadata; public class Test { [Deprecated(""hello"", DeprecationType.Deprecate, 1, typeof(int))] public static void Goo() { } [Deprecated(""hi"", DeprecationType.Deprecate, 1)] public static void Bar() { } } "; var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSourceTH1), Parse(source1) }); var source2 = @" namespace ConsoleApplication74 { class Program { static void Main(string[] args) { Test.Goo(); Test.Bar(); } } } "; var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { compilation1.EmitToImageReference() }); compilation2.VerifyDiagnostics( // (8,13): warning CS0618: 'Test.Goo()' is obsolete: 'hello' // Test.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13), // (9,13): warning CS0618: 'Test.Bar()' is obsolete: 'hi' // Test.Bar(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13) ); var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { new CSharpCompilationReference(compilation1) }); compilation3.VerifyDiagnostics( // (8,13): warning CS0618: 'Test.Goo()' is obsolete: 'hello' // Test.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13), // (9,13): warning CS0618: 'Test.Bar()' is obsolete: 'hi' // Test.Bar(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13) ); } private const string DeprecatedAttributeSourceTH2 = @"using System; namespace Windows.Foundation.Metadata { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = true)] public sealed class DeprecatedAttribute : Attribute { public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version) { } // this signature is only used in TH2 metadata and onwards // see: https://github.com/dotnet/roslyn/issues/10630 public DeprecatedAttribute(System.String message, DeprecationType type, System.UInt32 version, String contract) { } } public enum DeprecationType { Deprecate = 0, Remove = 1 } }"; [Fact] public void TestDeprecatedAttributeTH2() { var source1 = @" using Windows.Foundation.Metadata; public class Test { [Deprecated(""hello"", DeprecationType.Deprecate, 1, ""hello"")] public static void Goo() { } [Deprecated(""hi"", DeprecationType.Deprecate, 1)] public static void Bar() { } } "; var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSourceTH2), Parse(source1) }); var source2 = @" namespace ConsoleApplication74 { class Program { static void Main(string[] args) { Test.Goo(); Test.Bar(); } } } "; var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { compilation1.EmitToImageReference() }); compilation2.VerifyDiagnostics( // (8,13): warning CS0618: 'Test.Goo()' is obsolete: 'hello' // Test.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13), // (9,13): warning CS0618: 'Test.Bar()' is obsolete: 'hi' // Test.Bar(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13) ); var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { new CSharpCompilationReference(compilation1) }); compilation3.VerifyDiagnostics( // (8,13): warning CS0618: 'Test.Goo()' is obsolete: 'hello' // Test.Goo(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13), // (9,13): warning CS0618: 'Test.Bar()' is obsolete: 'hi' // Test.Bar(); Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13) ); } [Fact, WorkItem(858839, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/858839")] public void Bug858839_1() { var source1 = @" using Windows.Foundation.Metadata; public class MainPage { public static void Main(string[] args) { } private static void TestGoo1(IGoo1 a, ConcreteGoo1 b) { a.Goo(); // IGoo1 b.Goo(); // ConcreteGoo1 } private static void TestGoo2(IGoo2 a, ConcreteGoo2 b) { a.Goo(); // IGoo2 b.Goo(); // ConcreteGoo2 } private static void TestGoo3(IGoo3 a, ConcreteGoo3 b) { a.Goo(); // IGoo3 b.Goo(); // ConcreteGoo3 } } public interface IGoo1 { [Deprecated(""IGoo1.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] void Goo(); } public sealed class ConcreteGoo1 : IGoo1 { public void Goo() { } } public interface IGoo2 { void Goo(); } public sealed class ConcreteGoo2 : IGoo2 { [Deprecated(""ConcreteGoo2.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] public void Goo() { } } public interface IGoo3 { [Deprecated(""IGoo3.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] void Goo(); } public sealed class ConcreteGoo3 : IGoo3 { [Deprecated(""ConcreteGoo3.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] public void Goo() { } } public sealed class ConcreteGoo4 : IGoo1 { void IGoo1.Goo() { } } public sealed class ConcreteGoo5 : IGoo1 { [Deprecated(""ConcreteGoo5.Goo has been deprecated"", DeprecationType.Deprecate, 0, Platform.Windows)] void IGoo1.Goo() { } } "; var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); var expected = new[] { // (12,9): warning CS0618: 'IGoo1.Goo()' is obsolete: 'IGoo1.Goo has been deprecated' // a.Goo(); // IGoo1 Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.Goo()").WithArguments("IGoo1.Goo()", "IGoo1.Goo has been deprecated").WithLocation(12, 9), // (19,9): warning CS0618: 'ConcreteGoo2.Goo()' is obsolete: 'ConcreteGoo2.Goo has been deprecated' // b.Goo(); // ConcreteGoo2 Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "b.Goo()").WithArguments("ConcreteGoo2.Goo()", "ConcreteGoo2.Goo has been deprecated").WithLocation(19, 9), // (24,9): warning CS0618: 'IGoo3.Goo()' is obsolete: 'IGoo3.Goo has been deprecated' // a.Goo(); // IGoo3 Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.Goo()").WithArguments("IGoo3.Goo()", "IGoo3.Goo has been deprecated").WithLocation(24, 9), // (25,9): warning CS0618: 'ConcreteGoo3.Goo()' is obsolete: 'ConcreteGoo3.Goo has been deprecated' // b.Goo(); // ConcreteGoo3 Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "b.Goo()").WithArguments("ConcreteGoo3.Goo()", "ConcreteGoo3.Goo has been deprecated").WithLocation(25, 9) }; compilation1.VerifyDiagnostics(expected); } [Fact, WorkItem(858839, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/858839")] public void Bug858839_2() { var source1 = @" using Windows.Foundation.Metadata; public interface IExceptionalInterface { string ExceptionalProp { [Deprecated(""Actually, don't even use the prop at all."", DeprecationType.Remove, 50331648u)] get; [Deprecated(""Changed my mind; don't put this prop."", DeprecationType.Remove, 33554432u)] set; } } "; var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); //compilation1.VerifyDiagnostics(); var source2 = @" using System; class Test { public static void F(IExceptionalInterface i) { i.ExceptionalProp = ""goo""; Console.WriteLine(i.ExceptionalProp); } } "; var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); var expected = new[] { // (8,9): error CS0619: 'IExceptionalInterface.ExceptionalProp.set' is obsolete: 'Changed my mind; don't put this prop.' // i.ExceptionalProp = "goo"; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "i.ExceptionalProp").WithArguments("IExceptionalInterface.ExceptionalProp.set", "Changed my mind; don't put this prop.").WithLocation(8, 9), // (9,27): error CS0619: 'IExceptionalInterface.ExceptionalProp.get' is obsolete: 'Actually, don't even use the prop at all.' // Console.WriteLine(i.ExceptionalProp); Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "i.ExceptionalProp").WithArguments("IExceptionalInterface.ExceptionalProp.get", "Actually, don't even use the prop at all.").WithLocation(9, 27) }; compilation2.VerifyDiagnostics(expected); } [Fact, WorkItem(530801, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530801")] public void Bug530801DisallowRequiredAttributeCS0648() { var ilsource = @" .class public auto ansi beforefieldinit Scenario1 extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Runtime.CompilerServices.RequiredAttributeAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 53 79 73 74 65 6D 2E 49 6E 74 33 32 2C // ..YSystem.Int32, 20 6D 73 63 6F 72 6C 69 62 2C 20 56 65 72 73 69 // mscorlib, Versi 6F 6E 3D 34 2E 30 2E 30 2E 30 2C 20 43 75 6C 74 // on=4.0.0.0, Cult 75 72 65 3D 6E 65 75 74 72 61 6C 2C 20 50 75 62 // ure=neutral, Pub 6C 69 63 4B 65 79 54 6F 6B 65 6E 3D 62 37 37 61 // licKeyToken=b77a 35 63 35 36 31 39 33 34 65 30 38 39 00 00 ) // 5c561934e089.. .field public int32 intVar .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Scenario1::.ctor } // end of class Scenario1 "; var cssource = @" public class C { static Scenario1 ss; public static int Main() { ss = new Scenario1(); DoSomething(ss); return 1; } static void DoSomething(Scenario1 p) { System.Console.WriteLine(p); } } "; var ilReference = CompileIL(ilsource); var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference }, TestOptions.ReleaseExe); var expected = new[] { // (12,29): error CS0648: 'Scenario1' is a type not supported by the language // static void DoSomething(Scenario1 p) Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(12, 29), // (4,12): error CS0648: 'Scenario1' is a type not supported by the language // static Scenario1 ss; Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(4, 12), // (7,18): error CS0648: 'Scenario1' is a type not supported by the language // ss = new Scenario1(); Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(7, 18) }; cscomp.VerifyDiagnostics(expected); } [Fact, WorkItem(530801, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530801")] public void Bug530801DisallowRequiredAttributeCS0570() { var ilsource = @" .class public auto ansi beforefieldinit RequiredAttr.Scenario1 extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Runtime.CompilerServices.RequiredAttributeAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 53 79 73 74 65 6D 2E 49 6E 74 33 32 2C // ..YSystem.Int32, 20 6D 73 63 6F 72 6C 69 62 2C 20 56 65 72 73 69 // mscorlib, Versi 6F 6E 3D 34 2E 30 2E 30 2E 30 2C 20 43 75 6C 74 // on=4.0.0.0, Cult 75 72 65 3D 6E 65 75 74 72 61 6C 2C 20 50 75 62 // ure=neutral, Pub 6C 69 63 4B 65 79 54 6F 6B 65 6E 3D 62 37 37 61 // licKeyToken=b77a 35 63 35 36 31 39 33 34 65 30 38 39 00 00 ) // 5c561934e089.. .field public int32 intVar .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Scenario1::.ctor } // end of class RequiredAttr.Scenario1 .class public auto ansi beforefieldinit RequiredAttr.ReqAttrUsage extends [mscorlib]System.Object { .field public class RequiredAttr.Scenario1 sc1_field .method public hidebysig newslot specialname virtual instance class RequiredAttr.Scenario1 get_sc1_prop() cil managed { // Code size 9 (0x9) .maxstack 1 .locals (class RequiredAttr.Scenario1 V_0) IL_0000: ldarg.0 IL_0001: ldfld class RequiredAttr.Scenario1 RequiredAttr.ReqAttrUsage::sc1_field IL_0006: stloc.0 IL_0007: ldloc.0 IL_0008: ret } // end of method ReqAttrUsage::get_sc1_prop .method public hidebysig instance class RequiredAttr.Scenario1 sc1_method() cil managed { // Code size 9 (0x9) .maxstack 1 .locals (class RequiredAttr.Scenario1 V_0) IL_0000: ldarg.0 IL_0001: ldfld class RequiredAttr.Scenario1 RequiredAttr.ReqAttrUsage::sc1_field IL_0006: stloc.0 IL_0007: ldloc.0 IL_0008: ret } // end of method ReqAttrUsage::sc1_method .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method ReqAttrUsage::.ctor .property instance class RequiredAttr.Scenario1 sc1_prop() { .get instance class RequiredAttr.Scenario1 RequiredAttr.ReqAttrUsage::get_sc1_prop() } // end of property ReqAttrUsage::sc1_prop } // end of class RequiredAttr.ReqAttrUsage "; var cssource = @" using RequiredAttr; public class C { public static int Main() { var r = new ReqAttrUsage(); r.sc1_field = null; var o = r.sc1_prop; r.sc1_method(); return 1; } } "; var ilReference = CompileIL(ilsource); var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference }, TestOptions.ReleaseExe); var expected = new[] { // (9,11): error CS0570: 'RequiredAttr.ReqAttrUsage.sc1_field' is not supported by the language // r.sc1_field = null; Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_field").WithArguments("RequiredAttr.ReqAttrUsage.sc1_field").WithLocation(9, 11), // (10,19): error CS0570: 'RequiredAttr.ReqAttrUsage.sc1_prop' is not supported by the language // var o = r.sc1_prop; Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_prop").WithArguments("RequiredAttr.ReqAttrUsage.sc1_prop").WithLocation(10, 19), // (11,11): error CS0570: 'RequiredAttr.ReqAttrUsage.sc1_method()' is not supported by the language // r.sc1_method(); Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_method").WithArguments("RequiredAttr.ReqAttrUsage.sc1_method()").WithLocation(11, 11) }; cscomp.VerifyDiagnostics(expected); } #endregion #region SkipLocalsInitAttribute private CompilationVerifier CompileAndVerifyWithSkipLocalsInit(string src, CSharpCompilationOptions options, CSharpParseOptions parseOptions = null, Verification verify = Verification.Fails) { const string skipLocalsInitDef = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } }"; var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: options, parseOptions: parseOptions); return CompileAndVerify(comp, verify: verify); } private CompilationVerifier CompileAndVerifyWithSkipLocalsInit(string src, CSharpParseOptions parseOptions = null, Verification verify = Verification.Fails) { return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.UnsafeReleaseDll, parseOptions, verify); } [Fact] public void SkipLocalsInitRequiresUnsafe() { var source = @" using System.Runtime.CompilerServices; [module: SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } [SkipLocalsInitAttribute] public class C { [SkipLocalsInitAttribute] public void M() { } [SkipLocalsInitAttribute] public int P => 0; } "; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (4,10): error CS0227: Unsafe code may only appear if compiling with /unsafe // [module: SkipLocalsInitAttribute] Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(4, 10), // (13,2): error CS0227: Unsafe code may only appear if compiling with /unsafe // [SkipLocalsInitAttribute] Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(13, 2), // (16,6): error CS0227: Unsafe code may only appear if compiling with /unsafe // [SkipLocalsInitAttribute] Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(16, 6), // (20,6): error CS0227: Unsafe code may only appear if compiling with /unsafe // [SkipLocalsInitAttribute] Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(20, 6) ); } [Fact] public void SkipLocalsInitAttributeOnMethod() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M_skip() { int x = 2; x = x + x + x; } public void M_init() { int x = 2; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C.M_init", realIL: true)); Assert.False(comp.HasLocalsInit("C.M_skip", realIL: true)); Assert.True(comp.HasLocalsInit("C.M_init", realIL: false)); Assert.False(comp.HasLocalsInit("C.M_skip", realIL: false)); } [Fact] public void SkipLocalsInitAttributeOnPartialMethod() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial class C { partial void M() { int x = 1; x = x + x + x; } } partial class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] partial void M(); } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnExtendedPartialMethod_01() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial class C { public partial int M() { int x = 1; x = x + x + x; return x; } } partial class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public partial int M(); } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnExtendedPartialMethod_02() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public partial int M() { int x = 1; x = x + x + x; return x; } } partial class C { public partial int M(); } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public unsafe void StackallocWithSkipLocalsInit() { var src = @" public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public unsafe void M1() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } public unsafe void M2() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } public unsafe void M3() { int* p = stackalloc int[10]; // unused } }"; var verifier = CompileAndVerifyWithSkipLocalsInit(src); Assert.Null(verifier.HasLocalsInit("C.M1")); // no locals Assert.False(verifier.HasLocalsInit("C.M1", realIL: true)); Assert.Null(verifier.HasLocalsInit("C.M2")); // no locals Assert.True(verifier.HasLocalsInit("C.M2", realIL: true)); Assert.Null(verifier.HasLocalsInit("C.M3")); // no locals Assert.False(verifier.HasLocalsInit("C.M3", realIL: true)); } [Fact] public void WhenMethodsDifferBySkipLocalsInitAttributeTheyMustHaveDifferentRVA() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public unsafe void M_skip() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public unsafe void M_skip_copy() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public unsafe void M_skip_diff() { int *ptr = stackalloc int[11]; System.Console.WriteLine(ptr[0]); } public unsafe void M_init() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } public unsafe void M_init_copy() { int *ptr = stackalloc int[10]; System.Console.WriteLine(ptr[0]); } public unsafe void M_init_diff() { int *ptr = stackalloc int[11]; System.Console.WriteLine(ptr[0]); } } "; var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); var metadata = ModuleMetadata.CreateFromStream(comp.EmitToStream()); var peReader = metadata.Module.GetMetadataReader(); TypeDefinition typeC = default; foreach (var typeHandle in peReader.TypeDefinitions) { var type = peReader.GetTypeDefinition(typeHandle); var name = peReader.GetString(type.Name); if (name == "C") { typeC = type; break; } } Assert.NotEqual(default, typeC); MethodDefinition methodInit = default; MethodDefinition methodSkip = default; MethodDefinition methodInitCopy = default; MethodDefinition methodSkipCopy = default; MethodDefinition methodInitDiff = default; MethodDefinition methodSkipDiff = default; foreach (var methodHandle in typeC.GetMethods()) { var method = peReader.GetMethodDefinition(methodHandle); var name = peReader.GetString(method.Name); if (name == "M_init") { methodInit = method; } else if (name == "M_skip") { methodSkip = method; } else if (name == "M_init_copy") { methodInitCopy = method; } else if (name == "M_skip_copy") { methodSkipCopy = method; } else if (name == "M_init_diff") { methodInitDiff = method; } else if (name == "M_skip_diff") { methodSkipDiff = method; } } Assert.NotEqual(default, methodInit); Assert.NotEqual(default, methodSkip); Assert.NotEqual(default, methodInitCopy); Assert.NotEqual(default, methodSkipCopy); Assert.NotEqual(default, methodInitDiff); Assert.NotEqual(default, methodSkipDiff); Assert.NotEqual(methodInit.RelativeVirtualAddress, methodSkip.RelativeVirtualAddress); Assert.Equal(methodInit.RelativeVirtualAddress, methodInitCopy.RelativeVirtualAddress); Assert.Equal(methodSkip.RelativeVirtualAddress, methodSkipCopy.RelativeVirtualAddress); Assert.NotEqual(methodInit.RelativeVirtualAddress, methodInitDiff.RelativeVirtualAddress); Assert.NotEqual(methodSkip.RelativeVirtualAddress, methodSkipDiff.RelativeVirtualAddress); } [Fact] public void SkipLocalsInitAttributeOnAssemblyDoesNotPropagateToMethod() { var source = @" [assembly: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public void M() { int x = 2; x = x + x + x; } } "; var comp = CompileAndVerify(source); Assert.True(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToLocalFunction() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { void F() { int x = 2; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<M>g__F|0_0")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToLambda() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { System.Action L = () => { int x = 2; x = x + x + x; }; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_0")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToNestedLambdaAndLocalFunction() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { void F() { int y = 1; y = y + y + y; void FF() { int x = 2; x = x + x + x; } System.Action FL = () => { int x = 3; x = x + x + x; }; } System.Action L = () => { int y = 4; y = y + y + y; void LF() { int x = 5; x = x + x + x; } System.Action LL = () => { int x = 6; x = x + x + x; }; }; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<M>g__F|0_0")); // F Assert.False(comp.HasLocalsInit("C.<M>g__FF|0_2")); // FF Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_3")); // FL Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_1")); // L Assert.False(comp.HasLocalsInit("C.<M>g__LF|0_4")); // LF Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_5")); // LL } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_01() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; void localNoAttribute() { int x = 1; x = x + x + x; Action lambda = () => { int y = 1; y = y + y + y; [SkipLocalsInitAttribute] void localWithAttribute() { int z = 1; z = z + z + z; } }; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_0")); // localNoAttribute Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_1")); // lambda Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_2")); // localWithAttribute } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_02() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; void localNoAttribute() { int x = 1; x = x + x + x; [SkipLocalsInitAttribute] void localWithAttribute() { int y = 1; y = y + y + y; Action lambda = () => { int z = 1; z = z + z + z; }; } } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_0")); // localNoAttribute Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_1")); // localWithAttribute Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_2")); // lambda } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_03() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; [SkipLocalsInitAttribute] void localWithAttribute() { int x = 1; x = x + x + x; void localNoAttribute() { int y = 1; y = y + y + y; Action lambda = () => { int z = 1; z = z + z + z; }; } } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_0")); // localWithAttribute Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_1")); // localNoAttribute Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_2")); // lambda } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_04() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; Action lambda = () => { int x = 1; x = x + x + x; void localNoAttribute() { int y = 1; y = y + y + y; [SkipLocalsInitAttribute] void localWithAttribute() { int z = 1; z = z + z + z; } } }; } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_0")); // lambda Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_1")); // localNoAttribute Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_2")); // localWithAttribute } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_05() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; Action lambda = () => { int x = 1; x = x + x + x; [SkipLocalsInitAttribute] void localWithAttribute() { int y = 1; y = y + y + y; void localNoAttribute() { int z = 1; z = z + z + z; } } }; } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_0")); // lambda Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_1")); // localWithAttribute Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_2")); // localNoAttribute } [Fact] public void SkipLocalsInit_LocalFunctionAttribute_06() { var source = @" using System.Runtime.CompilerServices; using System; public class C { public void M() { int w = 1; w = w + w + w; [SkipLocalsInitAttribute] void localWithAttribute() { int x = 1; x = x + x + x; Action lambda = () => { int y = 1; y = y + y + y; void localNoAttribute() { int z = 1; z = z + z + z; } }; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); Assert.True(verifier.HasLocalsInit("C.M")); Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_0")); // localWithAttribute Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_1")); // lambda Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_2")); // localNoAttribute } [Fact] public void SkipLocalsInit_PropertyAccessor_ContainsLocalFunction() { var source = @" using System.Runtime.CompilerServices; public class C { [SkipLocalsInit] int PropWithAttribute { get { int w = 1; w = w + w + w + w; void local1() { int x = 1; x = x + x + x + x; } return 0; } } int PropNoAttribute { get { int w = 1; w = w + w + w + w; void local1() { int x = 1; x = x + x + x + x; } return 0; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source); Assert.False(verifier.HasLocalsInit("C.PropWithAttribute.get")); Assert.False(verifier.HasLocalsInit("C.<get_PropWithAttribute>g__local1|1_0")); Assert.True(verifier.HasLocalsInit("C.PropNoAttribute.get")); Assert.True(verifier.HasLocalsInit("C.<get_PropNoAttribute>g__local1|3_0")); } [Fact] public void SkipLocalsInit_EventAccessor_ContainsLocalFunction() { var source = @" using System.Runtime.CompilerServices; using System; public class C { [SkipLocalsInit] event Action EventWithAttribute { add { int w = 1; w = w + w + w + w; void local1() { int x = 1; x = x + x + x + x; } } remove { } } event Action EventNoAttribute { add { int w = 1; w = w + w + w + w; void local1() { int x = 1; x = x + x + x + x; } } remove { } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source); Assert.False(verifier.HasLocalsInit("C.EventWithAttribute.add")); Assert.False(verifier.HasLocalsInit("C.<add_EventWithAttribute>g__local1|1_0")); Assert.True(verifier.HasLocalsInit("C.EventNoAttribute.add")); Assert.True(verifier.HasLocalsInit("C.<add_EventNoAttribute>g__local1|4_0")); } [Fact] public void SkipLocalsInit_Class_ContainsLocalFunction() { var source = @" using System.Runtime.CompilerServices; using System; [SkipLocalsInit] public class C { void M() { var w = 1; w = w + w + w; void local() { var x = 1; x = x + x + x; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source); Assert.False(verifier.HasLocalsInit("C.M")); Assert.False(verifier.HasLocalsInit("C.<M>g__local|0_0")); } [Fact] public void SkipLocalsInit_Module_ContainsLocalFunction() { var source = @" using System.Runtime.CompilerServices; using System; [module: SkipLocalsInit] public class C { void M() { var w = 1; w = w + w + w; void local() { var x = 1; x = x + x + x; } } } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source); Assert.False(verifier.HasLocalsInit("C.M")); Assert.False(verifier.HasLocalsInit("C.<M>g__local|0_0")); } [Theory] [InlineData(false, false, false, true)] [InlineData(false, false, true, false)] [InlineData(false, true, false, false)] [InlineData(false, true, true, false)] [InlineData(true, false, false, false)] [InlineData(true, false, true, false)] [InlineData(true, true, false, false)] [InlineData(true, true, true, false)] public void SkipLocalsInit_Lambda_01(bool skipLocalsType, bool skipLocalsMethod, bool skipLocalsLambda, bool expectedAreLocalsZeroed) { var source = $@"using System; using System.Runtime.CompilerServices; {GetSkipLocalsInit(skipLocalsType)} class Program {{ {GetSkipLocalsInit(skipLocalsMethod)} static void Main() {{ Action a = {GetSkipLocalsInit(skipLocalsLambda)} () => {{ int x = 1; x = x + x + x; }}; }} }}"; var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); Assert.Equal(expectedAreLocalsZeroed, verifier.HasLocalsInit("Program.<>c.<Main>b__0_0()")); var comp = (CSharpCompilation)verifier.Compilation; var tree = comp.SyntaxTrees[0]; var model = comp.GetSemanticModel(tree); var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); var lambda = exprs.SelectAsArray(e => model.GetSymbolInfo(e).Symbol).Single().GetSymbol<LambdaSymbol>(); Assert.Equal(expectedAreLocalsZeroed, lambda.AreLocalsZeroed); } [Theory] [InlineData(false, false, true)] [InlineData(false, true, false)] [InlineData(true, false, false)] [InlineData(true, true, false)] public void SkipLocalsInit_Lambda_02(bool skipLocalsType, bool skipLocalsLambda, bool expectedAreLocalsZeroed) { var source = $@"using System; using System.Runtime.CompilerServices; {GetSkipLocalsInit(skipLocalsType)} class Program {{ Action A = {GetSkipLocalsInit(skipLocalsLambda)} () => {{ int x = 1; x = x + x + x; }}; }}"; var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); Assert.Equal(expectedAreLocalsZeroed, verifier.HasLocalsInit("Program.<>c.<.ctor>b__1_0()")); var comp = (CSharpCompilation)verifier.Compilation; var tree = comp.SyntaxTrees[0]; var model = comp.GetSemanticModel(tree); var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); var lambda = exprs.SelectAsArray(e => model.GetSymbolInfo(e).Symbol).Single().GetSymbol<LambdaSymbol>(); Assert.Equal(expectedAreLocalsZeroed, lambda.AreLocalsZeroed); } // [SkipLocalsInit] on constructor is ignored [Theory] [InlineData(false, false, false, true)] [InlineData(false, false, true, false)] [InlineData(false, true, false, true)] [InlineData(false, true, true, false)] [InlineData(true, false, false, false)] [InlineData(true, false, true, false)] [InlineData(true, true, false, false)] [InlineData(true, true, true, false)] public void SkipLocalsInit_Lambda_03(bool skipLocalsType, bool skipLocalsMethod, bool skipLocalsLambda, bool expectedAreLocalsZeroed) { var source = $@"using System; using System.Runtime.CompilerServices; {GetSkipLocalsInit(skipLocalsType)} class Program {{ Action A = {GetSkipLocalsInit(skipLocalsLambda)} () => {{ int x = 1; x = x + x + x; }}; {GetSkipLocalsInit(skipLocalsMethod)} Program() {{ }} }}"; var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); Assert.Equal(expectedAreLocalsZeroed, verifier.HasLocalsInit("Program.<>c.<.ctor>b__1_0()")); var comp = (CSharpCompilation)verifier.Compilation; var tree = comp.SyntaxTrees[0]; var model = comp.GetSemanticModel(tree); var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); var lambda = exprs.SelectAsArray(e => model.GetSymbolInfo(e).Symbol).Single().GetSymbol<LambdaSymbol>(); Assert.Equal(expectedAreLocalsZeroed, lambda.AreLocalsZeroed); } private static string GetSkipLocalsInit(bool skipLocalsInit) => skipLocalsInit ? "[SkipLocalsInit]" : ""; [Fact, WorkItem(49434, "https://github.com/dotnet/roslyn/issues/49434")] public void SkipLocalsInit_Module_TopLevelStatements() { var source = @" using System.Runtime.CompilerServices; [module: SkipLocalsInit] var w = 1; w = w + w + w; void local() { var x = 1; x = x + x + x; } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe); Assert.False(verifier.HasLocalsInit("<top-level-statements-entry-point>")); Assert.False(verifier.HasLocalsInit("Program.<<Main>$>g__local|0_0")); } [Fact, WorkItem(49434, "https://github.com/dotnet/roslyn/issues/49434")] public void SkipLocalsInit_Module_TopLevelStatements_WithoutAttribute() { var source = @" var w = 1; w = w + w + w; void local() { var x = 1; x = x + x + x; } "; var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify: Verification.Passes); Assert.True(verifier.HasLocalsInit("<top-level-statements-entry-point>")); Assert.True(verifier.HasLocalsInit("Program.<<Main>$>g__local|0_0")); } [Fact] public void SkipLocalsInit_BaseMethodWrapper() { var source = @" using System.Runtime.CompilerServices; using System; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [SkipLocalsInit] public virtual int M1(int i) { int x = i; x = x + x + x + x; return x; } } public class D : C { void M(int i) { new Action(() => base.M1(i)).Invoke(); } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M1")); Assert.Null(comp.HasLocalsInit("D.<>n__0")); // Base method wrapper for C.M1 } [Fact] public void SkipLocalsInit_BaseMethodWrapper_DifferentCompilation() { var source1 = @" using System.Runtime.CompilerServices; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [SkipLocalsInit] public virtual int M1(int i) { int x = i; x = x + x + x + x; return x; } } "; var source2 = @" using System; public class D : C { void M(int i) { new Action(() => base.M1(i)).Invoke(); } } "; var comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp1.HasLocalsInit("C.M1")); var reference = comp1.Compilation.ToMetadataReference(); var comp2 = CompileAndVerify(source2, references: new[] { reference }, verify: Verification.Passes); Assert.Null(comp2.HasLocalsInit("D.<>n__0")); // Base method wrapper for C.M1 } [Fact] public void SkipLocalsInitAttributeOnIteratorPropagatesToItsSynthesizedMethods() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public System.Collections.IEnumerable M_skip() { yield return 1; yield return 2; } public System.Collections.IEnumerable M_init() { yield return 3; yield return 4; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerator.MoveNext")); Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerator.MoveNext")); Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); // The following methods do not contain locals, so the attribute should not alter their behavior Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.IDisposable.Dispose")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.IDisposable.Dispose")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerable.GetEnumerator")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerable.GetEnumerator")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerator.get_Current")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerator.get_Current")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerator.Reset")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerator.Reset")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.Generic.IEnumerator<object>.get_Current")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.Generic.IEnumerator<object>.get_Current")); Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0..ctor")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1..ctor")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToIteratorLocalFunction() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { System.Collections.IEnumerable F() { yield return 1; yield return 2; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Collections.IEnumerator.MoveNext")); Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); } [Fact] public void SkipLocalsInitAttributeOnAsyncPropagatesToItsSynthesizedMethods() { var source = @" using System.Threading.Tasks; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public async Task M_skip() { await Task.Yield(); } public async Task M_init() { await Task.Yield(); } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); // The following method does not contain locals, so the attribute should not alter its behavior Assert.Null(comp.HasLocalsInit("C.<M_skip>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.SetStateMachine")); Assert.Null(comp.HasLocalsInit("C.<M_init>d__1.System.Runtime.CompilerServices.IAsyncStateMachine.SetStateMachine")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToAsyncLocalFunction() { var source = @" using System.Threading.Tasks; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { async Task F() { await Task.Yield(); } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); } [Fact] public void SkipLocalsInitAttributeOnMethodPropagatesToAsyncLambda() { var source = @" using System.Threading.Tasks; namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { System.Action L = async () => { await Task.Yield(); }; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<>c.<<M>b__0_0>d.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); } [Fact] public void AnonymousTypeTemplateSymbolDelegatesToModuleWhenAskedAboutSkipLocalsInitAttribute() { var source_init = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { var anon = new { Value = 1 }; } } "; var source_skip = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public void M() { var anon = new { Value = 1 }; } } "; var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.Null(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.GetHashCode")); Assert.Null(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>..ctor")); Assert.True(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Equals")); Assert.True(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.ToString")); Assert.Null(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Value.get")); Assert.Null(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.GetHashCode")); Assert.Null(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>..ctor")); Assert.False(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Equals")); Assert.False(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.ToString")); Assert.Null(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Value.get")); } [Fact] public void SynthesizedClosureEnvironmentNeverSkipsLocalsInit() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M() { int x = 1; System.Action L = () => x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); Assert.Null(comp.HasLocalsInit("C.<>c__DisplayClass0_0..ctor")); } [Fact] public void SynthesizedEmbeddedAttributeSymbolDelegatesToModuleWhenAskedAboutSkipLocalsInitAttribute() { var source_init = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public void M(in int x) { } } "; var source_skip = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public void M(in int x) { } } "; var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll); Assert.Null(comp_init.HasLocalsInit("Microsoft.CodeAnalysis.EmbeddedAttribute..ctor")); Assert.Null(comp_init.HasLocalsInit("System.Runtime.CompilerServices.IsReadOnlyAttribute..ctor")); Assert.Null(comp_skip.HasLocalsInit("Microsoft.CodeAnalysis.EmbeddedAttribute..ctor")); Assert.Null(comp_skip.HasLocalsInit("System.Runtime.CompilerServices.IsReadOnlyAttribute..ctor")); } [Fact] public void SourceMemberMethodSymbolDelegatesToTypeWhenSkipLocalsInitAttributeIsNotFound() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C_init { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] public void M() { int x = 1; x = x + x + x; } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public class C_skip { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] public void M() { int x = 1; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C_init.M")); Assert.False(comp.HasLocalsInit("C_skip.M")); } [Fact] public void SkipLocalsInitAttributeOnPropertyPropagatesToBothAccessors() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P_skip { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } public int P_init { get { int x = 3; return x + x + x; } set { int x = 4; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.P_skip.get")); Assert.True(comp.HasLocalsInit("C.P_init.get")); Assert.False(comp.HasLocalsInit("C.P_skip.set")); Assert.True(comp.HasLocalsInit("C.P_init.set")); } [Fact] public void SkipLocalsInitAttributeOnAccessor() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public int P1 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } public int P2 { get { int x = 3; return x + x + x; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set { int x = 4; x = x + x + x; } } public int P3 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { int x = 5; return x + x + x; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set { int x = 6; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.P1.get")); Assert.True(comp.HasLocalsInit("C.P1.set")); Assert.True(comp.HasLocalsInit("C.P2.get")); Assert.False(comp.HasLocalsInit("C.P2.set")); Assert.False(comp.HasLocalsInit("C.P3.get")); Assert.False(comp.HasLocalsInit("C.P3.set")); } [Fact] public void SkipLocalsInitAttributeOnIteratorGetAccessor() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { public System.Collections.IEnumerable P { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { yield return 1; yield return 2; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.<get_P>d__1.System.Collections.IEnumerator.MoveNext")); Assert.False(comp.HasLocalsInit("C.<get_P>d__1.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); } [Fact] public void SkipLocalsInitAttributeOnPropertyAndAccessor() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P1 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P2 { get { int x = 3; return x + x + x; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set { int x = 4; x = x + x + x; } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P3 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get { int x = 5; return x + x + x; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set { int x = 6; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.P1.get")); Assert.False(comp.HasLocalsInit("C.P1.set")); Assert.False(comp.HasLocalsInit("C.P2.get")); Assert.False(comp.HasLocalsInit("C.P2.set")); Assert.False(comp.HasLocalsInit("C.P3.get")); Assert.False(comp.HasLocalsInit("C.P3.set")); } [Fact] public void SourcePropertySymbolDelegatesToTypeWhenSkipLocalsInitAttributeIsNotFound() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C_init { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] public int P { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public class C_skip { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] public int P { get { int x = 3; return x + x + x; } set { int x = 4; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C_init.P.get")); Assert.False(comp.HasLocalsInit("C_skip.P.get")); Assert.True(comp.HasLocalsInit("C_init.P.set")); Assert.False(comp.HasLocalsInit("C_skip.P.set")); } [Fact] public void SkipLocalsInitAttributeOnAutoProperty() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P { get; set; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); // No locals are expected. We are just making sure it still works. Assert.Null(comp.HasLocalsInit("C.P.get")); Assert.Null(comp.HasLocalsInit("C.P.set")); } [Fact] public void SkipLocalsInitAttributeOnExpressionBodiedProperty() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } public class C { int p; int p2; int p3; [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P { get => p; set => p = value; } public int P2 { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] get => p2; [System.Runtime.CompilerServices.SkipLocalsInitAttribute] set => p2 = value; } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public int P3 => p3; } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); // No locals are expected. We are just making sure it still works. Assert.Null(comp.HasLocalsInit("C.P.get")); Assert.Null(comp.HasLocalsInit("C.P.set")); Assert.Null(comp.HasLocalsInit("C.P2.get")); Assert.Null(comp.HasLocalsInit("C.P2.set")); Assert.Null(comp.HasLocalsInit("C.P3.get")); } [Fact] public void SkipLocalsInitAttributeOnClassPropagatesToItsMembers() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] class C_skip { int P { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } void M() { int x = 3; x = x + x + x; } class C2 { void M2() { int x = 4; x = x + x + x; } } event System.EventHandler E { add { int x = 4; x = x + x + x; } remove { int x = 4; x = x + x + x; } } } class C_init { int P { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } void M() { int x = 3; x = x + x + x; } class C2 { void M2() { int x = 4; x = x + x + x; } } event System.EventHandler E { add { int x = 4; x = x + x + x; } remove { int x = 4; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C_init.P.get")); Assert.False(comp.HasLocalsInit("C_skip.P.get")); Assert.True(comp.HasLocalsInit("C_init.P.set")); Assert.False(comp.HasLocalsInit("C_skip.P.set")); Assert.True(comp.HasLocalsInit("C_init.M")); Assert.False(comp.HasLocalsInit("C_skip.M")); Assert.True(comp.HasLocalsInit("C_init.C2.M2")); Assert.False(comp.HasLocalsInit("C_skip.C2.M2")); Assert.True(comp.HasLocalsInit("C_init.E.add")); Assert.True(comp.HasLocalsInit("C_init.E.remove")); Assert.False(comp.HasLocalsInit("C_skip.E.add")); Assert.False(comp.HasLocalsInit("C_skip.E.remove")); } [Fact] public void SkipLocalsInitAttributeOnClassKeepsPropagatingToNestedClasses() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] class C { class C2 { void M2() { int x = 2; x = x + x + x; } class C3 { void M3() { int x = 3; x = x + x + x; } } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.C2.M2")); Assert.False(comp.HasLocalsInit("C.C2.C3.M3")); } [Fact] public void SkipLocalsInitAttributeOnNestedClassPropagatesToItsMembers() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { [System.Runtime.CompilerServices.SkipLocalsInitAttribute] class C2 { int P2 { get { int x = 1; return x + x + x; } set { int x = 2; x = x + x + x; } } void M2() { int x = 3; x = x + x + x; } class C3 { void M3() { int x = 4; x = x + x + x; } } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.C2.P2.get")); Assert.False(comp.HasLocalsInit("C.C2.P2.set")); Assert.False(comp.HasLocalsInit("C.C2.M2")); Assert.False(comp.HasLocalsInit("C.C2.C3.M3")); } [Fact] public void SkipLocalsInitAttributeOnPartialClassPropagatesToItsMembers() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial class C { int P { get { int x = 1; return x = x + x + x; } set { int x = 2; x = x + x + x; } } void M() { int x = 3; x = x + x + x; } class C2 { void M2() { int x = 4; x = x + x + x; } } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] partial class C { } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.P.get")); Assert.False(comp.HasLocalsInit("C.P.set")); Assert.False(comp.HasLocalsInit("C.M")); Assert.False(comp.HasLocalsInit("C.C2.M2")); } [Fact] public void SourceNamedTypeSymbolDelegatesToContainingTypeWhenSkipLocalsInitAttributeIsNotFound() { var source = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } } class C_init { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] class C { void M() { int x = 1; x = x + x + x; } } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] public class C_skip { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] class C { void M() { int x = 1; x = x + x + x; } } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.True(comp.HasLocalsInit("C_init.C.M")); Assert.False(comp.HasLocalsInit("C_skip.C.M")); } [Fact] public void SkipLocalsInitAttributeOnModule() { var source = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { void M() { int x = 1; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnExeModule() { var source = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { public static void Main() { int x = 1; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.Main")); } [Fact] public void SkipLocalsInitAttributeOnNetmodule() { var source = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { void M() { int x = 1; x = x + x + x; } } "; var comp = CompileAndVerify(source, options: TestOptions.DebugModule.WithAllowUnsafe(true), verify: Verification.Fails); Assert.False(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitAttributeOnModuleAsReferenceDoesNotAlterBehavior() { var metadata_source = @" [module: System.Runtime.CompilerServices.SkipLocalsInitAttribute] namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } "; var source = @" class C { void M() { int x = 1; x = x + x + x; } } "; var metadata_comp = CreateCompilation(metadata_source, options: TestOptions.DebugModule.WithAllowUnsafe(true)); var comp = CompileAndVerify(source, references: new[] { metadata_comp.EmitToImageReference() }); Assert.True(comp.HasLocalsInit("C.M")); } [Fact] public void SkipLocalsInitInterfaces() { var src = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } partial interface I { int P { get { int x = 1; return x = x + x + x; } set { int x = 2; x = x + x + x; } } void M() { int x = 3; x = x + x + x; } class C2 { void M2() { int x = 4; x = x + x + x; } } } [System.Runtime.CompilerServices.SkipLocalsInitAttribute] partial interface I { } "; var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); verifier.VerifyIL("I.M", @" { // Code size 9 (0x9) .maxstack 2 .locals (int V_0) //x IL_0000: ldc.i4.3 IL_0001: stloc.0 IL_0002: ldloc.0 IL_0003: ldloc.0 IL_0004: add IL_0005: ldloc.0 IL_0006: add IL_0007: stloc.0 IL_0008: ret }"); Assert.False(verifier.HasLocalsInit("I.M")); Assert.False(verifier.HasLocalsInit("I.C2.M2")); Assert.False(verifier.HasLocalsInit("I.P.get")); Assert.False(verifier.HasLocalsInit("I.P.set")); } [Fact] public void SkipLocalsInitOnEventAccessors() { var source = @" namespace System.Runtime.CompilerServices { class SkipLocalsInitAttribute : System.Attribute { } } class C { [System.Runtime.CompilerServices.SkipLocalsInit] event System.EventHandler E { add { int x = 1; x += x + 1; } remove { int x = 1; x += x + 1; } } event System.EventHandler E2 { [System.Runtime.CompilerServices.SkipLocalsInit] add { int x = 1; x += x + 1; } remove { int x = 1; x += x + 1; } } }"; var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); var verifier = CompileAndVerify(comp, verify: Verification.Fails); const string il = @" { // Code size 10 (0xa) .maxstack 3 .locals (int V_0) //x IL_0000: nop IL_0001: ldc.i4.1 IL_0002: stloc.0 IL_0003: ldloc.0 IL_0004: ldloc.0 IL_0005: ldc.i4.1 IL_0006: add IL_0007: add IL_0008: stloc.0 IL_0009: ret }"; verifier.VerifyIL("C.E.add", il); verifier.VerifyIL("C.E.remove", il); verifier.VerifyIL("C.E2.add", il); verifier.VerifyIL("C.E2.remove", il.Replace(".locals", ".locals init")); } [Fact] public void SkipLocalsInitAbstract() { const string skipLocalsInitDef1 = @" namespace System.Runtime.CompilerServices { [System.AttributeUsage(System.AttributeTargets.All, Inherited = true)] public class SkipLocalsInitAttribute : System.Attribute { } }"; var src = @" [System.Runtime.CompilerServices.SkipLocalsInit] abstract class A { public int M1() { int x = 1; return x = x + x + x; } } class B : A { public int M2() { int x = 1; return x = x + x + x; } }"; var comp = CreateCompilation(new[] { src, skipLocalsInitDef1 }, options: TestOptions.UnsafeDebugDll); var verifier = CompileAndVerify(comp, verify: Verification.Skipped); Assert.False(verifier.HasLocalsInit("A.M1")); // SkipLocalsInit is not treated as inherited, regardless of AttributeUsage inheritance Assert.True(verifier.HasLocalsInit("B.M2")); } [Fact] public void SkipLocalsInitFinalizers() { var src = @" [System.Runtime.CompilerServices.SkipLocalsInit] class C { ~C() { int x = 1; System.Console.WriteLine(x = x + x + x); } }"; var verifier = CompileAndVerifyWithSkipLocalsInit(src); Assert.False(verifier.HasLocalsInit("C.Finalize")); } [Fact] public void SkipLocalsInitInitializer() { var src = @" [System.Runtime.CompilerServices.SkipLocalsInit] class C { static int M(out int x) { x = 1; return x; } int _f = M(out var x) + x + x + x; }"; var verifier = CompileAndVerifyWithSkipLocalsInit(src); Assert.False(verifier.HasLocalsInit("C..ctor")); } [Fact] public void SkipLocalsInitImplicitConstructor() { var src = @" using System.Runtime.CompilerServices; [SkipLocalsInit] class ClassWithAttributeWithLocal { int i = M(out string s); static int M(out string s) { s = """"; return 42; } } class ClassNoAttributeWithLocal { int i = M(out string s); static int M(out string s) { s = """"; return 42; } } [SkipLocalsInit] class ClassWithAttributeNoLocal { int i = 123; } class ClassNoAttributeNoLocal { int i = 123; } "; var verifier = CompileAndVerifyWithSkipLocalsInit(src); Assert.False(verifier.HasLocalsInit("ClassWithAttributeWithLocal..ctor")); Assert.True(verifier.HasLocalsInit("ClassNoAttributeWithLocal..ctor")); Assert.Null(verifier.HasLocalsInit("ClassWithAttributeNoLocal..ctor")); Assert.Null(verifier.HasLocalsInit("ClassNoAttributeNoLocal..ctor")); } [Theory] [InlineData("", "", true)] [InlineData("", "[SkipLocalsInit]", true)] [InlineData("[SkipLocalsInit]", "", false)] [InlineData("[SkipLocalsInit]", "[SkipLocalsInit]", false)] [InlineData("[module: SkipLocalsInit]", "", false)] [InlineData("[module: SkipLocalsInit]", "[SkipLocalsInit]", false)] public void SkipLocalsInitLambdaFieldInitializer(string outerAttribute, string ctorAttribute, bool hasLocalsInit) { var src = $@" using System.Runtime.CompilerServices; using System; {outerAttribute} class C {{ {ctorAttribute} C() {{ }} Action action = () => {{ int w = 1; w = w + w + w; void local() {{ int x = 1; x = x + x + x; }} }}; }} namespace System.Runtime.CompilerServices {{ public class SkipLocalsInitAttribute : System.Attribute {{ }} }} "; var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); Assert.Equal(hasLocalsInit, verifier.HasLocalsInit("C.<>c.<.ctor>b__0_0")); // action Assert.Equal(hasLocalsInit, verifier.HasLocalsInit("C.<.ctor>g__local|0_1")); // local } [Theory] [InlineData("", "", "", true)] [InlineData("", "[SkipLocalsInit]", "", true)] [InlineData("", "", "[SkipLocalsInit]", true)] [InlineData("[SkipLocalsInit]", "", "", false)] [InlineData("[SkipLocalsInit]", "", "[SkipLocalsInit]", false)] [InlineData("[module: SkipLocalsInit]", "", "", false)] [InlineData("[module: SkipLocalsInit]", "", "[SkipLocalsInit]", false)] public void SkipLocalsInitLambdaPropertyInitializer(string outerAttribute, string ctorAttribute, string propAttribute, bool hasLocalsInit) { var src = $@" using System.Runtime.CompilerServices; using System; {outerAttribute} class C {{ {ctorAttribute} C() {{ }} {propAttribute} Action Prop {{ get; }} = () => {{ int w = 1; w = w + w + w; void local() {{ int x = 1; x = x + x + x; }} }}; }} namespace System.Runtime.CompilerServices {{ public class SkipLocalsInitAttribute : System.Attribute {{ }} }} "; var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); Assert.Equal(hasLocalsInit, verifier.HasLocalsInit("C.<>c.<.ctor>b__0_0")); // lambda Assert.Equal(hasLocalsInit, verifier.HasLocalsInit("C.<.ctor>g__local|0_1")); // local } [Fact] public void SkipLocalsInitMultipleAttributes() { var src = @" class C { [System.Runtime.CompilerServices.SkipLocalsInit] [System.Diagnostics.ConditionalAttribute(""RELEASE"")] void M() { int x = 1; x = x + x + x; } }"; const string skipLocalsInitDef = @" namespace System.Runtime.CompilerServices { public class SkipLocalsInitAttribute : System.Attribute { } }"; var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.UnsafeReleaseDll); var verifier = CompileAndVerify(comp, verify: Verification.Fails); Assert.False(verifier.HasLocalsInit("C.M")); } #endregion [Fact, WorkItem(807, "https://github.com/dotnet/roslyn/issues/807")] public void TestAttributePropagationForAsyncAndIterators_01() { var source = CreateCompilationWithMscorlib45(@" using System; using System.Collections.Generic; using System.Threading.Tasks; class Program { static void Main(string[] args) { } [MyAttribute] [System.Diagnostics.DebuggerNonUserCodeAttribute] [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepperBoundaryAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] public async Task<int> test1() { return await DoNothing(); } public async Task<int> test2() { return await DoNothing(); } async Task<int> DoNothing() { return 1; } [MyAttribute] [System.Diagnostics.DebuggerNonUserCodeAttribute] [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepperBoundaryAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] public IEnumerable<int> Test3() { yield return 1; yield return 2; } public IEnumerable<int> Test4() { yield return 1; yield return 2; } } class MyAttribute : System.Attribute { } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var program = m.GlobalNamespace.GetTypeMember("Program"); Assert.Equal("", CheckAttributePropagation(((NamedTypeSymbol)program.GetMember<MethodSymbol>("test1"). GetAttribute("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"). ConstructorArguments.Single().ValueInternal). GetMember<MethodSymbol>("MoveNext"))); Assert.Equal(0, ((NamedTypeSymbol)program.GetMember<MethodSymbol>("test2"). GetAttribute("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"). ConstructorArguments.Single().ValueInternal). GetMember<MethodSymbol>("MoveNext").GetAttributes().Length); Assert.Equal("", CheckAttributePropagation(((NamedTypeSymbol)program.GetMember<MethodSymbol>("Test3"). GetAttribute("System.Runtime.CompilerServices", "IteratorStateMachineAttribute"). ConstructorArguments.Single().ValueInternal). GetMember<MethodSymbol>("MoveNext"))); Assert.Equal(0, ((NamedTypeSymbol)program.GetMember<MethodSymbol>("Test4"). GetAttribute("System.Runtime.CompilerServices", "IteratorStateMachineAttribute"). ConstructorArguments.Single().ValueInternal). GetMember<MethodSymbol>("MoveNext").GetAttributes().Length); }; CompileAndVerify(source, symbolValidator: attributeValidator); } private static string CheckAttributePropagation(Symbol symbol) { string result = ""; if (symbol.GetAttributes("", "MyAttribute").Any()) { result += "MyAttribute is present\n"; } if (!symbol.GetAttributes("System.Diagnostics", "DebuggerNonUserCodeAttribute").Any()) { result += "DebuggerNonUserCodeAttribute is missing\n"; } if (!symbol.GetAttributes("System.Diagnostics", "DebuggerHiddenAttribute").Any()) { result += "DebuggerHiddenAttribute is missing\n"; } if (!symbol.GetAttributes("System.Diagnostics", "DebuggerStepperBoundaryAttribute").Any()) { result += "DebuggerStepperBoundaryAttribute is missing\n"; } if (!symbol.GetAttributes("System.Diagnostics", "DebuggerStepThroughAttribute").Any()) { result += "DebuggerStepThroughAttribute is missing\n"; } return result; } [Fact, WorkItem(4521, "https://github.com/dotnet/roslyn/issues/4521")] public void TestAttributePropagationForAsyncAndIterators_02() { var source = CreateCompilationWithMscorlib45(@" using System; using System.Collections.Generic; using System.Threading.Tasks; [MyAttribute] [System.Diagnostics.DebuggerNonUserCodeAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] class Program1 { static void Main(string[] args) { } public async Task<int> test1() { return await DoNothing(); } async Task<int> DoNothing() { return 1; } public IEnumerable<int> Test3() { yield return 1; yield return 2; } } class Program2 { static void Main(string[] args) { } public async Task<int> test2() { return await DoNothing(); } async Task<int> DoNothing() { return 1; } public IEnumerable<int> Test4() { yield return 1; yield return 2; } } class MyAttribute : System.Attribute { } "); Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => { var program1 = m.GlobalNamespace.GetTypeMember("Program1"); var program2 = m.GlobalNamespace.GetTypeMember("Program2"); Assert.Equal("DebuggerHiddenAttribute is missing\nDebuggerStepperBoundaryAttribute is missing\n", CheckAttributePropagation(((NamedTypeSymbol)program1.GetMember<MethodSymbol>("test1"). GetAttribute("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"). ConstructorArguments.Single().ValueInternal))); Assert.Equal("DebuggerNonUserCodeAttribute is missing\nDebuggerHiddenAttribute is missing\nDebuggerStepperBoundaryAttribute is missing\nDebuggerStepThroughAttribute is missing\n", CheckAttributePropagation(((NamedTypeSymbol)program2.GetMember<MethodSymbol>("test2"). GetAttribute("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"). ConstructorArguments.Single().ValueInternal))); Assert.Equal("DebuggerHiddenAttribute is missing\nDebuggerStepperBoundaryAttribute is missing\n", CheckAttributePropagation(((NamedTypeSymbol)program1.GetMember<MethodSymbol>("Test3"). GetAttribute("System.Runtime.CompilerServices", "IteratorStateMachineAttribute"). ConstructorArguments.Single().ValueInternal))); Assert.Equal("DebuggerNonUserCodeAttribute is missing\nDebuggerHiddenAttribute is missing\nDebuggerStepperBoundaryAttribute is missing\nDebuggerStepThroughAttribute is missing\n", CheckAttributePropagation(((NamedTypeSymbol)program2.GetMember<MethodSymbol>("Test4"). GetAttribute("System.Runtime.CompilerServices", "IteratorStateMachineAttribute"). ConstructorArguments.Single().ValueInternal))); }; CompileAndVerify(source, symbolValidator: attributeValidator); } [Fact, WorkItem(10639, "https://github.com/dotnet/roslyn/issues/10639")] public void UsingStaticDirectiveDoesNotIgnoreObsoleteAttribute_DifferentSeverity() { var source = @" using System; using static TestError; using static TestWarning; [Obsolete (""Broken Error Class"", true)] static class TestError { public static void TestErrorFunc() { } } [Obsolete (""Broken Warning Class"", false)] static class TestWarning { public static void TestWarningFunc() { } } class Test { public static void Main() { TestErrorFunc(); TestWarningFunc(); } }"; CreateCompilation(source).VerifyDiagnostics( // (3,14): error CS0619: 'TestError' is obsolete: 'Broken Error Class' // using static TestError; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "TestError").WithArguments("TestError", "Broken Error Class").WithLocation(3, 14), // (4,14): warning CS0618: 'TestWarning' is obsolete: 'Broken Warning Class' // using static TestWarning; Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestWarning").WithArguments("TestWarning", "Broken Warning Class").WithLocation(4, 14)); } [Fact, WorkItem(10639, "https://github.com/dotnet/roslyn/issues/10639")] public void UsingStaticDirectiveDoesNotIgnoreObsoleteAttribute_NestedClasses() { var source = @" using System; using static ActiveParent.ObsoleteChild; using static ObsoleteParent.ActiveChild; using static BothObsoleteParent.BothObsoleteChild; static class ActiveParent { [Obsolete] public static class ObsoleteChild { public static void ObsoleteChildFunc() { } } } [Obsolete] static class ObsoleteParent { public static class ActiveChild { public static void ActiveChildFunc() { } } } [Obsolete] static class BothObsoleteParent { [Obsolete] public static class BothObsoleteChild { public static void BothObsoleteFunc() { } } } class Test { public static void Main() { ObsoleteChildFunc(); ActiveChildFunc(); BothObsoleteFunc(); } }"; CreateCompilation(source).VerifyDiagnostics( // (3,14): warning CS0612: 'ActiveParent.ObsoleteChild' is obsolete // using static ActiveParent.ObsoleteChild; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ActiveParent.ObsoleteChild").WithArguments("ActiveParent.ObsoleteChild").WithLocation(3, 14), // (4,14): warning CS0612: 'ObsoleteParent' is obsolete // using static ObsoleteParent.ActiveChild; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteParent").WithArguments("ObsoleteParent").WithLocation(4, 14), // (5,14): warning CS0612: 'BothObsoleteParent' is obsolete // using static BothObsoleteParent.BothObsoleteChild; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "BothObsoleteParent").WithArguments("BothObsoleteParent").WithLocation(5, 14), // (5,14): warning CS0612: 'BothObsoleteParent.BothObsoleteChild' is obsolete // using static BothObsoleteParent.BothObsoleteChild; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "BothObsoleteParent.BothObsoleteChild").WithArguments("BothObsoleteParent.BothObsoleteChild").WithLocation(5, 14)); } [Fact, WorkItem(19394, "https://github.com/dotnet/roslyn/issues/19394")] public void WellKnownTypeAsStruct_DefaultConstructor_DynamicAttribute() { var code = @" namespace System.Runtime.CompilerServices { public struct DynamicAttribute { public DynamicAttribute(bool[] transformFlags) { } } } class T { void M(dynamic x) {} }"; CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics( // error CS0616: 'System.Runtime.CompilerServices.DynamicAttribute' is not an attribute class Diagnostic(ErrorCode.ERR_NotAnAttributeClass).WithArguments("System.Runtime.CompilerServices.DynamicAttribute").WithLocation(1, 1)); } [Fact, WorkItem(19394, "https://github.com/dotnet/roslyn/issues/19394")] public void WellKnownTypeAsStruct_NonDefaultConstructor_DynamicAttribute_Array() { var compilation = CreateCompilationWithCSharp(@" using System; namespace System.Runtime.CompilerServices { public struct DynamicAttribute { public DynamicAttribute(bool[] transformFlags) { } } } public class Program { public static void Test(dynamic[] x) { Console.WriteLine(x.Length); foreach (var y in x) { Console.WriteLine(y); } } public static void Main() { Test(new dynamic[] { ""first"", ""second"" }); } }", options: TestOptions.ReleaseExe); CompileAndVerify( compilation, expectedOutput: @" 2 first second", symbolValidator: module => { var attribute = module.ContainingAssembly.GetTypeByMetadataName("Program").GetMethod("Test").Parameters.Single().GetAttributes().Single(); Assert.Equal("System.Runtime.CompilerServices.DynamicAttribute", attribute.AttributeClass.ToTestDisplayString()); Assert.True(attribute.AttributeClass.IsStructType()); Assert.Equal(module.ContainingAssembly, attribute.AttributeClass.ContainingAssembly); Assert.Equal("transformFlags", attribute.AttributeConstructor.Parameters.Single().Name); }); } [Fact, WorkItem(19394, "https://github.com/dotnet/roslyn/issues/19394")] public void WellKnownTypeAsStruct_DefaultConstructor_IsReadOnlyAttribute() { var code = @" namespace System.Runtime.CompilerServices { public struct IsReadOnlyAttribute { } } class Test { void M(in int x) { } }"; CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics( // error CS0616: 'IsReadOnlyAttribute' is not an attribute class Diagnostic(ErrorCode.ERR_NotAnAttributeClass).WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").WithLocation(1, 1)); } /// <summary> /// Verify that a synthesized (and emitted) parameterless constructor can be referenced /// in metadata for an "attribute type", even if the attribute type is a struct. Compare /// with previous test where no parameterless constructor is emitted for the struct type. /// </summary> [Theory] [InlineData( @"#pragma warning disable 414 namespace System.Runtime.CompilerServices { public struct IsReadOnlyAttribute { private int F = 1; // requires synthesized parameterless .ctor } }")] [InlineData( @"namespace System.Runtime.CompilerServices { public struct IsReadOnlyAttribute { // explicit parameterless .ctor public IsReadOnlyAttribute() { } } }")] public void WellKnownTypeAsStruct_ParameterlessConstructor_IsReadOnlyAttribute(string sourceAttribute) { var sourceA = @"public class A { public static void M(in int i) { System.Console.WriteLine(i); } }"; var sourceB = @"class B { static void Main() { int i = 42; A.M(in i); } }"; var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview); var refA = comp.EmitToImageReference(); CompileAndVerify(sourceB, references: new[] { refA }, expectedOutput: "42"); } [Fact] public void TestObsoleteOnPropertyAccessorUsedInNameofAndXmlDocComment() { var code = @" using System; /// <summary> /// <see cref=""Prop""/> /// </summary> class C { const string str = nameof(Prop); public int Prop { [Obsolete] get; [Obsolete] set; } } "; CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics(); } [Fact] public void TestObsoleteOnPropertyAndAccessors() { var code = @" using System; class C { public void M() => Prop = Prop; [Obsolete] public int Prop { [Obsolete] get; [Obsolete] set; } } "; CreateCompilation(code).VerifyDiagnostics( // (5,24): warning CS0612: 'C.Prop' is obsolete // public void M() => Prop = Prop; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop").WithLocation(5, 24), // (5,24): warning CS0612: 'C.Prop.set' is obsolete // public void M() => Prop = Prop; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop.set").WithLocation(5, 24), // (5,31): warning CS0612: 'C.Prop' is obsolete // public void M() => Prop = Prop; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop").WithLocation(5, 31), // (5,31): warning CS0612: 'C.Prop.get' is obsolete // public void M() => Prop = Prop; Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop.get").WithLocation(5, 31)); } [Fact] public void TestObsoleteOnPropertyAccessorCSharp7() { var code = @" using System; class C { public int Prop { [Obsolete] get; set; } } "; CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( // (4,24): error CS8652: The feature 'obsolete on property accessor' is not available in C# 7.3. Please use language version 8.0 or greater. // public int Prop { [Obsolete] get; set; } Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "Obsolete").WithArguments("obsolete on property accessor", "8.0").WithLocation(5, 24)); } [Fact] public void TestDeprecatedOnPropertyAccessorCSharp7() { var code = @" using Windows.Foundation.Metadata; class C { public int Prop { [Deprecated(""don't use this"", DeprecationType.Remove, 50331648u)] get; set; } } "; CreateEmptyCompilation(code, references: WinRtRefs, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( // (5,24): error CS8652: The feature 'obsolete on property accessor' is not available in C# 7.3. Please use language version 8.0 or greater. // public int Prop { [Deprecated("don't use this", DeprecationType.Remove, 50331648u)] get; set; } Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, @"Deprecated(""don't use this"", DeprecationType.Remove, 50331648u)").WithArguments("obsolete on property accessor", "8.0").WithLocation(5, 24)); } [Fact] public void TestObsoleteOnEventAccessorCSharp7() { var code = @" using System; class C { public event System.Action E { [Obsolete] add { } remove { } } } "; CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( // (7,10): error CS8423: Attribute 'System.ObsoleteAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Obsolete] Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(7, 10)); } [Fact] public void TestDeprecatedOnEventAccessorCSharp7() { var code = @" using Windows.Foundation.Metadata; class C { public event System.Action E { [Deprecated(""don't use this"", DeprecationType.Remove, 50331648u)] add { } remove { } } } "; CreateEmptyCompilation(code, references: WinRtRefs, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( // (7,10): error CS8423: Attribute 'Windows.Foundation.Metadata.DeprecatedAttribute' is not valid on event accessors. It is only valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations. // [Deprecated("don't use this", DeprecationType.Remove, 50331648u)] Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(7, 10)); } [Fact, WorkItem(53418, "https://github.com/dotnet/roslyn/issues/53418")] public void TestObsoleteIndexerSlice() { var code = @" using System; public class C { [Obsolete(""error"", error: true)] public int Slice(int i, int j) => 0; [Obsolete(""error"", error: true)] public int this[int i] => 0; [Obsolete(""error"", error: true)] public int Count => 0; public void M() { _ = this[^1]; _ = this[..]; } } "; CreateCompilation(code, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( // (17,13): error CS0619: 'C.this[int]' is obsolete: 'error' // _ = this[^1]; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.this[int]", "error").WithLocation(17, 13), // (17,13): error CS0619: 'C.Count' is obsolete: 'error' // _ = this[^1]; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.Count", "error").WithLocation(17, 13), // (18,13): error CS0619: 'C.Slice(int, int)' is obsolete: 'error' // _ = this[..]; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.Slice(int, int)", "error").WithLocation(18, 13), // (18,13): error CS0619: 'C.Count' is obsolete: 'error' // _ = this[..]; Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.Count", "error").WithLocation(18, 13) ); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Options/RoamingProfileStorageLocation.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; namespace Microsoft.CodeAnalysis.Options { /// <summary> /// Specifies that the option should be stored into a roamed profile across machines. /// </summary> internal sealed class RoamingProfileStorageLocation : OptionStorageLocation2 { private readonly Func<string?, string> _keyNameFromLanguageName; public string GetKeyNameForLanguage(string? languageName) { var unsubstitutedKeyName = _keyNameFromLanguageName(languageName); if (languageName == null) { return unsubstitutedKeyName; } else { var substituteLanguageName = languageName == LanguageNames.CSharp ? "CSharp" : languageName == LanguageNames.VisualBasic ? "VisualBasic" : languageName; return unsubstitutedKeyName.Replace("%LANGUAGE%", substituteLanguageName); } } public RoamingProfileStorageLocation(string keyName) => _keyNameFromLanguageName = _ => keyName; /// <summary> /// Creates a <see cref="RoamingProfileStorageLocation"/> that has different key names for different languages. /// </summary> /// <param name="keyNameFromLanguageName">A function that maps from a <see cref="LanguageNames"/> value to the key name.</param> public RoamingProfileStorageLocation(Func<string?, string> keyNameFromLanguageName) => _keyNameFromLanguageName = keyNameFromLanguageName; } }
// Licensed to the .NET Foundation under one or more 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; namespace Microsoft.CodeAnalysis.Options { /// <summary> /// Specifies that the option should be stored into a roamed profile across machines. /// </summary> internal sealed class RoamingProfileStorageLocation : OptionStorageLocation2 { private readonly Func<string?, string> _keyNameFromLanguageName; public string GetKeyNameForLanguage(string? languageName) { var unsubstitutedKeyName = _keyNameFromLanguageName(languageName); if (languageName == null) { return unsubstitutedKeyName; } else { var substituteLanguageName = languageName == LanguageNames.CSharp ? "CSharp" : languageName == LanguageNames.VisualBasic ? "VisualBasic" : languageName; return unsubstitutedKeyName.Replace("%LANGUAGE%", substituteLanguageName); } } public RoamingProfileStorageLocation(string keyName) => _keyNameFromLanguageName = _ => keyName; /// <summary> /// Creates a <see cref="RoamingProfileStorageLocation"/> that has different key names for different languages. /// </summary> /// <param name="keyNameFromLanguageName">A function that maps from a <see cref="LanguageNames"/> value to the key name.</param> public RoamingProfileStorageLocation(Func<string?, string> keyNameFromLanguageName) => _keyNameFromLanguageName = keyNameFromLanguageName; } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Features/Core/Portable/ExtractMethod/OperationStatus`1.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.ExtractMethod { /// <summary> /// operation status paired with data /// </summary> internal class OperationStatus<T> { public OperationStatus(OperationStatus status, T data) { Status = status; Data = data; } public OperationStatus Status { get; } public T Data { get; } public OperationStatus<T> With(OperationStatus status) => new(status, Data); public OperationStatus<TNew> With<TNew>(TNew data) => new(Status, data); } }
// Licensed to the .NET Foundation under one or more 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.ExtractMethod { /// <summary> /// operation status paired with data /// </summary> internal class OperationStatus<T> { public OperationStatus(OperationStatus status, T data) { Status = status; Data = data; } public OperationStatus Status { get; } public T Data { get; } public OperationStatus<T> With(OperationStatus status) => new(status, Data); public OperationStatus<TNew> With<TNew>(TNew data) => new(Status, data); } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/Core/Portable/SemanticModelReuse/SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.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.Host.Mef; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.SemanticModelReuse { internal readonly struct SemanticModelReuseInfo { /// <summary> /// The original <em>non-speculative</em> semantic model we retrieved for this document at some point. /// </summary> public readonly SemanticModel PreviousNonSpeculativeSemanticModel; /// <summary> /// The current semantic model we retrieved <see cref="SemanticModel"/> for the <see cref="BodyNode"/>. Could /// be speculative or non-speculative. /// </summary> public readonly SemanticModel CurrentSemanticModel; /// <summary> /// The current method body we retrieved the <see cref="CurrentSemanticModel"/> for. /// </summary> public readonly SyntaxNode BodyNode; /// <summary> /// The top level version of the project when we retrieved <see cref="SemanticModel"/>. As long as this is the /// same we can continue getting speculative models to use. /// </summary> public readonly VersionStamp TopLevelSemanticVersion; public SemanticModelReuseInfo(SemanticModel previousNonSpeculativeSemanticModel, SemanticModel currentSemanticModel, SyntaxNode bodyNode, VersionStamp topLevelSementicVersion) { PreviousNonSpeculativeSemanticModel = previousNonSpeculativeSemanticModel; CurrentSemanticModel = currentSemanticModel; BodyNode = bodyNode; TopLevelSemanticVersion = topLevelSementicVersion; } } internal partial class SemanticModelReuseWorkspaceServiceFactory : IWorkspaceServiceFactory { private sealed class SemanticModelReuseWorkspaceService : ISemanticModelReuseWorkspaceService { private readonly Workspace _workspace; /// <summary> /// A mapping from a document id to the last semantic model we produced for it, along with the top level /// semantic version that that semantic model corresponds to. We can continue reusing the semantic model as /// long as no top level changes occur. /// <para> /// In general this dictionary will only contain a single key-value pair. However, in the case of linked /// documents, there will be a key-value pair for each of the independent document links that a document /// has. /// </para> /// <para> /// A <see langword="null"/> value simply means we haven't cached any information for that particular id. /// </para> /// </summary> private ImmutableDictionary<DocumentId, SemanticModelReuseInfo?> _semanticModelMap = ImmutableDictionary<DocumentId, SemanticModelReuseInfo?>.Empty; public SemanticModelReuseWorkspaceService(Workspace workspace) { _workspace = workspace; _workspace.WorkspaceChanged += (_, e) => { // if our map points at documents not in the current solution, then we want to clear things out. // this way we don't hold onto semantic models past, say, the c#/vb solutions closing. var map = _semanticModelMap; if (map.IsEmpty) return; var solution = e.NewSolution; foreach (var (docId, _) in map) { if (!solution.ContainsDocument(docId)) { _semanticModelMap = ImmutableDictionary<DocumentId, SemanticModelReuseInfo?>.Empty; return; } } }; } public async ValueTask<SemanticModel> ReuseExistingSpeculativeModelAsync(Document document, SyntaxNode node, CancellationToken cancellationToken) { var reuseService = document.GetRequiredLanguageService<ISemanticModelReuseLanguageService>(); // See if we're asking about a node actually in a method body. If so, see if we can reuse the // existing semantic model. If not, return the current semantic model for the file. var bodyNode = reuseService.TryGetContainingMethodBodyForSpeculation(node); if (bodyNode == null) return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); // We were in a method body. Compute the updated map that will contain the appropriate semantic model // for this document. // // In terms of concurrency we the map so that we can operate on it independently of other threads. When // we compute the final map, we'll grab the semantic model out of it to return (which must be correct // since we're the thread that created that map). Then, we overwrite the instance map with our final // map. This map may be stomped on by another thread, but that's fine. We don't have any sort of // ordering requirement. We just want someone to win and place the new map so that it's there for the // next caller (which is likely to use the same body node). var originalMap = _semanticModelMap; // If we already have a cached *real* semantic model for this body, then just provide that. Note: this // is also a requirement as you cannot speculate on a semantic model using a node from that same // semantic model. if (originalMap.TryGetValue(document.Id, out var reuseInfoOpt) && reuseInfoOpt.HasValue && reuseInfoOpt.Value.PreviousNonSpeculativeSemanticModel.SyntaxTree == bodyNode.SyntaxTree) { return reuseInfoOpt.Value.PreviousNonSpeculativeSemanticModel; } var updatedMap = await ComputeUpdatedMapAsync(originalMap, document, bodyNode, cancellationToken).ConfigureAwait(false); // Grab the resultant semantic model and then overwrite the existing map. We return the semantic model // from the map *we* computed so that we're isolated from other threads writing to the map stored in the // field. var info = updatedMap[document.Id]!.Value; var semanticModel = info.CurrentSemanticModel; Interlocked.CompareExchange(ref _semanticModelMap, updatedMap, originalMap); return semanticModel; } private static async Task<ImmutableDictionary<DocumentId, SemanticModelReuseInfo?>> ComputeUpdatedMapAsync( ImmutableDictionary<DocumentId, SemanticModelReuseInfo?> map, Document document, SyntaxNode bodyNode, CancellationToken cancellationToken) { var linkedIds = document.GetLinkedDocumentIds(); // Get the current top level version for this document's project. If it has changed, then we cannot // reuse any existing cached data for it. This also ensures that we can do things like find the same // method body node prior to an edit just by counting it's top-level index in the file. var topLevelSemanticVersion = await document.Project.GetDependentSemanticVersionAsync(cancellationToken).ConfigureAwait(false); // If we are able to reuse a semantic model, then ensure that this is now the semantic model we're now // pointing at for this document. var reuseInfo = await TryReuseCachedSemanticModelAsync( map, document, bodyNode, topLevelSemanticVersion, cancellationToken).ConfigureAwait(false); if (reuseInfo != null) return map.SetItem(document.Id, reuseInfo.Value); // Otherwise, we couldn't reuse that doc's cached info. Create a fresh map with that doc's real // semantic model value in it. Note: we still reuse the values stored with the other links for that // doc as they may still be valid to use. var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var builder = ImmutableDictionary.CreateBuilder<DocumentId, SemanticModelReuseInfo?>(); // Note: we are intentionally storing the semantic model instance in the speculative location as well. builder.Add(document.Id, new SemanticModelReuseInfo(semanticModel, semanticModel, bodyNode, topLevelSemanticVersion)); foreach (var linkedId in linkedIds) { // Reuse the existing cached data for any links we have as well var linkedReuseInfo = map.TryGetValue(linkedId, out var info) ? info : null; builder.Add(linkedId, linkedReuseInfo); } return builder.ToImmutable(); } private static async Task<SemanticModelReuseInfo?> TryReuseCachedSemanticModelAsync( ImmutableDictionary<DocumentId, SemanticModelReuseInfo?> map, Document document, SyntaxNode bodyNode, VersionStamp topLevelSemanticVersion, CancellationToken cancellationToken) { // if this is asking about a doc we don't know about, we can't reuse anything. if (!map.ContainsKey(document.Id)) return null; // see if this doc matches the docs we're caching information for. if (!map.TryGetValue(document.Id, out var reuseInfoOpt) || !reuseInfoOpt.HasValue) return null; var reuseInfo = reuseInfoOpt.Value; // can only reuse the cache if nothing top level changed. if (reuseInfo.TopLevelSemanticVersion != topLevelSemanticVersion) return null; // If multiple callers are asking for the exact same body, they can share the exact same semantic model. // This is valuable when several clients (like completion providers) get called at the same time on the // same method body edit. if (reuseInfo.BodyNode == bodyNode) return reuseInfo; var reuseService = document.GetRequiredLanguageService<ISemanticModelReuseLanguageService>(); var semanticModel = await reuseService.TryGetSpeculativeSemanticModelAsync(reuseInfo.PreviousNonSpeculativeSemanticModel, bodyNode, cancellationToken).ConfigureAwait(false); if (semanticModel == null) return null; return new SemanticModelReuseInfo(reuseInfo.PreviousNonSpeculativeSemanticModel, semanticModel, bodyNode, topLevelSemanticVersion); } } } }
// Licensed to the .NET Foundation under one or more 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.Host.Mef; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.SemanticModelReuse { internal readonly struct SemanticModelReuseInfo { /// <summary> /// The original <em>non-speculative</em> semantic model we retrieved for this document at some point. /// </summary> public readonly SemanticModel PreviousNonSpeculativeSemanticModel; /// <summary> /// The current semantic model we retrieved <see cref="SemanticModel"/> for the <see cref="BodyNode"/>. Could /// be speculative or non-speculative. /// </summary> public readonly SemanticModel CurrentSemanticModel; /// <summary> /// The current method body we retrieved the <see cref="CurrentSemanticModel"/> for. /// </summary> public readonly SyntaxNode BodyNode; /// <summary> /// The top level version of the project when we retrieved <see cref="SemanticModel"/>. As long as this is the /// same we can continue getting speculative models to use. /// </summary> public readonly VersionStamp TopLevelSemanticVersion; public SemanticModelReuseInfo(SemanticModel previousNonSpeculativeSemanticModel, SemanticModel currentSemanticModel, SyntaxNode bodyNode, VersionStamp topLevelSementicVersion) { PreviousNonSpeculativeSemanticModel = previousNonSpeculativeSemanticModel; CurrentSemanticModel = currentSemanticModel; BodyNode = bodyNode; TopLevelSemanticVersion = topLevelSementicVersion; } } internal partial class SemanticModelReuseWorkspaceServiceFactory : IWorkspaceServiceFactory { private sealed class SemanticModelReuseWorkspaceService : ISemanticModelReuseWorkspaceService { private readonly Workspace _workspace; /// <summary> /// A mapping from a document id to the last semantic model we produced for it, along with the top level /// semantic version that that semantic model corresponds to. We can continue reusing the semantic model as /// long as no top level changes occur. /// <para> /// In general this dictionary will only contain a single key-value pair. However, in the case of linked /// documents, there will be a key-value pair for each of the independent document links that a document /// has. /// </para> /// <para> /// A <see langword="null"/> value simply means we haven't cached any information for that particular id. /// </para> /// </summary> private ImmutableDictionary<DocumentId, SemanticModelReuseInfo?> _semanticModelMap = ImmutableDictionary<DocumentId, SemanticModelReuseInfo?>.Empty; public SemanticModelReuseWorkspaceService(Workspace workspace) { _workspace = workspace; _workspace.WorkspaceChanged += (_, e) => { // if our map points at documents not in the current solution, then we want to clear things out. // this way we don't hold onto semantic models past, say, the c#/vb solutions closing. var map = _semanticModelMap; if (map.IsEmpty) return; var solution = e.NewSolution; foreach (var (docId, _) in map) { if (!solution.ContainsDocument(docId)) { _semanticModelMap = ImmutableDictionary<DocumentId, SemanticModelReuseInfo?>.Empty; return; } } }; } public async ValueTask<SemanticModel> ReuseExistingSpeculativeModelAsync(Document document, SyntaxNode node, CancellationToken cancellationToken) { var reuseService = document.GetRequiredLanguageService<ISemanticModelReuseLanguageService>(); // See if we're asking about a node actually in a method body. If so, see if we can reuse the // existing semantic model. If not, return the current semantic model for the file. var bodyNode = reuseService.TryGetContainingMethodBodyForSpeculation(node); if (bodyNode == null) return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); // We were in a method body. Compute the updated map that will contain the appropriate semantic model // for this document. // // In terms of concurrency we the map so that we can operate on it independently of other threads. When // we compute the final map, we'll grab the semantic model out of it to return (which must be correct // since we're the thread that created that map). Then, we overwrite the instance map with our final // map. This map may be stomped on by another thread, but that's fine. We don't have any sort of // ordering requirement. We just want someone to win and place the new map so that it's there for the // next caller (which is likely to use the same body node). var originalMap = _semanticModelMap; // If we already have a cached *real* semantic model for this body, then just provide that. Note: this // is also a requirement as you cannot speculate on a semantic model using a node from that same // semantic model. if (originalMap.TryGetValue(document.Id, out var reuseInfoOpt) && reuseInfoOpt.HasValue && reuseInfoOpt.Value.PreviousNonSpeculativeSemanticModel.SyntaxTree == bodyNode.SyntaxTree) { return reuseInfoOpt.Value.PreviousNonSpeculativeSemanticModel; } var updatedMap = await ComputeUpdatedMapAsync(originalMap, document, bodyNode, cancellationToken).ConfigureAwait(false); // Grab the resultant semantic model and then overwrite the existing map. We return the semantic model // from the map *we* computed so that we're isolated from other threads writing to the map stored in the // field. var info = updatedMap[document.Id]!.Value; var semanticModel = info.CurrentSemanticModel; Interlocked.CompareExchange(ref _semanticModelMap, updatedMap, originalMap); return semanticModel; } private static async Task<ImmutableDictionary<DocumentId, SemanticModelReuseInfo?>> ComputeUpdatedMapAsync( ImmutableDictionary<DocumentId, SemanticModelReuseInfo?> map, Document document, SyntaxNode bodyNode, CancellationToken cancellationToken) { var linkedIds = document.GetLinkedDocumentIds(); // Get the current top level version for this document's project. If it has changed, then we cannot // reuse any existing cached data for it. This also ensures that we can do things like find the same // method body node prior to an edit just by counting it's top-level index in the file. var topLevelSemanticVersion = await document.Project.GetDependentSemanticVersionAsync(cancellationToken).ConfigureAwait(false); // If we are able to reuse a semantic model, then ensure that this is now the semantic model we're now // pointing at for this document. var reuseInfo = await TryReuseCachedSemanticModelAsync( map, document, bodyNode, topLevelSemanticVersion, cancellationToken).ConfigureAwait(false); if (reuseInfo != null) return map.SetItem(document.Id, reuseInfo.Value); // Otherwise, we couldn't reuse that doc's cached info. Create a fresh map with that doc's real // semantic model value in it. Note: we still reuse the values stored with the other links for that // doc as they may still be valid to use. var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var builder = ImmutableDictionary.CreateBuilder<DocumentId, SemanticModelReuseInfo?>(); // Note: we are intentionally storing the semantic model instance in the speculative location as well. builder.Add(document.Id, new SemanticModelReuseInfo(semanticModel, semanticModel, bodyNode, topLevelSemanticVersion)); foreach (var linkedId in linkedIds) { // Reuse the existing cached data for any links we have as well var linkedReuseInfo = map.TryGetValue(linkedId, out var info) ? info : null; builder.Add(linkedId, linkedReuseInfo); } return builder.ToImmutable(); } private static async Task<SemanticModelReuseInfo?> TryReuseCachedSemanticModelAsync( ImmutableDictionary<DocumentId, SemanticModelReuseInfo?> map, Document document, SyntaxNode bodyNode, VersionStamp topLevelSemanticVersion, CancellationToken cancellationToken) { // if this is asking about a doc we don't know about, we can't reuse anything. if (!map.ContainsKey(document.Id)) return null; // see if this doc matches the docs we're caching information for. if (!map.TryGetValue(document.Id, out var reuseInfoOpt) || !reuseInfoOpt.HasValue) return null; var reuseInfo = reuseInfoOpt.Value; // can only reuse the cache if nothing top level changed. if (reuseInfo.TopLevelSemanticVersion != topLevelSemanticVersion) return null; // If multiple callers are asking for the exact same body, they can share the exact same semantic model. // This is valuable when several clients (like completion providers) get called at the same time on the // same method body edit. if (reuseInfo.BodyNode == bodyNode) return reuseInfo; var reuseService = document.GetRequiredLanguageService<ISemanticModelReuseLanguageService>(); var semanticModel = await reuseService.TryGetSpeculativeSemanticModelAsync(reuseInfo.PreviousNonSpeculativeSemanticModel, bodyNode, cancellationToken).ConfigureAwait(false); if (semanticModel == null) return null; return new SemanticModelReuseInfo(reuseInfo.PreviousNonSpeculativeSemanticModel, semanticModel, bodyNode, topLevelSemanticVersion); } } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/VisualBasic/Portable/Symbols/Source/UnboundLambdaParameterSymbol.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.Generic Imports System.Collections.ObjectModel Imports System.Threading Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols ''' <summary> ''' Represents a Lambda parameter for an UnboundLambda. ''' </summary> Friend Class UnboundLambdaParameterSymbol Inherits LambdaParameterSymbol Private ReadOnly _identifierSyntax As ModifiedIdentifierSyntax Private ReadOnly _typeSyntax As SyntaxNodeOrToken Private Sub New( name As String, ordinal As Integer, type As TypeSymbol, location As Location, flags As SourceParameterFlags, identifierSyntax As ModifiedIdentifierSyntax, typeSyntax As SyntaxNodeOrToken ) MyBase.New(name, ordinal, type, ((flags And SourceParameterFlags.ByRef) <> 0), location) _identifierSyntax = identifierSyntax _typeSyntax = typeSyntax End Sub Public ReadOnly Property IdentifierSyntax As SyntaxToken Get Return _identifierSyntax.Identifier End Get End Property Public ReadOnly Property Syntax As ModifiedIdentifierSyntax Get Return _identifierSyntax End Get End Property Public ReadOnly Property TypeSyntax As SyntaxNodeOrToken Get Return _typeSyntax End Get End Property Public Overrides ReadOnly Property ContainingSymbol As Symbol Get Return Nothing End Get End Property ' Create a parameter from syntax. Friend Shared Function CreateFromSyntax(syntax As ParameterSyntax, name As String, flags As SourceParameterFlags, ordinal As Integer, binder As Binder, diagBag As BindingDiagnosticBag) As ParameterSymbol If (flags And SourceParameterFlags.ParamArray) <> 0 Then ' 'Lambda' parameters cannot be declared 'ParamArray'. Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.ParamArrayKeyword), ERRID.ERR_ParamArrayIllegal1, StringConstants.Lambda) End If If (flags And SourceParameterFlags.Optional) <> 0 Then ' 'Lambda' parameters cannot be declared 'Optional'. Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.OptionalKeyword), ERRID.ERR_OptionalIllegal1, StringConstants.Lambda) End If If syntax.AttributeLists.Node IsNot Nothing Then Binder.ReportDiagnostic(diagBag, syntax.AttributeLists.Node, ERRID.ERR_LambdasCannotHaveAttributes) End If 'TODO: Should report the following error for Option Strict, but not here, after inference. ' BC36642: Option Strict On requires each lambda expression parameter to be declared with an 'As' clause if its type cannot be inferred. Dim getErrorInfo As Func(Of DiagnosticInfo) = Nothing Dim paramType As TypeSymbol = binder.DecodeModifiedIdentifierType(syntax.Identifier, syntax.AsClause, Nothing, getErrorInfo, diagBag, Binder.ModifiedIdentifierTypeDecoderContext.LambdaParameterType) ' Preserve the fact that parameter doesn't have explicitly provided type. ' DecodeModifiedIdentifierType returns System.Object if there was no type character and there was no an 'As' clause. ' Type character can never produce System.Object, so System.Object clearly indicates that type character is not present. If paramType.IsObjectType() AndAlso syntax.AsClause Is Nothing Then paramType = Nothing End If Return New UnboundLambdaParameterSymbol(name, ordinal, paramType, syntax.Identifier.Identifier.GetLocation(), flags, syntax.Identifier, If(syntax.AsClause Is Nothing, CType(syntax.Identifier, SyntaxNodeOrToken), syntax.AsClause.Type)) End Function Private Shared Function GetModifierToken(modifiers As SyntaxTokenList, tokenKind As SyntaxKind) As SyntaxToken For Each keywordSyntax In modifiers If keywordSyntax.Kind = tokenKind Then Return keywordSyntax End If Next 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.Generic Imports System.Collections.ObjectModel Imports System.Threading Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols ''' <summary> ''' Represents a Lambda parameter for an UnboundLambda. ''' </summary> Friend Class UnboundLambdaParameterSymbol Inherits LambdaParameterSymbol Private ReadOnly _identifierSyntax As ModifiedIdentifierSyntax Private ReadOnly _typeSyntax As SyntaxNodeOrToken Private Sub New( name As String, ordinal As Integer, type As TypeSymbol, location As Location, flags As SourceParameterFlags, identifierSyntax As ModifiedIdentifierSyntax, typeSyntax As SyntaxNodeOrToken ) MyBase.New(name, ordinal, type, ((flags And SourceParameterFlags.ByRef) <> 0), location) _identifierSyntax = identifierSyntax _typeSyntax = typeSyntax End Sub Public ReadOnly Property IdentifierSyntax As SyntaxToken Get Return _identifierSyntax.Identifier End Get End Property Public ReadOnly Property Syntax As ModifiedIdentifierSyntax Get Return _identifierSyntax End Get End Property Public ReadOnly Property TypeSyntax As SyntaxNodeOrToken Get Return _typeSyntax End Get End Property Public Overrides ReadOnly Property ContainingSymbol As Symbol Get Return Nothing End Get End Property ' Create a parameter from syntax. Friend Shared Function CreateFromSyntax(syntax As ParameterSyntax, name As String, flags As SourceParameterFlags, ordinal As Integer, binder As Binder, diagBag As BindingDiagnosticBag) As ParameterSymbol If (flags And SourceParameterFlags.ParamArray) <> 0 Then ' 'Lambda' parameters cannot be declared 'ParamArray'. Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.ParamArrayKeyword), ERRID.ERR_ParamArrayIllegal1, StringConstants.Lambda) End If If (flags And SourceParameterFlags.Optional) <> 0 Then ' 'Lambda' parameters cannot be declared 'Optional'. Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.OptionalKeyword), ERRID.ERR_OptionalIllegal1, StringConstants.Lambda) End If If syntax.AttributeLists.Node IsNot Nothing Then Binder.ReportDiagnostic(diagBag, syntax.AttributeLists.Node, ERRID.ERR_LambdasCannotHaveAttributes) End If 'TODO: Should report the following error for Option Strict, but not here, after inference. ' BC36642: Option Strict On requires each lambda expression parameter to be declared with an 'As' clause if its type cannot be inferred. Dim getErrorInfo As Func(Of DiagnosticInfo) = Nothing Dim paramType As TypeSymbol = binder.DecodeModifiedIdentifierType(syntax.Identifier, syntax.AsClause, Nothing, getErrorInfo, diagBag, Binder.ModifiedIdentifierTypeDecoderContext.LambdaParameterType) ' Preserve the fact that parameter doesn't have explicitly provided type. ' DecodeModifiedIdentifierType returns System.Object if there was no type character and there was no an 'As' clause. ' Type character can never produce System.Object, so System.Object clearly indicates that type character is not present. If paramType.IsObjectType() AndAlso syntax.AsClause Is Nothing Then paramType = Nothing End If Return New UnboundLambdaParameterSymbol(name, ordinal, paramType, syntax.Identifier.Identifier.GetLocation(), flags, syntax.Identifier, If(syntax.AsClause Is Nothing, CType(syntax.Identifier, SyntaxNodeOrToken), syntax.AsClause.Type)) End Function Private Shared Function GetModifierToken(modifiers As SyntaxTokenList, tokenKind As SyntaxKind) As SyntaxToken For Each keywordSyntax In modifiers If keywordSyntax.Kind = tokenKind Then Return keywordSyntax End If Next Throw ExceptionUtilities.Unreachable End Function End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/VisualBasicTest/SimplifyTypeNames/SimplifyTypeNamesTests_FixAllTests.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.CodeStyle Imports Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Diagnostics Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.SimplifyTypeNames Public Class SimplifyTypeNamesTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInDocument() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As {|FixAllInDocument:System.Int32|} = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, options:=PreferIntrinsicPredefinedTypeEverywhere()) End Function <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInProject() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As {|FixAllInProject:System.Int32|} = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, options:=PreferIntrinsicPredefinedTypeEverywhere()) End Function <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInSolution() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As {|FixAllInSolution:System.Int32|} = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, options:=PreferIntrinsicPredefinedTypeEverywhere()) End Function <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInSolution_SimplifyMemberAccess() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class ProgramA Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z {|FixAllInSolution:System.Console.Write|}(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class ]]> </Document> <Document><![CDATA[ Imports System Class ProgramA2 Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB2 Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class ProgramA3 Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB3 Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class ProgramA Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class ]]> </Document> <Document><![CDATA[ Imports System Class ProgramA2 Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB2 Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class ProgramA3 Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB3 Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, 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.CodeStyle Imports Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Diagnostics Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.SimplifyTypeNames Public Class SimplifyTypeNamesTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInDocument() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As {|FixAllInDocument:System.Int32|} = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, options:=PreferIntrinsicPredefinedTypeEverywhere()) End Function <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInProject() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As {|FixAllInProject:System.Int32|} = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, options:=PreferIntrinsicPredefinedTypeEverywhere()) End Function <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInSolution() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As {|FixAllInSolution:System.Int32|} = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As System.Int32, y As System.Int16) As System.Int32 Dim i1 As System.Int32 = 0 Dim s1 As System.Int16 = 0 Dim i2 As System.Int32 = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class Program Private Shared Function F(x As Integer, y As Short) As Integer Dim i1 As Integer = 0 Dim s1 As Short = 0 Dim i2 As Integer = 0 Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, options:=PreferIntrinsicPredefinedTypeEverywhere()) End Function <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInSolution_SimplifyMemberAccess() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class ProgramA Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z {|FixAllInSolution:System.Console.Write|}(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class ]]> </Document> <Document><![CDATA[ Imports System Class ProgramA2 Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB2 Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class ProgramA3 Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB3 Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 System.Console.Write(i1 + s1 + i2) System.Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ Imports System Class ProgramA Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class ]]> </Document> <Document><![CDATA[ Imports System Class ProgramA2 Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB2 Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Class ProgramA3 Dim x As Integer = 0 Dim y As Integer = 0 Dim z As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x Dim s1 As System.Int16 = Me.y Dim i2 As System.Int32 = Me.z Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class Class ProgramB3 Dim x2 As Integer = 0 Dim y2 As Integer = 0 Dim z2 As Integer = 0 Private Function F(p1 As System.Int32, p2 As System.Int16) As System.Int32 Dim i1 As System.Int32 = Me.x2 Dim s1 As System.Int16 = Me.y2 Dim i2 As System.Int32 = Me.z2 Console.Write(i1 + s1 + i2) Console.WriteLine(i1 + s1 + i2) Dim ex As System.Exception = Nothing Return i1 + s1 + i2 End Function End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected) End Function End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/CSharpTest2/Recommendations/FromKeywordRecommenderTests.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 Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Recommendations { public class FromKeywordRecommenderTests : KeywordRecommenderTests { [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtRoot_Interactive() { await VerifyKeywordAsync(SourceCodeKind.Script, @"$$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterClass_Interactive() { await VerifyKeywordAsync(SourceCodeKind.Script, @"class C { } $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterGlobalStatement_Interactive() { await VerifyKeywordAsync(SourceCodeKind.Script, @"System.Console.WriteLine(); $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterGlobalVariableDeclaration_Interactive() { await VerifyKeywordAsync(SourceCodeKind.Script, @"int i = 0; $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInUsingAlias() { await VerifyAbsenceAsync( @"using Goo = $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInGlobalUsingAlias() { await VerifyAbsenceAsync( @"global using Goo = $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInEmptyStatement() { await VerifyAbsenceAsync(AddInsideMethod( @"$$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInEmptySpace() { await VerifyKeywordAsync(AddInsideMethod( @"var v = $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterIdentifier() { await VerifyKeywordAsync(AddInsideMethod( @"var v = a$$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNestedInQueryExpression() { await VerifyKeywordAsync(AddInsideMethod( @"var q = from x in $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterFrom() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterPreviousClause() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y where x > y $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterPreviousContinuationClause() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y group x by y into g $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotAfterFrom1() { await VerifyAbsenceAsync(AddInsideMethod( @"var v = from $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotAfterFrom2() { await VerifyAbsenceAsync(AddInsideMethod( @"var v = from a in y from $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestBetweenClauses() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y $$ from z in w")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestContinueInSelect() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y select $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestBetweenTokens() { await VerifyKeywordAsync(AddInsideMethod( @"var v =$$;")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInDeclaration() { await VerifyAbsenceAsync(AddInsideMethod( @"int $$")); } [WorkItem(538264, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538264")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInEnumMemberInitializer1() { await VerifyAbsenceAsync( @"enum E { a = $$ }"); } [WorkItem(538264, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538264")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInConstMemberInitializer1() { await VerifyAbsenceAsync( @"class E { const int a = $$ }"); } [WorkItem(538264, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538264")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMemberInitializer1() { await VerifyKeywordAsync( @"class E { int a = $$ }"); } [WorkItem(538804, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538804")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInTypeOf() { await VerifyAbsenceAsync(AddInsideMethod( @"typeof($$")); } [WorkItem(538804, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538804")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInDefault() { await VerifyAbsenceAsync(AddInsideMethod( @"default($$")); } [WorkItem(538804, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538804")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInSizeOf() { await VerifyAbsenceAsync(AddInsideMethod( @"sizeof($$")); } [WorkItem(544219, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544219")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInObjectInitializerMemberContext() { await VerifyAbsenceAsync(@" class C { public int x, y; void M() { var c = new C { x = 2, y = 3, $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotAfterOutInArgument() { var experimentalFeatures = new System.Collections.Generic.Dictionary<string, string>(); // no experimental features to enable await VerifyAbsenceAsync(@" class C { void M(out int x) { x = 42; } void N() { M(out var $$", options: Options.Regular.WithFeatures(experimentalFeatures), scriptOptions: Options.Script.WithFeatures(experimentalFeatures)); } } }
// Licensed to the .NET Foundation under one or more 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 Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Recommendations { public class FromKeywordRecommenderTests : KeywordRecommenderTests { [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtRoot_Interactive() { await VerifyKeywordAsync(SourceCodeKind.Script, @"$$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterClass_Interactive() { await VerifyKeywordAsync(SourceCodeKind.Script, @"class C { } $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterGlobalStatement_Interactive() { await VerifyKeywordAsync(SourceCodeKind.Script, @"System.Console.WriteLine(); $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterGlobalVariableDeclaration_Interactive() { await VerifyKeywordAsync(SourceCodeKind.Script, @"int i = 0; $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInUsingAlias() { await VerifyAbsenceAsync( @"using Goo = $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInGlobalUsingAlias() { await VerifyAbsenceAsync( @"global using Goo = $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInEmptyStatement() { await VerifyAbsenceAsync(AddInsideMethod( @"$$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInEmptySpace() { await VerifyKeywordAsync(AddInsideMethod( @"var v = $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterIdentifier() { await VerifyKeywordAsync(AddInsideMethod( @"var v = a$$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNestedInQueryExpression() { await VerifyKeywordAsync(AddInsideMethod( @"var q = from x in $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterFrom() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterPreviousClause() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y where x > y $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterPreviousContinuationClause() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y group x by y into g $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotAfterFrom1() { await VerifyAbsenceAsync(AddInsideMethod( @"var v = from $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotAfterFrom2() { await VerifyAbsenceAsync(AddInsideMethod( @"var v = from a in y from $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestBetweenClauses() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y $$ from z in w")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestContinueInSelect() { await VerifyKeywordAsync(AddInsideMethod( @"var v = from x in y select $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestBetweenTokens() { await VerifyKeywordAsync(AddInsideMethod( @"var v =$$;")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInDeclaration() { await VerifyAbsenceAsync(AddInsideMethod( @"int $$")); } [WorkItem(538264, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538264")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInEnumMemberInitializer1() { await VerifyAbsenceAsync( @"enum E { a = $$ }"); } [WorkItem(538264, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538264")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInConstMemberInitializer1() { await VerifyAbsenceAsync( @"class E { const int a = $$ }"); } [WorkItem(538264, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538264")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMemberInitializer1() { await VerifyKeywordAsync( @"class E { int a = $$ }"); } [WorkItem(538804, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538804")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInTypeOf() { await VerifyAbsenceAsync(AddInsideMethod( @"typeof($$")); } [WorkItem(538804, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538804")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInDefault() { await VerifyAbsenceAsync(AddInsideMethod( @"default($$")); } [WorkItem(538804, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538804")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInSizeOf() { await VerifyAbsenceAsync(AddInsideMethod( @"sizeof($$")); } [WorkItem(544219, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544219")] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotInObjectInitializerMemberContext() { await VerifyAbsenceAsync(@" class C { public int x, y; void M() { var c = new C { x = 2, y = 3, $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestNotAfterOutInArgument() { var experimentalFeatures = new System.Collections.Generic.Dictionary<string, string>(); // no experimental features to enable await VerifyAbsenceAsync(@" class C { void M(out int x) { x = 42; } void N() { M(out var $$", options: Options.Regular.WithFeatures(experimentalFeatures), scriptOptions: Options.Script.WithFeatures(experimentalFeatures)); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/CSharp/ExtractMethod/ExtractMethodCommandHandler.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.ComponentModel.Composition; using Microsoft.CodeAnalysis.Editor.Implementation.ExtractMethod; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudio.Commanding; using Microsoft.VisualStudio.Text.Operations; using Microsoft.VisualStudio.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.ExtractMethod { [Export(typeof(ICommandHandler))] [ContentType(ContentTypeNames.CSharpContentType)] [Name(PredefinedCommandHandlerNames.ExtractMethod)] [Order(After = PredefinedCommandHandlerNames.DocumentationComments)] internal class ExtractMethodCommandHandler : AbstractExtractMethodCommandHandler { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public ExtractMethodCommandHandler( IThreadingContext threadingContext, ITextBufferUndoManagerProvider undoManager, IInlineRenameService renameService) : base(threadingContext, undoManager, renameService) { } } }
// Licensed to the .NET Foundation under one or more 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.ComponentModel.Composition; using Microsoft.CodeAnalysis.Editor.Implementation.ExtractMethod; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudio.Commanding; using Microsoft.VisualStudio.Text.Operations; using Microsoft.VisualStudio.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.ExtractMethod { [Export(typeof(ICommandHandler))] [ContentType(ContentTypeNames.CSharpContentType)] [Name(PredefinedCommandHandlerNames.ExtractMethod)] [Order(After = PredefinedCommandHandlerNames.DocumentationComments)] internal class ExtractMethodCommandHandler : AbstractExtractMethodCommandHandler { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public ExtractMethodCommandHandler( IThreadingContext threadingContext, ITextBufferUndoManagerProvider undoManager, IInlineRenameService renameService) : base(threadingContext, undoManager, renameService) { } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.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="../CodeFixesResources.resx"> <body> <trans-unit id="Add_blank_line_after_block"> <source>Add blank line after block</source> <target state="translated">Aggiungi una riga vuota dopo il blocco</target> <note /> </trans-unit> <trans-unit id="Add_both"> <source>Add both</source> <target state="translated">Aggiungi entrambi</target> <note /> </trans-unit> <trans-unit id="Add_default_case"> <source>Add default case</source> <target state="translated">Aggiungi case predefinito</target> <note /> </trans-unit> <trans-unit id="Add_file_header"> <source>Add file header</source> <target state="translated">Aggiungi intestazione del file</target> <note /> </trans-unit> <trans-unit id="Fix_Name_Violation_colon_0"> <source>Fix Name Violation: {0}</source> <target state="translated">Correggi violazione del nome: {0}</target> <note /> </trans-unit> <trans-unit id="Fix_all_occurrences_in"> <source>Fix all occurrences in</source> <target state="translated">Correggi tutte le occorrenze in</target> <note /> </trans-unit> <trans-unit id="Remove_extra_blank_lines"> <source>Remove extra blank lines</source> <target state="translated">Rimuovere le righe vuote aggiuntive</target> <note /> </trans-unit> <trans-unit id="Remove_redundant_assignment"> <source>Remove redundant assignment</source> <target state="translated">Rimuovi l'assegnazione ridondante</target> <note /> </trans-unit> <trans-unit id="Suppress_or_Configure_issues"> <source>Suppress or Configure issues</source> <target state="translated">Elimina o configura problemi</target> <note /> </trans-unit> <trans-unit id="Update_suppression_format"> <source>Update suppression format</source> <target state="translated">Aggiorna il formato di eliminazione</target> <note /> </trans-unit> <trans-unit id="Use_discard_underscore"> <source>Use discard '_'</source> <target state="translated">Usa '_' rimosso</target> <note /> </trans-unit> <trans-unit id="Use_discarded_local"> <source>Use discarded local</source> <target state="translated">Usa variabili locali rimosse</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="../CodeFixesResources.resx"> <body> <trans-unit id="Add_blank_line_after_block"> <source>Add blank line after block</source> <target state="translated">Aggiungi una riga vuota dopo il blocco</target> <note /> </trans-unit> <trans-unit id="Add_both"> <source>Add both</source> <target state="translated">Aggiungi entrambi</target> <note /> </trans-unit> <trans-unit id="Add_default_case"> <source>Add default case</source> <target state="translated">Aggiungi case predefinito</target> <note /> </trans-unit> <trans-unit id="Add_file_header"> <source>Add file header</source> <target state="translated">Aggiungi intestazione del file</target> <note /> </trans-unit> <trans-unit id="Fix_Name_Violation_colon_0"> <source>Fix Name Violation: {0}</source> <target state="translated">Correggi violazione del nome: {0}</target> <note /> </trans-unit> <trans-unit id="Fix_all_occurrences_in"> <source>Fix all occurrences in</source> <target state="translated">Correggi tutte le occorrenze in</target> <note /> </trans-unit> <trans-unit id="Remove_extra_blank_lines"> <source>Remove extra blank lines</source> <target state="translated">Rimuovere le righe vuote aggiuntive</target> <note /> </trans-unit> <trans-unit id="Remove_redundant_assignment"> <source>Remove redundant assignment</source> <target state="translated">Rimuovi l'assegnazione ridondante</target> <note /> </trans-unit> <trans-unit id="Suppress_or_Configure_issues"> <source>Suppress or Configure issues</source> <target state="translated">Elimina o configura problemi</target> <note /> </trans-unit> <trans-unit id="Update_suppression_format"> <source>Update suppression format</source> <target state="translated">Aggiorna il formato di eliminazione</target> <note /> </trans-unit> <trans-unit id="Use_discard_underscore"> <source>Use discard '_'</source> <target state="translated">Usa '_' rimosso</target> <note /> </trans-unit> <trans-unit id="Use_discarded_local"> <source>Use discarded local</source> <target state="translated">Usa variabili locali rimosse</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/CSharp/Test/Symbol/Symbols/Metadata/PE/DynamicTransformsTests.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 Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols.Metadata.PE { public class DynamicTransformsTests : CSharpTestBase { private AssemblySymbol _assembly; private NamedTypeSymbol _base0Class, _base1Class, _base2Class, _derivedClass; private NamedTypeSymbol _outerClass, _innerClass, _innerInnerClass; private NamedTypeSymbol _outer2Class, _inner2Class, _innerInner2Class; private NamedTypeSymbol _outer3Class, _inner3Class; private NamedTypeSymbol _objectType, _intType; private static readonly DynamicTypeSymbol s_dynamicType = DynamicTypeSymbol.Instance; private void CommonTestInitialization() { _assembly = MetadataTestHelpers.GetSymbolsForReferences( TestReferences.SymbolsTests.Metadata.DynamicAttributeLib, TestMetadata.Net451.mscorlib)[0]; _base0Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Base0"); _base1Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Base1"); _base2Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Base2"); _derivedClass = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); _outerClass = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Outer"); _innerClass = _outerClass.GetTypeMember("Inner"); _innerInnerClass = _innerClass.GetTypeMember("InnerInner"); _outer2Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Outer2"); _inner2Class = _outer2Class.GetTypeMember("Inner2"); _innerInner2Class = _inner2Class.GetTypeMember("InnerInner2"); _outer3Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Outer3"); _inner3Class = _outer3Class.GetTypeMember("Inner3"); _objectType = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Object); _intType = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Int32); } [Fact] public void TestBaseTypeDynamicTransforms() { CommonTestInitialization(); // public class Base0 { } Assert.Equal(_objectType, _base0Class.BaseType()); Assert.False(_base0Class.ContainsDynamic()); // public class Base1<T> { } Assert.Equal(_objectType, _base1Class.BaseType()); Assert.False(_base1Class.ContainsDynamic()); // public class Base2<T, U> { } Assert.Equal(_objectType, _base2Class.BaseType()); Assert.False(_base2Class.ContainsDynamic()); // public class Derived<T> : Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic> where T : Derived<T> { ... } Assert.False(_derivedClass.ContainsDynamic()); Assert.True(_derivedClass.BaseType().ContainsDynamic()); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic> var t = _derivedClass.TypeParameters[0]; var arrayOfT = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(t)); var innerClassOfTArrDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfT, s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[] var memberInnerInnerOfInt = innerClassOfTArrDynamic.GetTypeMember("InnerInner").Construct(_intType); var arrayOfInnerInnerOfInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(memberInnerInnerOfInt)); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic> var memberComplicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfInnerInnerOfInt, s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic> var memberInnerInnerOfDynamic = memberComplicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); Assert.Equal(memberInnerInnerOfDynamic, _derivedClass.BaseType()); // public class Outer<T> : Base1<dynamic> Assert.False(_outerClass.ContainsDynamic()); Assert.True(_outerClass.BaseType().ContainsDynamic()); var base1OfDynamic = _base1Class.Construct(s_dynamicType); Assert.Equal(base1OfDynamic, _outerClass.BaseType()); // public class Inner<U, V> : Base2<dynamic, V> Assert.False(_innerClass.ContainsDynamic()); Assert.True(_innerClass.BaseType().ContainsDynamic()); var base2OfDynamicV = _base2Class.Construct(s_dynamicType, _innerClass.TypeParameters[1]); Assert.Equal(base2OfDynamicV, _innerClass.BaseType()); // public class InnerInner<W> : Base1<dynamic> { } Assert.False(_innerInnerClass.ContainsDynamic()); Assert.True(_innerInnerClass.BaseType().ContainsDynamic()); Assert.Equal(base1OfDynamic, _innerInnerClass.BaseType()); // public class Outer2<T> : Base1<dynamic> Assert.False(_outer2Class.ContainsDynamic()); Assert.True(_outer2Class.BaseType().ContainsDynamic()); Assert.Equal(base1OfDynamic, _outer2Class.BaseType()); // public class Inner2<U, V> : Base0 Assert.False(_inner2Class.ContainsDynamic()); Assert.False(_inner2Class.BaseType().ContainsDynamic()); Assert.Equal(_base0Class, _inner2Class.BaseType()); // public class InnerInner2<W> : Base0 { } Assert.False(_innerInner2Class.ContainsDynamic()); Assert.False(_innerInner2Class.BaseType().ContainsDynamic()); Assert.Equal(_base0Class, _innerInner2Class.BaseType()); // public class Inner3<U> Assert.False(_inner3Class.ContainsDynamic()); } [Fact] public void TestFieldDynamicTransforms() { CommonTestInitialization(); //public static dynamic field1; var field1 = _derivedClass.GetMember<FieldSymbol>("field1"); Assert.Equal(s_dynamicType, field1.Type); //public static dynamic[] field2; var field2 = _derivedClass.GetMember<FieldSymbol>("field2"); var arrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(s_dynamicType), 1); Assert.Equal(arrayOfDynamic, field2.Type); //public static dynamic[][] field3; var field3 = _derivedClass.GetMember<FieldSymbol>("field3"); var arrayOfArrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(arrayOfDynamic), 1); Assert.Equal(arrayOfArrayOfDynamic, field3.Type); //public const dynamic field4 = null; var field4 = _derivedClass.GetMember<FieldSymbol>("field4"); Assert.Equal(s_dynamicType, field4.Type); //public const dynamic[] field5 = null; var field5 = _derivedClass.GetMember<FieldSymbol>("field5"); Assert.Equal(arrayOfDynamic, field5.Type); //public const dynamic[][] field6 = null; var field6 = _derivedClass.GetMember<FieldSymbol>("field6"); Assert.Equal(arrayOfArrayOfDynamic, field6.Type); //public const dynamic[][] field7 = null; var field7 = _derivedClass.GetMember<FieldSymbol>("field7"); Assert.Equal(arrayOfArrayOfDynamic, field7.Type); //public Outer<T>.Inner<int, T>.InnerInner<Outer<dynamic>> field8 = null; var field8 = _derivedClass.GetMember<FieldSymbol>("field8"); var derivedTypeParam = _derivedClass.TypeParameters[0]; var outerOfT = _outerClass.Construct(derivedTypeParam); var innerOfIntOfTWithOuterT = outerOfT.GetTypeMember("Inner").Construct(_intType, derivedTypeParam); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); var complicatedInnerInner = innerOfIntOfTWithOuterT.GetTypeMember("InnerInner").Construct(outerClassOfDynamic); Assert.Equal(complicatedInnerInner, field8.Type); //public Outer<dynamic>.Inner<T, T>.InnerInner<T> field9 = null; var field9 = _derivedClass.GetMember<FieldSymbol>("field9"); var innerOfTTWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(derivedTypeParam, derivedTypeParam); complicatedInnerInner = innerOfTTWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(derivedTypeParam); Assert.Equal(complicatedInnerInner, field9.Type); //public Outer<Outer<dynamic>.Inner<T, dynamic>>.Inner<dynamic, T>.InnerInner<T> field10 = null; var field10 = _derivedClass.GetMember<FieldSymbol>("field10"); // Outer<dynamic>.Inner<T, dynamic> var innerOfTDynamicWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(derivedTypeParam, s_dynamicType); // Outer<Outer<dynamic>.Inner<T, dynamic>> var complicatedOuter = _outerClass.Construct(innerOfTDynamicWithOuterOfDynamic); // Outer<Outer<dynamic>.Inner<T, dynamic>>.Inner<dynamic, T> var complicatedInner = complicatedOuter.GetTypeMember("Inner").Construct(s_dynamicType, derivedTypeParam); complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(derivedTypeParam); Assert.Equal(complicatedInnerInner, field10.Type); //public Outer<T>.Inner<dynamic, dynamic>.InnerInner<T> field11 = null; var field11 = _derivedClass.GetMember<FieldSymbol>("field11"); // Outer<T>.Inner<dynamic, dynamic> var innerOfDynamicDynamicWithOuterOfT = outerOfT.GetTypeMember("Inner").Construct(s_dynamicType, s_dynamicType); complicatedInnerInner = innerOfDynamicDynamicWithOuterOfT.GetTypeMember("InnerInner").Construct(derivedTypeParam); Assert.Equal(complicatedInnerInner, field11.Type); //public Outer<T>.Inner<T, T>.InnerInner<Outer<dynamic>.Inner<T, dynamic>.InnerInner<int>> field12 = null; var field12 = _derivedClass.GetMember<FieldSymbol>("field12"); // Outer<T>.Inner<T, T> var innerOfTTWithOuterOfT = outerOfT.GetTypeMember("Inner").Construct(derivedTypeParam, derivedTypeParam); // Outer<dynamic>.Inner<T, dynamic>.InnerInner<int> complicatedInnerInner = innerOfTDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(_intType); complicatedInnerInner = innerOfTTWithOuterOfT.GetTypeMember("InnerInner").Construct(complicatedInnerInner); Assert.Equal(complicatedInnerInner, field12.Type); //public Outer<dynamic>.Inner<Outer<T>, T>.InnerInner<dynamic> field13 = null; var field13 = _derivedClass.GetMember<FieldSymbol>("field13"); // Outer<dynamic>.Inner<Outer<T>, T> var innerOfOuterOfTTWithOuterDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(outerOfT, derivedTypeParam); complicatedInnerInner = innerOfOuterOfTTWithOuterDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); Assert.Equal(complicatedInnerInner, field13.Type); //public Outer<dynamic>.Inner<dynamic, dynamic>.InnerInner<dynamic> field14 = null; var field14 = _derivedClass.GetMember<FieldSymbol>("field14"); // Outer<dynamic>.Inner<dynamic, dynamic> var innerOfDynamicDynamicWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(s_dynamicType, s_dynamicType); complicatedInnerInner = innerOfDynamicDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); Assert.Equal(complicatedInnerInner, field14.Type); //public Outer<dynamic>.Inner<Outer<dynamic>, T>.InnerInner<dynamic>[] field15 = null; var field15 = _derivedClass.GetMember<FieldSymbol>("field15"); // Outer<dynamic>.Inner<Outer<dynamic>, T> var innerOfOuterOfDynamicTWithOuterDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(outerClassOfDynamic, derivedTypeParam); // Outer<dynamic>.Inner<Outer<dynamic>, T>.InnerInner<dynamic> complicatedInnerInner = innerOfOuterOfDynamicTWithOuterDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); Assert.Equal(complicatedInnerInnerArray, field15.Type); //public Outer<dynamic>.Inner<Outer<dynamic>.Inner<T, dynamic.InnerInner<int>, dynamic[]>.InnerInner<dynamic>[][] field16 = null; var field16 = _derivedClass.GetMember<FieldSymbol>("field16"); // Outer<dynamic>.Inner<T, dynamic>.InnerInner<int> complicatedInnerInner = innerOfTDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(_intType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T, dynamic>.InnerInner<int>, dynamic[]> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInner, arrayOfDynamic); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T, dynamic>.InnerInner<int>, dynamic[]>.InnerInner<dynamic> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray), 1); Assert.Equal(complicatedInnerInnerArrayOfArray, field16.Type); //public static Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] field17 = null; var field17 = _derivedClass.GetMember<FieldSymbol>("field17"); // T[] var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(derivedTypeParam), 1); // Outer<dynamic>.Inner<T[], dynamic> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(_intType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[] complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray), 1); Assert.Equal(complicatedInnerInnerArrayOfArray, field17.Type); //public static Outer3.Inner3<dynamic> field1 = null; field1 = _inner3Class.GetMember<FieldSymbol>("field1"); var inner3OfDynamic = _inner3Class.Construct(s_dynamicType); Assert.Equal(inner3OfDynamic, field1.Type); } [Fact] public void TestReturnValueParameterAndPropertyTransforms() { CommonTestInitialization(); //public static dynamic F1(dynamic x) { return x; } var f1 = _derivedClass.GetMember<MethodSymbol>("F1"); Assert.Equal(s_dynamicType, f1.ReturnType); Assert.Equal(s_dynamicType, f1.GetParameterType(0)); //public static dynamic F2(ref dynamic x) { return x; } var f2 = _derivedClass.GetMember<MethodSymbol>("F2"); Assert.Equal(s_dynamicType, f2.ReturnType); Assert.Equal(s_dynamicType, f2.GetParameterType(0)); Assert.Equal(RefKind.Ref, f2.Parameters[0].RefKind); //public static dynamic[] F3(dynamic[] x) { return x; } var f3 = _derivedClass.GetMember<MethodSymbol>("F3"); var arrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(s_dynamicType)); Assert.Equal(arrayOfDynamic, f3.ReturnType); Assert.Equal(arrayOfDynamic, f3.GetParameterType(0)); Assert.Equal(RefKind.None, f3.Parameters[0].RefKind); var derivedTypeParam = _derivedClass.TypeParameters[0]; var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(derivedTypeParam)); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic> var complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int> var complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(_intType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[] var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner)); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner)); var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray)); //public static Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] F4(Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] x) { return x; } var f4 = _derivedClass.GetMember<MethodSymbol>("F4"); Assert.Equal(complicatedInnerInnerArrayOfArray, f4.ReturnType); Assert.Equal(complicatedInnerInnerArrayOfArray, f4.GetParameterType(0)); Assert.Equal(RefKind.None, f4.Parameters[0].RefKind); //public static dynamic Prop1 { get { return field1; } } var prop1 = _derivedClass.GetMember<PropertySymbol>("Prop1"); Assert.Equal(s_dynamicType, prop1.Type); Assert.Equal(s_dynamicType, prop1.GetMethod.ReturnType); //public static Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] Prop2 { get { return field17; } set { field17 = value; } } var prop2 = _derivedClass.GetMember<PropertySymbol>("Prop2"); Assert.Equal(complicatedInnerInnerArrayOfArray, prop2.Type); Assert.Equal(complicatedInnerInnerArrayOfArray, prop2.GetMethod.ReturnType); Assert.Equal(SpecialType.System_Void, prop2.SetMethod.ReturnType.SpecialType); Assert.Equal(complicatedInnerInnerArrayOfArray, prop2.SetMethod.GetParameterType(0)); } [Fact] public void TestPointerTypeTransforms() { CommonTestInitialization(); // public unsafe class UnsafeClass<T> : Base2<int*[], Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic>.InnerInner<dynamic>[][]> { } var unsafeClass = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("UnsafeClass"); Assert.False(unsafeClass.ContainsDynamic()); Assert.True(unsafeClass.BaseType().ContainsDynamic()); var unsafeClassTypeParam = unsafeClass.TypeParameters[0]; // T[] var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(unsafeClassTypeParam), 1); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic> var complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); // int*[] var pointerToInt = new PointerTypeSymbol(TypeWithAnnotations.Create(_intType)); var arrayOfPointerToInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(pointerToInt), 1); // int*[][] var arrayOfArrayOfPointerToInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(arrayOfPointerToInt), 1); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]> var complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(arrayOfArrayOfPointerToInt); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[] var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic>.InnerInner<dynamic> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic>.InnerInner<dynamic>[][] complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray), 1); // Base2<int*[], Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic>.InnerInner<dynamic>[][]> var baseType = _base2Class.Construct(arrayOfPointerToInt, complicatedInnerInnerArrayOfArray); Assert.Equal(baseType, unsafeClass.BaseType()); } [Fact] public void TestNullableTypeTransforms() { CommonTestInitialization(); var structType = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Struct"); Assert.False(structType.ContainsDynamic()); // public static Outer<dynamic>.Inner<dynamic, Struct?> nullableField; var field = structType.GetMember<FieldSymbol>("nullableField"); Assert.True(field.Type.ContainsDynamic()); var nullableStruct = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Nullable_T).Construct(structType); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); // Outer<dynamic>.Inner<dynamic, Struct?> var constructedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(s_dynamicType, nullableStruct); Assert.Equal(constructedInner, field.Type); } [Fact] public void TestCustomModifierTransforms() { var il = @" .assembly extern System.Core { } .class public abstract auto ansi sealed beforefieldinit A`1<T> extends [mscorlib]System.Object { } .class public abstract auto ansi sealed beforefieldinit B extends [mscorlib]System.Object { .field public static class A`1<object> modopt([mscorlib]System.Runtime.CompilerServices.IsConst) F0 .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor(bool[]) = ( 01 00 03 00 00 00 00 00 01 00 00 ) } "; var compilation = CreateCompilationWithILAndMscorlib40(String.Empty, il); var classA = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); var classB = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B"); var f0 = classB.GetMember<FieldSymbol>("F0"); Assert.True(f0.Type.ContainsDynamic()); // .field public static class A`1<object> modopt([mscorlib]System.Runtime.CompilerServices.IsConst) F0 var constructedA = classA.Construct(s_dynamicType); Assert.Equal(constructedA, f0.Type); Assert.Equal(1, f0.TypeWithAnnotations.CustomModifiers.Length); } [Fact] public void InvalidAttributeArgs1() { string csSource = @" class D { void M(C c) { var f1 = c.F1; var f2 = c.F2; var f3 = c.F3; var f4 = c.F4; var f5 = c.F5; var f6 = c.F6; var m1 = c.M1(); var m2 = c.M2(); var p1 = c.P1; var p2 = c.P2; } } "; var dll = MetadataReference.CreateFromImage(TestResources.MetadataTests.Invalid.InvalidDynamicAttributeArgs.AsImmutableOrNull()); var c = CreateCompilation(csSource, new[] { dll }); c.VerifyDiagnostics( // (7,20): error CS0570: 'C.F1' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("C.F1"), // (7,20): error CS0570: 'C.F2' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "F2").WithArguments("C.F2"), // (8,18): error CS0570: 'C.M1()' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "M1").WithArguments("C.M1()"), // (9,18): error CS0570: 'C.M2()' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "M2").WithArguments("C.M2()"), // (10,20): error CS0570: 'C.P1' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "P1").WithArguments("C.P1"), // (11,20): error CS0570: 'C.P2' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "P2").WithArguments("C.P2")); } [ConditionalFact(typeof(DesktopOnly), typeof(ClrOnly))] [WorkItem(18411, "https://github.com/dotnet/roslyn/issues/18411")] public void TestDynamicTransformsBadMetadata() { var il = @" .assembly extern System.Core { } .class public abstract auto ansi beforefieldinit Derived`1<T> extends class Base`1<object> { // DynamicTransforms array has no 'true' values .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor(bool[]) = ( 01 00 02 00 00 00 00 00 00 00 ) .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Base0::.ctor } .class public abstract auto ansi beforefieldinit Derived2`1<T> extends class Base`1<object> { // DynamicTransforms array has 'true' values for non-object types .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor(bool[]) = ( 01 00 02 00 00 00 01 01 00 00 ) .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Base0::.ctor } .class public auto ansi beforefieldinit Base`1<T> extends [mscorlib]System.Object { .field public !T field1 .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Base0::.ctor } .class public abstract auto ansi beforefieldinit A`1<T> extends [mscorlib]System.Object { } .class public auto ansi beforefieldinit B extends [mscorlib]System.Object { // DynamicTransforms array has 'true' values for custom-modifier associated bits .field public static class A`1<object> modopt([mscorlib]System.Runtime.CompilerServices.IsConst) field1 .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor(bool[]) = ( 01 00 03 00 00 00 01 00 01 00 00 ) } "; var source = @" class Y: Derived<int> { public static void Main() { var y = new Y(); y.field1 = 3; System.Console.WriteLine(y.field1); y.field1 = ""str""; System.Console.WriteLine(y.field1); var y2 = new Y2(); y2.field1 = 3; System.Console.WriteLine(y2.field1); y2.field1 = ""str""; System.Console.WriteLine(y2.field1); A<object> a = B.field1; } } class Y2: Derived2<int> {} "; var expectedOutput = @"3 str 3 str"; var compilation = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.ReleaseExe); CompileAndVerify(compilation, expectedOutput: expectedOutput); var classDerived = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); var field1 = classDerived.BaseType().GetMember<FieldSymbol>("field1"); Assert.False(field1.Type.ContainsDynamic()); var classDerived2 = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived2"); field1 = classDerived.BaseType().GetMember<FieldSymbol>("field1"); Assert.False(field1.Type.ContainsDynamic()); var classB = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B"); field1 = classB.GetMember<FieldSymbol>("field1"); Assert.False(field1.Type.ContainsDynamic()); } } }
// Licensed to the .NET Foundation under one or more 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 Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols.Metadata.PE { public class DynamicTransformsTests : CSharpTestBase { private AssemblySymbol _assembly; private NamedTypeSymbol _base0Class, _base1Class, _base2Class, _derivedClass; private NamedTypeSymbol _outerClass, _innerClass, _innerInnerClass; private NamedTypeSymbol _outer2Class, _inner2Class, _innerInner2Class; private NamedTypeSymbol _outer3Class, _inner3Class; private NamedTypeSymbol _objectType, _intType; private static readonly DynamicTypeSymbol s_dynamicType = DynamicTypeSymbol.Instance; private void CommonTestInitialization() { _assembly = MetadataTestHelpers.GetSymbolsForReferences( TestReferences.SymbolsTests.Metadata.DynamicAttributeLib, TestMetadata.Net451.mscorlib)[0]; _base0Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Base0"); _base1Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Base1"); _base2Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Base2"); _derivedClass = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); _outerClass = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Outer"); _innerClass = _outerClass.GetTypeMember("Inner"); _innerInnerClass = _innerClass.GetTypeMember("InnerInner"); _outer2Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Outer2"); _inner2Class = _outer2Class.GetTypeMember("Inner2"); _innerInner2Class = _inner2Class.GetTypeMember("InnerInner2"); _outer3Class = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Outer3"); _inner3Class = _outer3Class.GetTypeMember("Inner3"); _objectType = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Object); _intType = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Int32); } [Fact] public void TestBaseTypeDynamicTransforms() { CommonTestInitialization(); // public class Base0 { } Assert.Equal(_objectType, _base0Class.BaseType()); Assert.False(_base0Class.ContainsDynamic()); // public class Base1<T> { } Assert.Equal(_objectType, _base1Class.BaseType()); Assert.False(_base1Class.ContainsDynamic()); // public class Base2<T, U> { } Assert.Equal(_objectType, _base2Class.BaseType()); Assert.False(_base2Class.ContainsDynamic()); // public class Derived<T> : Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic> where T : Derived<T> { ... } Assert.False(_derivedClass.ContainsDynamic()); Assert.True(_derivedClass.BaseType().ContainsDynamic()); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic> var t = _derivedClass.TypeParameters[0]; var arrayOfT = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(t)); var innerClassOfTArrDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfT, s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[] var memberInnerInnerOfInt = innerClassOfTArrDynamic.GetTypeMember("InnerInner").Construct(_intType); var arrayOfInnerInnerOfInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(memberInnerInnerOfInt)); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic> var memberComplicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfInnerInnerOfInt, s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic> var memberInnerInnerOfDynamic = memberComplicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); Assert.Equal(memberInnerInnerOfDynamic, _derivedClass.BaseType()); // public class Outer<T> : Base1<dynamic> Assert.False(_outerClass.ContainsDynamic()); Assert.True(_outerClass.BaseType().ContainsDynamic()); var base1OfDynamic = _base1Class.Construct(s_dynamicType); Assert.Equal(base1OfDynamic, _outerClass.BaseType()); // public class Inner<U, V> : Base2<dynamic, V> Assert.False(_innerClass.ContainsDynamic()); Assert.True(_innerClass.BaseType().ContainsDynamic()); var base2OfDynamicV = _base2Class.Construct(s_dynamicType, _innerClass.TypeParameters[1]); Assert.Equal(base2OfDynamicV, _innerClass.BaseType()); // public class InnerInner<W> : Base1<dynamic> { } Assert.False(_innerInnerClass.ContainsDynamic()); Assert.True(_innerInnerClass.BaseType().ContainsDynamic()); Assert.Equal(base1OfDynamic, _innerInnerClass.BaseType()); // public class Outer2<T> : Base1<dynamic> Assert.False(_outer2Class.ContainsDynamic()); Assert.True(_outer2Class.BaseType().ContainsDynamic()); Assert.Equal(base1OfDynamic, _outer2Class.BaseType()); // public class Inner2<U, V> : Base0 Assert.False(_inner2Class.ContainsDynamic()); Assert.False(_inner2Class.BaseType().ContainsDynamic()); Assert.Equal(_base0Class, _inner2Class.BaseType()); // public class InnerInner2<W> : Base0 { } Assert.False(_innerInner2Class.ContainsDynamic()); Assert.False(_innerInner2Class.BaseType().ContainsDynamic()); Assert.Equal(_base0Class, _innerInner2Class.BaseType()); // public class Inner3<U> Assert.False(_inner3Class.ContainsDynamic()); } [Fact] public void TestFieldDynamicTransforms() { CommonTestInitialization(); //public static dynamic field1; var field1 = _derivedClass.GetMember<FieldSymbol>("field1"); Assert.Equal(s_dynamicType, field1.Type); //public static dynamic[] field2; var field2 = _derivedClass.GetMember<FieldSymbol>("field2"); var arrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(s_dynamicType), 1); Assert.Equal(arrayOfDynamic, field2.Type); //public static dynamic[][] field3; var field3 = _derivedClass.GetMember<FieldSymbol>("field3"); var arrayOfArrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(arrayOfDynamic), 1); Assert.Equal(arrayOfArrayOfDynamic, field3.Type); //public const dynamic field4 = null; var field4 = _derivedClass.GetMember<FieldSymbol>("field4"); Assert.Equal(s_dynamicType, field4.Type); //public const dynamic[] field5 = null; var field5 = _derivedClass.GetMember<FieldSymbol>("field5"); Assert.Equal(arrayOfDynamic, field5.Type); //public const dynamic[][] field6 = null; var field6 = _derivedClass.GetMember<FieldSymbol>("field6"); Assert.Equal(arrayOfArrayOfDynamic, field6.Type); //public const dynamic[][] field7 = null; var field7 = _derivedClass.GetMember<FieldSymbol>("field7"); Assert.Equal(arrayOfArrayOfDynamic, field7.Type); //public Outer<T>.Inner<int, T>.InnerInner<Outer<dynamic>> field8 = null; var field8 = _derivedClass.GetMember<FieldSymbol>("field8"); var derivedTypeParam = _derivedClass.TypeParameters[0]; var outerOfT = _outerClass.Construct(derivedTypeParam); var innerOfIntOfTWithOuterT = outerOfT.GetTypeMember("Inner").Construct(_intType, derivedTypeParam); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); var complicatedInnerInner = innerOfIntOfTWithOuterT.GetTypeMember("InnerInner").Construct(outerClassOfDynamic); Assert.Equal(complicatedInnerInner, field8.Type); //public Outer<dynamic>.Inner<T, T>.InnerInner<T> field9 = null; var field9 = _derivedClass.GetMember<FieldSymbol>("field9"); var innerOfTTWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(derivedTypeParam, derivedTypeParam); complicatedInnerInner = innerOfTTWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(derivedTypeParam); Assert.Equal(complicatedInnerInner, field9.Type); //public Outer<Outer<dynamic>.Inner<T, dynamic>>.Inner<dynamic, T>.InnerInner<T> field10 = null; var field10 = _derivedClass.GetMember<FieldSymbol>("field10"); // Outer<dynamic>.Inner<T, dynamic> var innerOfTDynamicWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(derivedTypeParam, s_dynamicType); // Outer<Outer<dynamic>.Inner<T, dynamic>> var complicatedOuter = _outerClass.Construct(innerOfTDynamicWithOuterOfDynamic); // Outer<Outer<dynamic>.Inner<T, dynamic>>.Inner<dynamic, T> var complicatedInner = complicatedOuter.GetTypeMember("Inner").Construct(s_dynamicType, derivedTypeParam); complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(derivedTypeParam); Assert.Equal(complicatedInnerInner, field10.Type); //public Outer<T>.Inner<dynamic, dynamic>.InnerInner<T> field11 = null; var field11 = _derivedClass.GetMember<FieldSymbol>("field11"); // Outer<T>.Inner<dynamic, dynamic> var innerOfDynamicDynamicWithOuterOfT = outerOfT.GetTypeMember("Inner").Construct(s_dynamicType, s_dynamicType); complicatedInnerInner = innerOfDynamicDynamicWithOuterOfT.GetTypeMember("InnerInner").Construct(derivedTypeParam); Assert.Equal(complicatedInnerInner, field11.Type); //public Outer<T>.Inner<T, T>.InnerInner<Outer<dynamic>.Inner<T, dynamic>.InnerInner<int>> field12 = null; var field12 = _derivedClass.GetMember<FieldSymbol>("field12"); // Outer<T>.Inner<T, T> var innerOfTTWithOuterOfT = outerOfT.GetTypeMember("Inner").Construct(derivedTypeParam, derivedTypeParam); // Outer<dynamic>.Inner<T, dynamic>.InnerInner<int> complicatedInnerInner = innerOfTDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(_intType); complicatedInnerInner = innerOfTTWithOuterOfT.GetTypeMember("InnerInner").Construct(complicatedInnerInner); Assert.Equal(complicatedInnerInner, field12.Type); //public Outer<dynamic>.Inner<Outer<T>, T>.InnerInner<dynamic> field13 = null; var field13 = _derivedClass.GetMember<FieldSymbol>("field13"); // Outer<dynamic>.Inner<Outer<T>, T> var innerOfOuterOfTTWithOuterDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(outerOfT, derivedTypeParam); complicatedInnerInner = innerOfOuterOfTTWithOuterDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); Assert.Equal(complicatedInnerInner, field13.Type); //public Outer<dynamic>.Inner<dynamic, dynamic>.InnerInner<dynamic> field14 = null; var field14 = _derivedClass.GetMember<FieldSymbol>("field14"); // Outer<dynamic>.Inner<dynamic, dynamic> var innerOfDynamicDynamicWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(s_dynamicType, s_dynamicType); complicatedInnerInner = innerOfDynamicDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); Assert.Equal(complicatedInnerInner, field14.Type); //public Outer<dynamic>.Inner<Outer<dynamic>, T>.InnerInner<dynamic>[] field15 = null; var field15 = _derivedClass.GetMember<FieldSymbol>("field15"); // Outer<dynamic>.Inner<Outer<dynamic>, T> var innerOfOuterOfDynamicTWithOuterDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(outerClassOfDynamic, derivedTypeParam); // Outer<dynamic>.Inner<Outer<dynamic>, T>.InnerInner<dynamic> complicatedInnerInner = innerOfOuterOfDynamicTWithOuterDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); Assert.Equal(complicatedInnerInnerArray, field15.Type); //public Outer<dynamic>.Inner<Outer<dynamic>.Inner<T, dynamic.InnerInner<int>, dynamic[]>.InnerInner<dynamic>[][] field16 = null; var field16 = _derivedClass.GetMember<FieldSymbol>("field16"); // Outer<dynamic>.Inner<T, dynamic>.InnerInner<int> complicatedInnerInner = innerOfTDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(_intType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T, dynamic>.InnerInner<int>, dynamic[]> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInner, arrayOfDynamic); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T, dynamic>.InnerInner<int>, dynamic[]>.InnerInner<dynamic> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray), 1); Assert.Equal(complicatedInnerInnerArrayOfArray, field16.Type); //public static Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] field17 = null; var field17 = _derivedClass.GetMember<FieldSymbol>("field17"); // T[] var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(derivedTypeParam), 1); // Outer<dynamic>.Inner<T[], dynamic> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(_intType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[] complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray), 1); Assert.Equal(complicatedInnerInnerArrayOfArray, field17.Type); //public static Outer3.Inner3<dynamic> field1 = null; field1 = _inner3Class.GetMember<FieldSymbol>("field1"); var inner3OfDynamic = _inner3Class.Construct(s_dynamicType); Assert.Equal(inner3OfDynamic, field1.Type); } [Fact] public void TestReturnValueParameterAndPropertyTransforms() { CommonTestInitialization(); //public static dynamic F1(dynamic x) { return x; } var f1 = _derivedClass.GetMember<MethodSymbol>("F1"); Assert.Equal(s_dynamicType, f1.ReturnType); Assert.Equal(s_dynamicType, f1.GetParameterType(0)); //public static dynamic F2(ref dynamic x) { return x; } var f2 = _derivedClass.GetMember<MethodSymbol>("F2"); Assert.Equal(s_dynamicType, f2.ReturnType); Assert.Equal(s_dynamicType, f2.GetParameterType(0)); Assert.Equal(RefKind.Ref, f2.Parameters[0].RefKind); //public static dynamic[] F3(dynamic[] x) { return x; } var f3 = _derivedClass.GetMember<MethodSymbol>("F3"); var arrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(s_dynamicType)); Assert.Equal(arrayOfDynamic, f3.ReturnType); Assert.Equal(arrayOfDynamic, f3.GetParameterType(0)); Assert.Equal(RefKind.None, f3.Parameters[0].RefKind); var derivedTypeParam = _derivedClass.TypeParameters[0]; var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(derivedTypeParam)); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic> var complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int> var complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(_intType); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[] var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner)); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner)); var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray)); //public static Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] F4(Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] x) { return x; } var f4 = _derivedClass.GetMember<MethodSymbol>("F4"); Assert.Equal(complicatedInnerInnerArrayOfArray, f4.ReturnType); Assert.Equal(complicatedInnerInnerArrayOfArray, f4.GetParameterType(0)); Assert.Equal(RefKind.None, f4.Parameters[0].RefKind); //public static dynamic Prop1 { get { return field1; } } var prop1 = _derivedClass.GetMember<PropertySymbol>("Prop1"); Assert.Equal(s_dynamicType, prop1.Type); Assert.Equal(s_dynamicType, prop1.GetMethod.ReturnType); //public static Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int>[], dynamic>.InnerInner<dynamic>[][] Prop2 { get { return field17; } set { field17 = value; } } var prop2 = _derivedClass.GetMember<PropertySymbol>("Prop2"); Assert.Equal(complicatedInnerInnerArrayOfArray, prop2.Type); Assert.Equal(complicatedInnerInnerArrayOfArray, prop2.GetMethod.ReturnType); Assert.Equal(SpecialType.System_Void, prop2.SetMethod.ReturnType.SpecialType); Assert.Equal(complicatedInnerInnerArrayOfArray, prop2.SetMethod.GetParameterType(0)); } [Fact] public void TestPointerTypeTransforms() { CommonTestInitialization(); // public unsafe class UnsafeClass<T> : Base2<int*[], Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic>.InnerInner<dynamic>[][]> { } var unsafeClass = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("UnsafeClass"); Assert.False(unsafeClass.ContainsDynamic()); Assert.True(unsafeClass.BaseType().ContainsDynamic()); var unsafeClassTypeParam = unsafeClass.TypeParameters[0]; // T[] var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(unsafeClassTypeParam), 1); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); // Outer<dynamic>.Inner<T[], dynamic> var complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); // int*[] var pointerToInt = new PointerTypeSymbol(TypeWithAnnotations.Create(_intType)); var arrayOfPointerToInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(pointerToInt), 1); // int*[][] var arrayOfArrayOfPointerToInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(arrayOfPointerToInt), 1); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]> var complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(arrayOfArrayOfPointerToInt); // Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[] var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic> complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic>.InnerInner<dynamic> complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); // Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic>.InnerInner<dynamic>[][] complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray), 1); // Base2<int*[], Outer<dynamic>.Inner<Outer<dynamic>.Inner<T[], dynamic>.InnerInner<int*[][]>[], dynamic>.InnerInner<dynamic>[][]> var baseType = _base2Class.Construct(arrayOfPointerToInt, complicatedInnerInnerArrayOfArray); Assert.Equal(baseType, unsafeClass.BaseType()); } [Fact] public void TestNullableTypeTransforms() { CommonTestInitialization(); var structType = _assembly.Modules[0].GlobalNamespace.GetMember<NamedTypeSymbol>("Struct"); Assert.False(structType.ContainsDynamic()); // public static Outer<dynamic>.Inner<dynamic, Struct?> nullableField; var field = structType.GetMember<FieldSymbol>("nullableField"); Assert.True(field.Type.ContainsDynamic()); var nullableStruct = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Nullable_T).Construct(structType); // Outer<dynamic> var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); // Outer<dynamic>.Inner<dynamic, Struct?> var constructedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(s_dynamicType, nullableStruct); Assert.Equal(constructedInner, field.Type); } [Fact] public void TestCustomModifierTransforms() { var il = @" .assembly extern System.Core { } .class public abstract auto ansi sealed beforefieldinit A`1<T> extends [mscorlib]System.Object { } .class public abstract auto ansi sealed beforefieldinit B extends [mscorlib]System.Object { .field public static class A`1<object> modopt([mscorlib]System.Runtime.CompilerServices.IsConst) F0 .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor(bool[]) = ( 01 00 03 00 00 00 00 00 01 00 00 ) } "; var compilation = CreateCompilationWithILAndMscorlib40(String.Empty, il); var classA = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); var classB = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B"); var f0 = classB.GetMember<FieldSymbol>("F0"); Assert.True(f0.Type.ContainsDynamic()); // .field public static class A`1<object> modopt([mscorlib]System.Runtime.CompilerServices.IsConst) F0 var constructedA = classA.Construct(s_dynamicType); Assert.Equal(constructedA, f0.Type); Assert.Equal(1, f0.TypeWithAnnotations.CustomModifiers.Length); } [Fact] public void InvalidAttributeArgs1() { string csSource = @" class D { void M(C c) { var f1 = c.F1; var f2 = c.F2; var f3 = c.F3; var f4 = c.F4; var f5 = c.F5; var f6 = c.F6; var m1 = c.M1(); var m2 = c.M2(); var p1 = c.P1; var p2 = c.P2; } } "; var dll = MetadataReference.CreateFromImage(TestResources.MetadataTests.Invalid.InvalidDynamicAttributeArgs.AsImmutableOrNull()); var c = CreateCompilation(csSource, new[] { dll }); c.VerifyDiagnostics( // (7,20): error CS0570: 'C.F1' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("C.F1"), // (7,20): error CS0570: 'C.F2' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "F2").WithArguments("C.F2"), // (8,18): error CS0570: 'C.M1()' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "M1").WithArguments("C.M1()"), // (9,18): error CS0570: 'C.M2()' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "M2").WithArguments("C.M2()"), // (10,20): error CS0570: 'C.P1' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "P1").WithArguments("C.P1"), // (11,20): error CS0570: 'C.P2' is not supported by the language Diagnostic(ErrorCode.ERR_BindToBogus, "P2").WithArguments("C.P2")); } [ConditionalFact(typeof(DesktopOnly), typeof(ClrOnly))] [WorkItem(18411, "https://github.com/dotnet/roslyn/issues/18411")] public void TestDynamicTransformsBadMetadata() { var il = @" .assembly extern System.Core { } .class public abstract auto ansi beforefieldinit Derived`1<T> extends class Base`1<object> { // DynamicTransforms array has no 'true' values .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor(bool[]) = ( 01 00 02 00 00 00 00 00 00 00 ) .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Base0::.ctor } .class public abstract auto ansi beforefieldinit Derived2`1<T> extends class Base`1<object> { // DynamicTransforms array has 'true' values for non-object types .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor(bool[]) = ( 01 00 02 00 00 00 01 01 00 00 ) .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Base0::.ctor } .class public auto ansi beforefieldinit Base`1<T> extends [mscorlib]System.Object { .field public !T field1 .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Base0::.ctor } .class public abstract auto ansi beforefieldinit A`1<T> extends [mscorlib]System.Object { } .class public auto ansi beforefieldinit B extends [mscorlib]System.Object { // DynamicTransforms array has 'true' values for custom-modifier associated bits .field public static class A`1<object> modopt([mscorlib]System.Runtime.CompilerServices.IsConst) field1 .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor(bool[]) = ( 01 00 03 00 00 00 01 00 01 00 00 ) } "; var source = @" class Y: Derived<int> { public static void Main() { var y = new Y(); y.field1 = 3; System.Console.WriteLine(y.field1); y.field1 = ""str""; System.Console.WriteLine(y.field1); var y2 = new Y2(); y2.field1 = 3; System.Console.WriteLine(y2.field1); y2.field1 = ""str""; System.Console.WriteLine(y2.field1); A<object> a = B.field1; } } class Y2: Derived2<int> {} "; var expectedOutput = @"3 str 3 str"; var compilation = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.ReleaseExe); CompileAndVerify(compilation, expectedOutput: expectedOutput); var classDerived = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); var field1 = classDerived.BaseType().GetMember<FieldSymbol>("field1"); Assert.False(field1.Type.ContainsDynamic()); var classDerived2 = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived2"); field1 = classDerived.BaseType().GetMember<FieldSymbol>("field1"); Assert.False(field1.Type.ContainsDynamic()); var classB = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B"); field1 = classB.GetMember<FieldSymbol>("field1"); Assert.False(field1.Type.ContainsDynamic()); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/CoreTest/WorkspaceServiceTests/TemporaryStorageServiceTests.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.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.UnitTests { [UseExportProvider] public class TemporaryStorageServiceTests { [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageText() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); // test normal string var text = SourceText.From(new string(' ', 4096) + "public class A {}"); TestTemporaryStorage(service, text); // test empty string text = SourceText.From(string.Empty); TestTemporaryStorage(service, text); // test large string text = SourceText.From(new string(' ', 1024 * 1024) + "public class A {}"); TestTemporaryStorage(service, text); } [WorkItem(531188, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531188")] [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageStream() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var temporaryStorage = service.CreateTemporaryStreamStorage(System.Threading.CancellationToken.None); using var data = SerializableBytes.CreateWritableStream(); for (var i = 0; i < SharedPools.ByteBufferSize; i++) { data.WriteByte((byte)(i % 2)); } data.Position = 0; temporaryStorage.WriteStreamAsync(data).Wait(); using var result = temporaryStorage.ReadStreamAsync().Result; Assert.Equal(data.Length, result.Length); for (var i = 0; i < SharedPools.ByteBufferSize; i++) { Assert.Equal(i % 2, result.ReadByte()); } } private static void TestTemporaryStorage(ITemporaryStorageService temporaryStorageService, SourceText text) { // create a temporary storage location var temporaryStorage = temporaryStorageService.CreateTemporaryTextStorage(System.Threading.CancellationToken.None); // write text into it temporaryStorage.WriteTextAsync(text).Wait(); // read text back from it var text2 = temporaryStorage.ReadTextAsync().Result; Assert.NotSame(text, text2); Assert.Equal(text.ToString(), text2.ToString()); Assert.Equal(text.Encoding, text2.Encoding); temporaryStorage.Dispose(); } [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryTextStorageExceptions() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryTextStorage(CancellationToken.None); // Nothing has been written yet Assert.Throws<InvalidOperationException>(() => storage.ReadText()); Assert.Throws<AggregateException>(() => storage.ReadTextAsync().Result); // write a normal string var text = SourceText.From(new string(' ', 4096) + "public class A {}"); storage.WriteTextAsync(text).Wait(); // Writing multiple times is not allowed Assert.Throws<InvalidOperationException>(() => storage.WriteText(text)); Assert.Throws<AggregateException>(() => storage.WriteTextAsync(text).Wait()); } [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStreamStorageExceptions() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); // Nothing has been written yet Assert.Throws<InvalidOperationException>(() => storage.ReadStream()); Assert.Throws<AggregateException>(() => storage.ReadStreamAsync().Result); // write a normal stream var stream = new MemoryStream(); stream.Write(new byte[] { 42 }, 0, 1); stream.Position = 0; storage.WriteStreamAsync(stream).Wait(); // Writing multiple times is not allowed Assert.Throws<InvalidOperationException>(() => storage.WriteStream(null)); Assert.Throws<AggregateException>(() => storage.WriteStreamAsync(null).Wait()); } [Fact] public void TestZeroLengthStreams() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); // 0 length streams are allowed using (var stream1 = new MemoryStream()) { storage.WriteStream(stream1); } using (var stream2 = storage.ReadStream()) { Assert.Equal(0, stream2.Length); } } [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageMemoryMappedFileManagement() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var buffer = new MemoryStream(257 * 1024 + 1); for (var i = 0; i < buffer.Length; i++) { buffer.WriteByte((byte)i); } // Do a relatively cheap concurrent stress test of the backing MemoryMappedFile management var tasks = Enumerable.Range(1, 257).Select(async i => { for (var j = 1; j < 5; j++) { using ITemporaryStreamStorage storage1 = service.CreateTemporaryStreamStorage(CancellationToken.None), storage2 = service.CreateTemporaryStreamStorage(CancellationToken.None); var storage3 = service.CreateTemporaryStreamStorage(CancellationToken.None); // let the finalizer run for this instance storage1.WriteStream(new MemoryStream(buffer.GetBuffer(), 0, 1024 * i - 1)); storage2.WriteStream(new MemoryStream(buffer.GetBuffer(), 0, 1024 * i)); storage3.WriteStream(new MemoryStream(buffer.GetBuffer(), 0, 1024 * i + 1)); await Task.Yield(); using Stream s1 = storage1.ReadStream(), s2 = storage2.ReadStream(), s3 = storage3.ReadStream(); Assert.Equal(1024 * i - 1, s1.Length); Assert.Equal(1024 * i, s2.Length); Assert.Equal(1024 * i + 1, s3.Length); } }); Task.WaitAll(tasks.ToArray()); GC.Collect(2); GC.WaitForPendingFinalizers(); GC.Collect(2); } [Fact(Skip = "This test exists so it can be locally executed for scale testing, when required. Do not remove this test or unskip it in CI.")] [Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageScaling() { // This will churn through 4GB of memory. It validates that we don't // use up our address space in a 32 bit process. if (Environment.Is64BitOperatingSystem && !Environment.Is64BitProcess) { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); using var data = SerializableBytes.CreateWritableStream(); for (var i = 0; i < 1024 * 128; i++) { data.WriteByte(1); } // Create 4GB of memory mapped files var fileCount = (int)((long)4 * 1024 * 1024 * 1024 / data.Length); var storageHandles = new List<ITemporaryStreamStorage>(fileCount); for (var i = 0; i < fileCount; i++) { var s = service.CreateTemporaryStreamStorage(CancellationToken.None); storageHandles.Add(s); data.Position = 0; s.WriteStreamAsync(data).Wait(); } for (var i = 0; i < 1024 * 5; i++) { using var s = storageHandles[i].ReadStreamAsync().Result; Assert.Equal(1, s.ReadByte()); storageHandles[i].Dispose(); } } } [Fact] public void StreamTest1() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); using var expected = new MemoryStream(); for (var i = 0; i < 10000; i++) { expected.WriteByte((byte)(i % byte.MaxValue)); } expected.Position = 0; storage.WriteStream(expected); expected.Position = 0; using var stream = storage.ReadStream(); Assert.Equal(expected.Length, stream.Length); for (var i = 0; i < expected.Length; i++) { Assert.Equal(expected.ReadByte(), stream.ReadByte()); } } [Fact] public void StreamTest2() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); using var expected = new MemoryStream(); for (var i = 0; i < 10000; i++) { expected.WriteByte((byte)(i % byte.MaxValue)); } expected.Position = 0; storage.WriteStream(expected); expected.Position = 0; using var stream = storage.ReadStream(); Assert.Equal(expected.Length, stream.Length); var index = 0; int count; var bytes = new byte[1000]; while ((count = stream.Read(bytes, 0, bytes.Length)) > 0) { for (var i = 0; i < count; i++) { Assert.Equal((byte)(index % byte.MaxValue), bytes[i]); index++; } } Assert.Equal(index, stream.Length); } [Fact] public void StreamTest3() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); using var expected = new MemoryStream(); var random = new Random(Environment.TickCount); for (var i = 0; i < 100; i++) { var position = random.Next(10000); expected.Position = position; var value = (byte)(i % byte.MaxValue); expected.WriteByte(value); } expected.Position = 0; storage.WriteStream(expected); expected.Position = 0; using var stream = storage.ReadStream(); Assert.Equal(expected.Length, stream.Length); for (var i = 0; i < expected.Length; i++) { var value = expected.ReadByte(); if (value != 0) { stream.Position = i; Assert.Equal(value, stream.ReadByte()); } } } [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageTextEncoding() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); // test normal string var text = SourceText.From(new string(' ', 4096) + "public class A {}", Encoding.ASCII); TestTemporaryStorage(service, text); // test empty string text = SourceText.From(string.Empty); TestTemporaryStorage(service, text); // test large string text = SourceText.From(new string(' ', 1024 * 1024) + "public class A {}"); TestTemporaryStorage(service, text); } } }
// Licensed to the .NET Foundation under one or more 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.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.UnitTests { [UseExportProvider] public class TemporaryStorageServiceTests { [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageText() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); // test normal string var text = SourceText.From(new string(' ', 4096) + "public class A {}"); TestTemporaryStorage(service, text); // test empty string text = SourceText.From(string.Empty); TestTemporaryStorage(service, text); // test large string text = SourceText.From(new string(' ', 1024 * 1024) + "public class A {}"); TestTemporaryStorage(service, text); } [WorkItem(531188, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/531188")] [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageStream() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var temporaryStorage = service.CreateTemporaryStreamStorage(System.Threading.CancellationToken.None); using var data = SerializableBytes.CreateWritableStream(); for (var i = 0; i < SharedPools.ByteBufferSize; i++) { data.WriteByte((byte)(i % 2)); } data.Position = 0; temporaryStorage.WriteStreamAsync(data).Wait(); using var result = temporaryStorage.ReadStreamAsync().Result; Assert.Equal(data.Length, result.Length); for (var i = 0; i < SharedPools.ByteBufferSize; i++) { Assert.Equal(i % 2, result.ReadByte()); } } private static void TestTemporaryStorage(ITemporaryStorageService temporaryStorageService, SourceText text) { // create a temporary storage location var temporaryStorage = temporaryStorageService.CreateTemporaryTextStorage(System.Threading.CancellationToken.None); // write text into it temporaryStorage.WriteTextAsync(text).Wait(); // read text back from it var text2 = temporaryStorage.ReadTextAsync().Result; Assert.NotSame(text, text2); Assert.Equal(text.ToString(), text2.ToString()); Assert.Equal(text.Encoding, text2.Encoding); temporaryStorage.Dispose(); } [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryTextStorageExceptions() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryTextStorage(CancellationToken.None); // Nothing has been written yet Assert.Throws<InvalidOperationException>(() => storage.ReadText()); Assert.Throws<AggregateException>(() => storage.ReadTextAsync().Result); // write a normal string var text = SourceText.From(new string(' ', 4096) + "public class A {}"); storage.WriteTextAsync(text).Wait(); // Writing multiple times is not allowed Assert.Throws<InvalidOperationException>(() => storage.WriteText(text)); Assert.Throws<AggregateException>(() => storage.WriteTextAsync(text).Wait()); } [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStreamStorageExceptions() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); // Nothing has been written yet Assert.Throws<InvalidOperationException>(() => storage.ReadStream()); Assert.Throws<AggregateException>(() => storage.ReadStreamAsync().Result); // write a normal stream var stream = new MemoryStream(); stream.Write(new byte[] { 42 }, 0, 1); stream.Position = 0; storage.WriteStreamAsync(stream).Wait(); // Writing multiple times is not allowed Assert.Throws<InvalidOperationException>(() => storage.WriteStream(null)); Assert.Throws<AggregateException>(() => storage.WriteStreamAsync(null).Wait()); } [Fact] public void TestZeroLengthStreams() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); // 0 length streams are allowed using (var stream1 = new MemoryStream()) { storage.WriteStream(stream1); } using (var stream2 = storage.ReadStream()) { Assert.Equal(0, stream2.Length); } } [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageMemoryMappedFileManagement() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var buffer = new MemoryStream(257 * 1024 + 1); for (var i = 0; i < buffer.Length; i++) { buffer.WriteByte((byte)i); } // Do a relatively cheap concurrent stress test of the backing MemoryMappedFile management var tasks = Enumerable.Range(1, 257).Select(async i => { for (var j = 1; j < 5; j++) { using ITemporaryStreamStorage storage1 = service.CreateTemporaryStreamStorage(CancellationToken.None), storage2 = service.CreateTemporaryStreamStorage(CancellationToken.None); var storage3 = service.CreateTemporaryStreamStorage(CancellationToken.None); // let the finalizer run for this instance storage1.WriteStream(new MemoryStream(buffer.GetBuffer(), 0, 1024 * i - 1)); storage2.WriteStream(new MemoryStream(buffer.GetBuffer(), 0, 1024 * i)); storage3.WriteStream(new MemoryStream(buffer.GetBuffer(), 0, 1024 * i + 1)); await Task.Yield(); using Stream s1 = storage1.ReadStream(), s2 = storage2.ReadStream(), s3 = storage3.ReadStream(); Assert.Equal(1024 * i - 1, s1.Length); Assert.Equal(1024 * i, s2.Length); Assert.Equal(1024 * i + 1, s3.Length); } }); Task.WaitAll(tasks.ToArray()); GC.Collect(2); GC.WaitForPendingFinalizers(); GC.Collect(2); } [Fact(Skip = "This test exists so it can be locally executed for scale testing, when required. Do not remove this test or unskip it in CI.")] [Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageScaling() { // This will churn through 4GB of memory. It validates that we don't // use up our address space in a 32 bit process. if (Environment.Is64BitOperatingSystem && !Environment.Is64BitProcess) { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); using var data = SerializableBytes.CreateWritableStream(); for (var i = 0; i < 1024 * 128; i++) { data.WriteByte(1); } // Create 4GB of memory mapped files var fileCount = (int)((long)4 * 1024 * 1024 * 1024 / data.Length); var storageHandles = new List<ITemporaryStreamStorage>(fileCount); for (var i = 0; i < fileCount; i++) { var s = service.CreateTemporaryStreamStorage(CancellationToken.None); storageHandles.Add(s); data.Position = 0; s.WriteStreamAsync(data).Wait(); } for (var i = 0; i < 1024 * 5; i++) { using var s = storageHandles[i].ReadStreamAsync().Result; Assert.Equal(1, s.ReadByte()); storageHandles[i].Dispose(); } } } [Fact] public void StreamTest1() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); using var expected = new MemoryStream(); for (var i = 0; i < 10000; i++) { expected.WriteByte((byte)(i % byte.MaxValue)); } expected.Position = 0; storage.WriteStream(expected); expected.Position = 0; using var stream = storage.ReadStream(); Assert.Equal(expected.Length, stream.Length); for (var i = 0; i < expected.Length; i++) { Assert.Equal(expected.ReadByte(), stream.ReadByte()); } } [Fact] public void StreamTest2() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); using var expected = new MemoryStream(); for (var i = 0; i < 10000; i++) { expected.WriteByte((byte)(i % byte.MaxValue)); } expected.Position = 0; storage.WriteStream(expected); expected.Position = 0; using var stream = storage.ReadStream(); Assert.Equal(expected.Length, stream.Length); var index = 0; int count; var bytes = new byte[1000]; while ((count = stream.Read(bytes, 0, bytes.Length)) > 0) { for (var i = 0; i < count; i++) { Assert.Equal((byte)(index % byte.MaxValue), bytes[i]); index++; } } Assert.Equal(index, stream.Length); } [Fact] public void StreamTest3() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); var storage = service.CreateTemporaryStreamStorage(CancellationToken.None); using var expected = new MemoryStream(); var random = new Random(Environment.TickCount); for (var i = 0; i < 100; i++) { var position = random.Next(10000); expected.Position = position; var value = (byte)(i % byte.MaxValue); expected.WriteByte(value); } expected.Position = 0; storage.WriteStream(expected); expected.Position = 0; using var stream = storage.ReadStream(); Assert.Equal(expected.Length, stream.Length); for (var i = 0; i < expected.Length; i++) { var value = expected.ReadByte(); if (value != 0) { stream.Position = i; Assert.Equal(value, stream.ReadByte()); } } } [Fact, Trait(Traits.Feature, Traits.Features.Workspace)] public void TestTemporaryStorageTextEncoding() { using var workspace = new AdhocWorkspace(); var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); var service = new TemporaryStorageServiceFactory.TemporaryStorageService(textFactory); // test normal string var text = SourceText.From(new string(' ', 4096) + "public class A {}", Encoding.ASCII); TestTemporaryStorage(service, text); // test empty string text = SourceText.From(string.Empty); TestTemporaryStorage(service, text); // test large string text = SourceText.From(new string(' ', 1024 * 1024) + "public class A {}"); TestTemporaryStorage(service, text); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests_Projections.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.Extensions Imports Microsoft.VisualStudio.Text.Projection Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense <[UseExportProvider]> Public Class CSharpCompletionCommandHandlerTests_Projections <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Completion)> Public Async Function TestSimpleWithJustSubjectBuffer(showCompletionInArgumentLists As Boolean) As Task Using state = TestStateFactory.CreateCSharpTestState( <Document><![CDATA[ using System; public class _Page_Default_cshtml : System.Web.WebPages.WebPage { private static object @__o; #line hidden public override void Execute() { #line 1 "Default.cshtml" __o = AppDomain$$ #line default #line hidden } }]]></Document>, showCompletionInArgumentLists:=showCompletionInArgumentLists) state.SendTypeChars(".Curr") Await state.AssertSelectedCompletionItem(displayText:="CurrentDomain") state.SendTab() Assert.Contains("__o = AppDomain.CurrentDomain", state.GetLineTextFromCaretPosition(), StringComparison.Ordinal) End Using End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Completion)> Public Async Function TestAfterDot(showCompletionInArgumentLists As Boolean) As Task Using state = TestStateFactory.CreateCSharpTestState( <Document><![CDATA[ {|S2: class C { void Goo() { System$$ } } |}]]></Document>, showCompletionInArgumentLists:=showCompletionInArgumentLists) Dim subjectDocument = state.Workspace.Documents.First() Dim firstProjection = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1: &lt;html&gt;@|} {|S2:|} </Document>.NormalizedValue, {subjectDocument}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim topProjectionBuffer = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1:|} {|S2:&lt;/html&gt;|} </Document>.NormalizedValue, {firstProjection}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim view = topProjectionBuffer.GetTextView() Dim buffer = subjectDocument.GetTextBuffer() state.SendTypeCharsToSpecificViewAndBuffer(".", view, buffer) Await state.AssertCompletionSession(view) state.SendTypeCharsToSpecificViewAndBuffer("Cons", view, buffer) Await state.AssertSelectedCompletionItem(displayText:="Console", projectionsView:=view) End Using End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Completion)> Public Async Function TestInObjectCreationExpression(showCompletionInArgumentLists As Boolean) As Task Using state = TestStateFactory.CreateCSharpTestState( <Document><![CDATA[ {|S2: class C { void Goo() { string s = new$$ } } |}]]></Document>, showCompletionInArgumentLists:=showCompletionInArgumentLists) Dim subjectDocument = state.Workspace.Documents.First() Dim firstProjection = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1: &lt;html&gt;@|} {|S2:|} </Document>.NormalizedValue, {subjectDocument}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim topProjectionBuffer = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1:|} {|S2:&lt;/html&gt;|} </Document>.NormalizedValue, {firstProjection}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim view = topProjectionBuffer.GetTextView() Dim buffer = subjectDocument.GetTextBuffer() state.SendTypeCharsToSpecificViewAndBuffer(" ", view, buffer) Await state.AssertSelectedCompletionItem(displayText:="string", isHardSelected:=True, projectionsView:=view) End Using End Function <WorkItem(771761, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/771761")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Completion)> Public Async Function TestRegionCompletionCommitFormatting(showCompletionInArgumentLists As Boolean) As Task Using state = TestStateFactory.CreateCSharpTestState( <Document><![CDATA[ {|S2: class C { void Goo() { $$ } } |}]]></Document>, showCompletionInArgumentLists:=showCompletionInArgumentLists) Dim subjectDocument = state.Workspace.Documents.First() Dim firstProjection = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1: &lt;html&gt;@|} {|S2:|} </Document>.NormalizedValue, {subjectDocument}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim topProjectionBuffer = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1:|} {|S2:&lt;/html&gt;|} </Document>.NormalizedValue, {firstProjection}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim view = topProjectionBuffer.GetTextView() Dim buffer = subjectDocument.GetTextBuffer() state.SendTypeCharsToSpecificViewAndBuffer("#reg", view, buffer) Await state.AssertSelectedCompletionItem(displayText:="region", shouldFormatOnCommit:=True, projectionsView:=view) 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.Editor.UnitTests.Extensions Imports Microsoft.VisualStudio.Text.Projection Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense <[UseExportProvider]> Public Class CSharpCompletionCommandHandlerTests_Projections <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Completion)> Public Async Function TestSimpleWithJustSubjectBuffer(showCompletionInArgumentLists As Boolean) As Task Using state = TestStateFactory.CreateCSharpTestState( <Document><![CDATA[ using System; public class _Page_Default_cshtml : System.Web.WebPages.WebPage { private static object @__o; #line hidden public override void Execute() { #line 1 "Default.cshtml" __o = AppDomain$$ #line default #line hidden } }]]></Document>, showCompletionInArgumentLists:=showCompletionInArgumentLists) state.SendTypeChars(".Curr") Await state.AssertSelectedCompletionItem(displayText:="CurrentDomain") state.SendTab() Assert.Contains("__o = AppDomain.CurrentDomain", state.GetLineTextFromCaretPosition(), StringComparison.Ordinal) End Using End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Completion)> Public Async Function TestAfterDot(showCompletionInArgumentLists As Boolean) As Task Using state = TestStateFactory.CreateCSharpTestState( <Document><![CDATA[ {|S2: class C { void Goo() { System$$ } } |}]]></Document>, showCompletionInArgumentLists:=showCompletionInArgumentLists) Dim subjectDocument = state.Workspace.Documents.First() Dim firstProjection = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1: &lt;html&gt;@|} {|S2:|} </Document>.NormalizedValue, {subjectDocument}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim topProjectionBuffer = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1:|} {|S2:&lt;/html&gt;|} </Document>.NormalizedValue, {firstProjection}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim view = topProjectionBuffer.GetTextView() Dim buffer = subjectDocument.GetTextBuffer() state.SendTypeCharsToSpecificViewAndBuffer(".", view, buffer) Await state.AssertCompletionSession(view) state.SendTypeCharsToSpecificViewAndBuffer("Cons", view, buffer) Await state.AssertSelectedCompletionItem(displayText:="Console", projectionsView:=view) End Using End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Completion)> Public Async Function TestInObjectCreationExpression(showCompletionInArgumentLists As Boolean) As Task Using state = TestStateFactory.CreateCSharpTestState( <Document><![CDATA[ {|S2: class C { void Goo() { string s = new$$ } } |}]]></Document>, showCompletionInArgumentLists:=showCompletionInArgumentLists) Dim subjectDocument = state.Workspace.Documents.First() Dim firstProjection = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1: &lt;html&gt;@|} {|S2:|} </Document>.NormalizedValue, {subjectDocument}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim topProjectionBuffer = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1:|} {|S2:&lt;/html&gt;|} </Document>.NormalizedValue, {firstProjection}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim view = topProjectionBuffer.GetTextView() Dim buffer = subjectDocument.GetTextBuffer() state.SendTypeCharsToSpecificViewAndBuffer(" ", view, buffer) Await state.AssertSelectedCompletionItem(displayText:="string", isHardSelected:=True, projectionsView:=view) End Using End Function <WorkItem(771761, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/771761")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Completion)> Public Async Function TestRegionCompletionCommitFormatting(showCompletionInArgumentLists As Boolean) As Task Using state = TestStateFactory.CreateCSharpTestState( <Document><![CDATA[ {|S2: class C { void Goo() { $$ } } |}]]></Document>, showCompletionInArgumentLists:=showCompletionInArgumentLists) Dim subjectDocument = state.Workspace.Documents.First() Dim firstProjection = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1: &lt;html&gt;@|} {|S2:|} </Document>.NormalizedValue, {subjectDocument}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim topProjectionBuffer = state.Workspace.CreateProjectionBufferDocument( <Document> {|S1:|} {|S2:&lt;/html&gt;|} </Document>.NormalizedValue, {firstProjection}, options:=ProjectionBufferOptions.WritableLiteralSpans) Dim view = topProjectionBuffer.GetTextView() Dim buffer = subjectDocument.GetTextBuffer() state.SendTypeCharsToSpecificViewAndBuffer("#reg", view, buffer) Await state.AssertSelectedCompletionItem(displayText:="region", shouldFormatOnCommit:=True, projectionsView:=view) End Using End Function End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/CSharpTest/Organizing/OrganizeTypeDeclarationTests.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.Tasks; using System.Xml.Linq; using Microsoft.CodeAnalysis.Editor.Commanding.Commands; using Microsoft.CodeAnalysis.Editor.Implementation.Interactive; using Microsoft.CodeAnalysis.Editor.Implementation.Organizing; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Editor.UnitTests; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Organizing { public class OrganizeTypeDeclarationTests : AbstractOrganizerTests { [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] [InlineData("record class")] [InlineData("record struct")] public async Task TestFieldsWithoutInitializers1(string typeKind) { var initial = $@"{typeKind} C {{ int A; int B; int C; }}"; var final = $@"{typeKind} C {{ int A; int B; int C; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("struct")] [InlineData("record")] [InlineData("record class")] [InlineData("record struct")] public async Task TestNestedTypes(string typeKind) { var initial = $@"class C {{ {typeKind} Nested1 {{ }} {typeKind} Nested2 {{ }} int A; }}"; var final = $@"class C {{ int A; {typeKind} Nested1 {{ }} {typeKind} Nested2 {{ }} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestFieldsWithoutInitializers2(string typeKind) { var initial = $@"{typeKind} C {{ int C; int B; int A; }}"; var final = $@"{typeKind} C {{ int A; int B; int C; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] [InlineData("record struct")] public async Task TestFieldsWithInitializers1(string typeKind) { var initial = $@"{typeKind} C {{ int C = 0; int B; int A; }}"; var final = $@"{typeKind} C {{ int A; int B; int C = 0; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestFieldsWithInitializers2(string typeKind) { var initial = $@"{typeKind} C {{ int C = 0; int B = 0; int A; }}"; var final = $@"{typeKind} C {{ int A; int C = 0; int B = 0; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestEventFieldDeclaration(string typeKind) { var initial = $@"{typeKind} C {{ public void Goo() {{}} public event EventHandler MyEvent; }}"; var final = $@"{typeKind} C {{ public event EventHandler MyEvent; public void Goo() {{}} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestEventDeclaration(string typeKind) { var initial = $@"{typeKind} C {{ public void Goo() {{}} public event EventHandler Event {{ remove {{ }} add {{ }} }} public static int Property {{ get; set; }} }}"; var final = $@"{typeKind} C {{ public static int Property {{ get; set; }} public event EventHandler Event {{ remove {{ }} add {{ }} }} public void Goo() {{}} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestOperator(string typeKind) { var initial = $@"{typeKind} C {{ public void Goo() {{}} public static int operator +(Goo<T> a, int b) {{ return 1; }} }}"; var final = $@"{typeKind} C {{ public static int operator +(Goo<T> a, int b) {{ return 1; }} public void Goo() {{}} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestIndexer(string typeKind) { var initial = $@"{typeKind} C {{ public void Goo() {{}} public T this[int i] {{ get {{ return default(T); }} }} C() {{}} }}"; var final = $@"{typeKind} C {{ C() {{}} public T this[int i] {{ get {{ return default(T); }} }} public void Goo() {{}} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestConstructorAndDestructors(string typeKind) { var initial = $@"{typeKind} C {{ public ~Goo() {{}} enum Days {{Sat, Sun}}; public Goo() {{}} }}"; var final = $@"{typeKind} C {{ public Goo() {{}} public ~Goo() {{}} enum Days {{Sat, Sun}}; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInterface(string typeKind) { var initial = $@"{typeKind} C {{}} interface I {{ void Goo(); int Property {{ get; set; }} event EventHandler Event; }}"; var final = $@"{typeKind} C {{}} interface I {{ event EventHandler Event; int Property {{ get; set; }} void Goo(); }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestStaticInstance(string typeKind) { var initial = $@"{typeKind} C {{ int A; static int B; int C; static int D; }}"; var final = $@"{typeKind} C {{ static int B; static int D; int A; int C; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] [InlineData("record struct")] public async Task TestAccessibility(string typeKind) { var initial = $@"{typeKind} C {{ int A; private int B; internal int C; protected int D; public int E; protected internal int F; }}"; var final = $@"{typeKind} C {{ public int E; protected int D; protected internal int F; internal int C; int A; private int B; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestStaticAccessibility(string typeKind) { var initial = $@"{typeKind} C {{ int A1; private int B1; internal int C1; protected int D1; public int E1; static int A2; static private int B2; static internal int C2; static protected int D2; static public int E2; }}"; var final = $@"{typeKind} C {{ public static int E2; protected static int D2; internal static int C2; static int A2; private static int B2; public int E1; protected int D1; internal int C1; int A1; private int B1; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestGenerics(string typeKind) { var initial = $@"{typeKind} C {{ void B<X,Y>(); void B<Z>(); void B(); void A<X,Y>(); void A<Z>(); void A(); }}"; var final = $@"{typeKind} C {{ void A(); void A<Z>(); void A<X,Y>(); void B(); void B<Z>(); void B<X,Y>(); }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion(string typeKind) { var initial = $@"{typeKind} C {{ #if true int c; int b; int a; #endif }}"; var final = $@"{typeKind} C {{ #if true int a; int b; int c; #endif }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion2(string typeKind) { var initial = $@"{typeKind} C {{ #if true int z; int y; int x; #endif #if true int c; int b; int a; #endif }}"; var final = $@"{typeKind} C {{ #if true int x; int y; int z; #endif #if true int a; int b; int c; #endif }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion3(string typeKind) { var initial = $@"{typeKind} C {{ int z; int y; #if true int x; int c; #endif int b; int a; }}"; var final = $@"{typeKind} C {{ int y; int z; #if true int c; int x; #endif int a; int b; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion4(string typeKind) { var initial = $@"{typeKind} C {{ int c() {{ }} int b {{ }} int a {{ #if true #endif }} }}"; var final = $@"{typeKind} C {{ int a {{ #if true #endif }} int b {{ }} int c() {{ }} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion5(string typeKind) { var initial = $@"{typeKind} C {{ int c() {{ }} int b {{ }} int a {{ #if true #else #endif }} }}"; var final = $@"{typeKind} C {{ int a {{ #if true #else #endif }} int b {{ }} int c() {{ }} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion6(string typeKind) { var initial = $@"{typeKind} C {{ #region int e() {{ }} int d() {{ }} int c() {{ #region }} #endregion int b {{ }} int a {{ }} #endregion }}"; var final = $@"{typeKind} C {{ #region int d() {{ }} int e() {{ }} int c() {{ #region }} #endregion int a {{ }} int b {{ }} #endregion }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestPinned(string typeKind) { var initial = $@"{typeKind} C {{ int z() {{ }} int y() {{ }} int x() {{ #if true }} int n; int m; int c() {{ #endif }} int b() {{ }} int a() {{ }} }}"; var final = $@"{typeKind} C {{ int y() {{ }} int z() {{ }} int x() {{ #if true }} int m; int n; int c() {{ #endif }} int a() {{ }} int b() {{ }} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestSensitivity(string typeKind) { var initial = $@"{typeKind} C {{ int Bb; int B; int bB; int b; int Aa; int a; int A; int aa; int aA; int AA; int bb; int BB; int bBb; int bbB; int あ; int ア; int ア; int ああ; int あア; int あア; int アあ; int cC; int Cc; int アア; int アア; int アあ; int アア; int アア; int BBb; int BbB; int bBB; int BBB; int c; int C; int bbb; int Bbb; int cc; int cC; int CC; }}"; var final = $@"{typeKind} C {{ int a; int A; int aa; int aA; int Aa; int AA; int b; int B; int bb; int bB; int Bb; int BB; int bbb; int bbB; int bBb; int bBB; int Bbb; int BbB; int BBb; int BBB; int c; int C; int cc; int cC; int cC; int Cc; int CC; int ア; int ア; int あ; int アア; int アア; int アア; int アア; int アあ; int アあ; int あア; int あア; int ああ; }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods1(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods2(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods3(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods4(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods5(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods6(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestMoveComments1(string typeKind) { var initial = $@"{typeKind} Program {{ // B void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} // B void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestMoveComments2(string typeKind) { var initial = $@"{typeKind} Program {{ // B void B() {{ }} // A void A() {{ }} }}"; var final = $@"{typeKind} Program {{ // A void A() {{ }} // B void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestMoveDocComments1(string typeKind) { var initial = $@"{typeKind} Program {{ /// B void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} /// B void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestMoveDocComments2(string typeKind) { var initial = $@"{typeKind} Program {{ /// B void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} /// B void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestDontMoveBanner(string typeKind) { var initial = $@"{typeKind} Program {{ // Banner void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ // Banner void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestDontMoveBanner2(string typeKind) { var initial = $@"{typeKind} Program {{ // Banner // More banner // Bannery stuff void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ // Banner // More banner // Bannery stuff void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WpfFact] [Trait(Traits.Feature, Traits.Features.Organizing)] [Trait(Traits.Feature, Traits.Features.Interactive)] public void OrganizingCommandsDisabledInSubmission() { using var workspace = TestWorkspace.Create(XElement.Parse(@" <Workspace> <Submission Language=""C#"" CommonReferences=""true""> class C { object $$goo; } </Submission> </Workspace> "), workspaceKind: WorkspaceKind.Interactive, composition: EditorTestCompositions.EditorFeaturesWpf); // Force initialization. workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList(); var textView = workspace.Documents.Single().GetTextView(); var handler = new OrganizeDocumentCommandHandler(workspace.ExportProvider.GetExportedValue<IThreadingContext>()); var state = handler.GetCommandState(new SortAndRemoveUnnecessaryImportsCommandArgs(textView, textView.TextBuffer)); Assert.True(state.IsUnspecified); state = handler.GetCommandState(new OrganizeDocumentCommandArgs(textView, textView.TextBuffer)); Assert.True(state.IsUnspecified); } } }
// Licensed to the .NET Foundation under one or more 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.Tasks; using System.Xml.Linq; using Microsoft.CodeAnalysis.Editor.Commanding.Commands; using Microsoft.CodeAnalysis.Editor.Implementation.Interactive; using Microsoft.CodeAnalysis.Editor.Implementation.Organizing; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Editor.UnitTests; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Organizing { public class OrganizeTypeDeclarationTests : AbstractOrganizerTests { [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] [InlineData("record class")] [InlineData("record struct")] public async Task TestFieldsWithoutInitializers1(string typeKind) { var initial = $@"{typeKind} C {{ int A; int B; int C; }}"; var final = $@"{typeKind} C {{ int A; int B; int C; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("struct")] [InlineData("record")] [InlineData("record class")] [InlineData("record struct")] public async Task TestNestedTypes(string typeKind) { var initial = $@"class C {{ {typeKind} Nested1 {{ }} {typeKind} Nested2 {{ }} int A; }}"; var final = $@"class C {{ int A; {typeKind} Nested1 {{ }} {typeKind} Nested2 {{ }} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestFieldsWithoutInitializers2(string typeKind) { var initial = $@"{typeKind} C {{ int C; int B; int A; }}"; var final = $@"{typeKind} C {{ int A; int B; int C; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] [InlineData("record struct")] public async Task TestFieldsWithInitializers1(string typeKind) { var initial = $@"{typeKind} C {{ int C = 0; int B; int A; }}"; var final = $@"{typeKind} C {{ int A; int B; int C = 0; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestFieldsWithInitializers2(string typeKind) { var initial = $@"{typeKind} C {{ int C = 0; int B = 0; int A; }}"; var final = $@"{typeKind} C {{ int A; int C = 0; int B = 0; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestEventFieldDeclaration(string typeKind) { var initial = $@"{typeKind} C {{ public void Goo() {{}} public event EventHandler MyEvent; }}"; var final = $@"{typeKind} C {{ public event EventHandler MyEvent; public void Goo() {{}} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestEventDeclaration(string typeKind) { var initial = $@"{typeKind} C {{ public void Goo() {{}} public event EventHandler Event {{ remove {{ }} add {{ }} }} public static int Property {{ get; set; }} }}"; var final = $@"{typeKind} C {{ public static int Property {{ get; set; }} public event EventHandler Event {{ remove {{ }} add {{ }} }} public void Goo() {{}} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestOperator(string typeKind) { var initial = $@"{typeKind} C {{ public void Goo() {{}} public static int operator +(Goo<T> a, int b) {{ return 1; }} }}"; var final = $@"{typeKind} C {{ public static int operator +(Goo<T> a, int b) {{ return 1; }} public void Goo() {{}} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestIndexer(string typeKind) { var initial = $@"{typeKind} C {{ public void Goo() {{}} public T this[int i] {{ get {{ return default(T); }} }} C() {{}} }}"; var final = $@"{typeKind} C {{ C() {{}} public T this[int i] {{ get {{ return default(T); }} }} public void Goo() {{}} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestConstructorAndDestructors(string typeKind) { var initial = $@"{typeKind} C {{ public ~Goo() {{}} enum Days {{Sat, Sun}}; public Goo() {{}} }}"; var final = $@"{typeKind} C {{ public Goo() {{}} public ~Goo() {{}} enum Days {{Sat, Sun}}; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInterface(string typeKind) { var initial = $@"{typeKind} C {{}} interface I {{ void Goo(); int Property {{ get; set; }} event EventHandler Event; }}"; var final = $@"{typeKind} C {{}} interface I {{ event EventHandler Event; int Property {{ get; set; }} void Goo(); }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestStaticInstance(string typeKind) { var initial = $@"{typeKind} C {{ int A; static int B; int C; static int D; }}"; var final = $@"{typeKind} C {{ static int B; static int D; int A; int C; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] [InlineData("record struct")] public async Task TestAccessibility(string typeKind) { var initial = $@"{typeKind} C {{ int A; private int B; internal int C; protected int D; public int E; protected internal int F; }}"; var final = $@"{typeKind} C {{ public int E; protected int D; protected internal int F; internal int C; int A; private int B; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestStaticAccessibility(string typeKind) { var initial = $@"{typeKind} C {{ int A1; private int B1; internal int C1; protected int D1; public int E1; static int A2; static private int B2; static internal int C2; static protected int D2; static public int E2; }}"; var final = $@"{typeKind} C {{ public static int E2; protected static int D2; internal static int C2; static int A2; private static int B2; public int E1; protected int D1; internal int C1; int A1; private int B1; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestGenerics(string typeKind) { var initial = $@"{typeKind} C {{ void B<X,Y>(); void B<Z>(); void B(); void A<X,Y>(); void A<Z>(); void A(); }}"; var final = $@"{typeKind} C {{ void A(); void A<Z>(); void A<X,Y>(); void B(); void B<Z>(); void B<X,Y>(); }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion(string typeKind) { var initial = $@"{typeKind} C {{ #if true int c; int b; int a; #endif }}"; var final = $@"{typeKind} C {{ #if true int a; int b; int c; #endif }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion2(string typeKind) { var initial = $@"{typeKind} C {{ #if true int z; int y; int x; #endif #if true int c; int b; int a; #endif }}"; var final = $@"{typeKind} C {{ #if true int x; int y; int z; #endif #if true int a; int b; int c; #endif }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion3(string typeKind) { var initial = $@"{typeKind} C {{ int z; int y; #if true int x; int c; #endif int b; int a; }}"; var final = $@"{typeKind} C {{ int y; int z; #if true int c; int x; #endif int a; int b; }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion4(string typeKind) { var initial = $@"{typeKind} C {{ int c() {{ }} int b {{ }} int a {{ #if true #endif }} }}"; var final = $@"{typeKind} C {{ int a {{ #if true #endif }} int b {{ }} int c() {{ }} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion5(string typeKind) { var initial = $@"{typeKind} C {{ int c() {{ }} int b {{ }} int a {{ #if true #else #endif }} }}"; var final = $@"{typeKind} C {{ int a {{ #if true #else #endif }} int b {{ }} int c() {{ }} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestInsidePPRegion6(string typeKind) { var initial = $@"{typeKind} C {{ #region int e() {{ }} int d() {{ }} int c() {{ #region }} #endregion int b {{ }} int a {{ }} #endregion }}"; var final = $@"{typeKind} C {{ #region int d() {{ }} int e() {{ }} int c() {{ #region }} #endregion int a {{ }} int b {{ }} #endregion }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestPinned(string typeKind) { var initial = $@"{typeKind} C {{ int z() {{ }} int y() {{ }} int x() {{ #if true }} int n; int m; int c() {{ #endif }} int b() {{ }} int a() {{ }} }}"; var final = $@"{typeKind} C {{ int y() {{ }} int z() {{ }} int x() {{ #if true }} int m; int n; int c() {{ #endif }} int a() {{ }} int b() {{ }} }}"; await CheckAsync(initial, final); } [Theory, Trait(Traits.Feature, Traits.Features.Organizing)] [InlineData("class")] [InlineData("record")] public async Task TestSensitivity(string typeKind) { var initial = $@"{typeKind} C {{ int Bb; int B; int bB; int b; int Aa; int a; int A; int aa; int aA; int AA; int bb; int BB; int bBb; int bbB; int あ; int ア; int ア; int ああ; int あア; int あア; int アあ; int cC; int Cc; int アア; int アア; int アあ; int アア; int アア; int BBb; int BbB; int bBB; int BBB; int c; int C; int bbb; int Bbb; int cc; int cC; int CC; }}"; var final = $@"{typeKind} C {{ int a; int A; int aa; int aA; int Aa; int AA; int b; int B; int bb; int bB; int Bb; int BB; int bbb; int bbB; int bBb; int bBB; int Bbb; int BbB; int BBb; int BBB; int c; int C; int cc; int cC; int cC; int Cc; int CC; int ア; int ア; int あ; int アア; int アア; int アア; int アア; int アあ; int アあ; int あア; int あア; int ああ; }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods1(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods2(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods3(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods4(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods5(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestWhitespaceBetweenMethods6(string typeKind) { var initial = $@"{typeKind} Program {{ void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestMoveComments1(string typeKind) { var initial = $@"{typeKind} Program {{ // B void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} // B void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestMoveComments2(string typeKind) { var initial = $@"{typeKind} Program {{ // B void B() {{ }} // A void A() {{ }} }}"; var final = $@"{typeKind} Program {{ // A void A() {{ }} // B void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestMoveDocComments1(string typeKind) { var initial = $@"{typeKind} Program {{ /// B void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} /// B void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestMoveDocComments2(string typeKind) { var initial = $@"{typeKind} Program {{ /// B void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ void A() {{ }} /// B void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestDontMoveBanner(string typeKind) { var initial = $@"{typeKind} Program {{ // Banner void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ // Banner void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WorkItem(537614, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537614")] [Theory] [InlineData("class")] [InlineData("record")] public async Task TestDontMoveBanner2(string typeKind) { var initial = $@"{typeKind} Program {{ // Banner // More banner // Bannery stuff void B() {{ }} void A() {{ }} }}"; var final = $@"{typeKind} Program {{ // Banner // More banner // Bannery stuff void A() {{ }} void B() {{ }} }}"; await CheckAsync(initial, final); } [WpfFact] [Trait(Traits.Feature, Traits.Features.Organizing)] [Trait(Traits.Feature, Traits.Features.Interactive)] public void OrganizingCommandsDisabledInSubmission() { using var workspace = TestWorkspace.Create(XElement.Parse(@" <Workspace> <Submission Language=""C#"" CommonReferences=""true""> class C { object $$goo; } </Submission> </Workspace> "), workspaceKind: WorkspaceKind.Interactive, composition: EditorTestCompositions.EditorFeaturesWpf); // Force initialization. workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList(); var textView = workspace.Documents.Single().GetTextView(); var handler = new OrganizeDocumentCommandHandler(workspace.ExportProvider.GetExportedValue<IThreadingContext>()); var state = handler.GetCommandState(new SortAndRemoveUnnecessaryImportsCommandArgs(textView, textView.TextBuffer)); Assert.True(state.IsUnspecified); state = handler.GetCommandState(new OrganizeDocumentCommandArgs(textView, textView.TextBuffer)); Assert.True(state.IsUnspecified); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/Core/Portable/CodeGeneration/Symbols/CodeGenerationConstructedNamedTypeSymbol.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.Linq; namespace Microsoft.CodeAnalysis.CodeGeneration { internal class CodeGenerationConstructedNamedTypeSymbol : CodeGenerationAbstractNamedTypeSymbol { private readonly CodeGenerationNamedTypeSymbol _constructedFrom; private readonly ImmutableArray<ITypeSymbol> _typeArguments; public CodeGenerationConstructedNamedTypeSymbol( CodeGenerationNamedTypeSymbol constructedFrom, ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) : base(constructedFrom.ContainingAssembly, constructedFrom.ContainingType, constructedFrom.GetAttributes(), constructedFrom.DeclaredAccessibility, constructedFrom.Modifiers, constructedFrom.Name, constructedFrom.SpecialType, constructedFrom.NullableAnnotation, typeMembers) { _constructedFrom = constructedFrom; this.OriginalDefinition = constructedFrom.OriginalDefinition; _typeArguments = typeArguments; } public override ImmutableArray<ITypeSymbol> TypeArguments => _typeArguments; public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => _typeArguments.SelectAsArray(t => t.NullableAnnotation); public override int Arity => _constructedFrom.Arity; public override bool IsGenericType => _constructedFrom.IsGenericType; public override bool IsUnboundGenericType => false; public override bool IsScriptClass => _constructedFrom.IsScriptClass; public override bool IsImplicitClass => _constructedFrom.IsImplicitClass; public override IEnumerable<string> MemberNames => _constructedFrom.MemberNames; public override IMethodSymbol DelegateInvokeMethod => // NOTE(cyrusn): remember to Construct the result if we implement this. null; public override INamedTypeSymbol EnumUnderlyingType => // NOTE(cyrusn): remember to Construct the result if we implement this. null; protected override CodeGenerationNamedTypeSymbol ConstructedFrom => _constructedFrom; public override INamedTypeSymbol ConstructUnboundGenericType() => null; public override ImmutableArray<IMethodSymbol> InstanceConstructors { get { // TODO(cyrusn): construct these. return this.OriginalDefinition.InstanceConstructors; } } public override ImmutableArray<IMethodSymbol> StaticConstructors { get { // TODO(cyrusn): construct these. return this.OriginalDefinition.StaticConstructors; } } public override ImmutableArray<IMethodSymbol> Constructors { get { // TODO(cyrusn): construct these. return this.OriginalDefinition.Constructors; } } public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() { // TODO(cyrusn): construct these. return ImmutableArray.CreateRange(_constructedFrom.TypeMembers.Cast<INamedTypeSymbol>()); } public override TypeKind TypeKind => _constructedFrom.TypeKind; protected override CodeGenerationTypeSymbol CloneWithNullableAnnotation(NullableAnnotation nullableAnnotation) { return new CodeGenerationConstructedNamedTypeSymbol( (CodeGenerationNamedTypeSymbol)_constructedFrom.WithNullableAnnotation(nullableAnnotation), _typeArguments, this.TypeMembers); } public override ImmutableArray<ITypeParameterSymbol> TypeParameters => _constructedFrom.TypeParameters; } }
// Licensed to the .NET Foundation under one or more 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.Linq; namespace Microsoft.CodeAnalysis.CodeGeneration { internal class CodeGenerationConstructedNamedTypeSymbol : CodeGenerationAbstractNamedTypeSymbol { private readonly CodeGenerationNamedTypeSymbol _constructedFrom; private readonly ImmutableArray<ITypeSymbol> _typeArguments; public CodeGenerationConstructedNamedTypeSymbol( CodeGenerationNamedTypeSymbol constructedFrom, ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) : base(constructedFrom.ContainingAssembly, constructedFrom.ContainingType, constructedFrom.GetAttributes(), constructedFrom.DeclaredAccessibility, constructedFrom.Modifiers, constructedFrom.Name, constructedFrom.SpecialType, constructedFrom.NullableAnnotation, typeMembers) { _constructedFrom = constructedFrom; this.OriginalDefinition = constructedFrom.OriginalDefinition; _typeArguments = typeArguments; } public override ImmutableArray<ITypeSymbol> TypeArguments => _typeArguments; public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => _typeArguments.SelectAsArray(t => t.NullableAnnotation); public override int Arity => _constructedFrom.Arity; public override bool IsGenericType => _constructedFrom.IsGenericType; public override bool IsUnboundGenericType => false; public override bool IsScriptClass => _constructedFrom.IsScriptClass; public override bool IsImplicitClass => _constructedFrom.IsImplicitClass; public override IEnumerable<string> MemberNames => _constructedFrom.MemberNames; public override IMethodSymbol DelegateInvokeMethod => // NOTE(cyrusn): remember to Construct the result if we implement this. null; public override INamedTypeSymbol EnumUnderlyingType => // NOTE(cyrusn): remember to Construct the result if we implement this. null; protected override CodeGenerationNamedTypeSymbol ConstructedFrom => _constructedFrom; public override INamedTypeSymbol ConstructUnboundGenericType() => null; public override ImmutableArray<IMethodSymbol> InstanceConstructors { get { // TODO(cyrusn): construct these. return this.OriginalDefinition.InstanceConstructors; } } public override ImmutableArray<IMethodSymbol> StaticConstructors { get { // TODO(cyrusn): construct these. return this.OriginalDefinition.StaticConstructors; } } public override ImmutableArray<IMethodSymbol> Constructors { get { // TODO(cyrusn): construct these. return this.OriginalDefinition.Constructors; } } public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() { // TODO(cyrusn): construct these. return ImmutableArray.CreateRange(_constructedFrom.TypeMembers.Cast<INamedTypeSymbol>()); } public override TypeKind TypeKind => _constructedFrom.TypeKind; protected override CodeGenerationTypeSymbol CloneWithNullableAnnotation(NullableAnnotation nullableAnnotation) { return new CodeGenerationConstructedNamedTypeSymbol( (CodeGenerationNamedTypeSymbol)_constructedFrom.WithNullableAnnotation(nullableAnnotation), _typeArguments, this.TypeMembers); } public override ImmutableArray<ITypeParameterSymbol> TypeParameters => _constructedFrom.TypeParameters; } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/Core/Portable/PEWriter/Units.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Roslyn.Utilities; using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; namespace Microsoft.Cci { /// <summary> /// A reference to a .NET assembly. /// </summary> internal interface IAssemblyReference : IModuleReference { AssemblyIdentity Identity { get; } Version? AssemblyVersionPattern { get; } } [DebuggerDisplay("{GetDebuggerDisplay(),nq}")] internal struct DefinitionWithLocation : IEquatable<DefinitionWithLocation> { public readonly IDefinition Definition; public readonly int StartLine; public readonly int StartColumn; public readonly int EndLine; public readonly int EndColumn; public DefinitionWithLocation(IDefinition definition, int startLine, int startColumn, int endLine, int endColumn) { Debug.Assert(startLine >= 0); Debug.Assert(startColumn >= 0); Debug.Assert(endLine >= 0); Debug.Assert(endColumn >= 0); Definition = definition; StartLine = startLine; StartColumn = startColumn; EndLine = endLine; EndColumn = endColumn; } private string GetDebuggerDisplay() => $"{Definition} => ({StartLine},{StartColumn}) - ({EndLine}, {EndColumn})"; public override bool Equals(object? obj) { return obj is DefinitionWithLocation other && Equals(other); } public bool Equals(DefinitionWithLocation other) { return Definition == other.Definition && StartLine == other.StartLine && StartColumn == other.StartColumn && EndLine == other.EndLine && EndColumn == other.EndColumn; } public override int GetHashCode() { return Hash.Combine(RuntimeHelpers.GetHashCode(Definition), StartLine.GetHashCode()); } } /// <summary> /// A reference to a .NET module. /// </summary> internal interface IModuleReference : IUnitReference { /// <summary> /// The Assembly that contains this module. May be null if the module is not part of an assembly. /// </summary> IAssemblyReference GetContainingAssembly(EmitContext context); } /// <summary> /// A unit of metadata stored as a single artifact and potentially produced and revised independently from other units. /// Examples of units include .NET assemblies and modules, as well C++ object files and compiled headers. /// </summary> internal interface IUnit : IUnitReference, IDefinition { } /// <summary> /// A reference to a instance of <see cref="IUnit"/>. /// </summary> internal interface IUnitReference : IReference, INamedEntity { } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Roslyn.Utilities; using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; namespace Microsoft.Cci { /// <summary> /// A reference to a .NET assembly. /// </summary> internal interface IAssemblyReference : IModuleReference { AssemblyIdentity Identity { get; } Version? AssemblyVersionPattern { get; } } [DebuggerDisplay("{GetDebuggerDisplay(),nq}")] internal struct DefinitionWithLocation : IEquatable<DefinitionWithLocation> { public readonly IDefinition Definition; public readonly int StartLine; public readonly int StartColumn; public readonly int EndLine; public readonly int EndColumn; public DefinitionWithLocation(IDefinition definition, int startLine, int startColumn, int endLine, int endColumn) { Debug.Assert(startLine >= 0); Debug.Assert(startColumn >= 0); Debug.Assert(endLine >= 0); Debug.Assert(endColumn >= 0); Definition = definition; StartLine = startLine; StartColumn = startColumn; EndLine = endLine; EndColumn = endColumn; } private string GetDebuggerDisplay() => $"{Definition} => ({StartLine},{StartColumn}) - ({EndLine}, {EndColumn})"; public override bool Equals(object? obj) { return obj is DefinitionWithLocation other && Equals(other); } public bool Equals(DefinitionWithLocation other) { return Definition == other.Definition && StartLine == other.StartLine && StartColumn == other.StartColumn && EndLine == other.EndLine && EndColumn == other.EndColumn; } public override int GetHashCode() { return Hash.Combine(RuntimeHelpers.GetHashCode(Definition), StartLine.GetHashCode()); } } /// <summary> /// A reference to a .NET module. /// </summary> internal interface IModuleReference : IUnitReference { /// <summary> /// The Assembly that contains this module. May be null if the module is not part of an assembly. /// </summary> IAssemblyReference GetContainingAssembly(EmitContext context); } /// <summary> /// A unit of metadata stored as a single artifact and potentially produced and revised independently from other units. /// Examples of units include .NET assemblies and modules, as well C++ object files and compiled headers. /// </summary> internal interface IUnit : IUnitReference, IDefinition { } /// <summary> /// A reference to a instance of <see cref="IUnit"/>. /// </summary> internal interface IUnitReference : IReference, INamedEntity { } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/CSharpTest/EditAndContinue/ActiveStatementTests.Methods.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.UnitTests; using Microsoft.CodeAnalysis.EditAndContinue; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests { [UseExportProvider] public class ActiveStatementTests_Methods : EditingTestBase { #region Methods [WorkItem(740443, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/740443")] [Fact] public void Method_Delete_Leaf1() { var src1 = @" class C { static void Main(string[] args) { <AS:1>Goo(1);</AS:1> } static void Goo(int a) { <AS:0>Console.WriteLine(a);</AS:0> } }"; var src2 = @" <AS:0>class C</AS:0> { static void Main(string[] args) { <AS:1>Goo(1);</AS:1> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); EditAndContinueValidation.VerifySemantics( new[] { edits }, new[] { DocumentResults( active, diagnostics: new[] { Diagnostic(RudeEditKind.Delete, "class C", DeletedSymbolDisplay(FeaturesResources.method, "Goo(int a)")) }) }); } [Fact] public void Method_Body_Delete1() { var src1 = "class C { int M() { <AS:0>return 1;</AS:0> } }"; var src2 = "class C { <AS:0>extern int M();</AS:0> }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ModifiersUpdate, "extern int M()", FeaturesResources.method)); } [Fact] public void Method_ExpressionBody_Delete1() { var src1 = "class C { int M() => <AS:0>1</AS:0>; }"; var src2 = "class C { <AS:0>extern int M();</AS:0> }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ModifiersUpdate, "extern int M()", FeaturesResources.method)); } [Fact] public void Method_ExpressionBodyToBlockBody1() { var src1 = "class C { int M() => <AS:0>1</AS:0>; }"; var src2 = "class C { int M() <AS:0>{</AS:0> return 1; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Method_BlockBodyToExpressionBody1() { var src1 = "class C { int M() { <AS:0>return 1;</AS:0> } }"; var src2 = "class C { int M() => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } // Generics [Fact] public void Update_Inner_GenericMethod() { var src1 = @" class C { static void Main(string[] args) { C c = new C(); int a = 5; int b = 10; <AS:1>c.Swap(ref a, ref b);</AS:1> } void Swap<T>(ref T lhs, ref T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } }"; var src2 = @" class C { static void Main(string[] args) { while (true) { C c = new C(); int a = 5; int b = 10; <AS:1>c.Swap(ref b, ref a);</AS:1> } } void Swap<T>(ref T lhs, ref T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "c.Swap(ref b, ref a);")); } [Fact] public void Update_Inner_ParameterType_GenericMethod() { var src1 = @" class C { static void Main(string[] args) { <AS:1>Swap(5,6);</AS:1> } static void Swap<T>(T lhs, T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } }"; var src2 = @" class C { static void Main(string[] args) { while (true) { <AS:1>Swap(null, null);</AS:1> } } static void Swap<T>(T lhs, T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "Swap(null, null);")); } [Fact] public void Update_Leaf_GenericMethod() { var src1 = @" class C { static void Main(string[] args) { <AS:1>Swap(5,6);</AS:1> } static void Swap<T>(T lhs, T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } }"; var src2 = @" class C { static void Main(string[] args) { while (true) { <AS:1>Swap(5,6);</AS:1> } } static void Swap<T>(T lhs, T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello world!"");</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericMethodUpdate, "static void Swap<T>(T lhs, T rhs)")); } // Async [WorkItem(749458, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/749458")] [Fact] public void Update_Leaf_AsyncMethod() { var src1 = @" class Test { static void Main(string[] args) { Test f = new Test(); <AS:1>string result = f.WaitAsync().Result;</AS:1> } public async Task<string> WaitAsync() { <AS:0>await Task.Delay(1000);</AS:0> return ""Done""; } }"; var src2 = @" class Test { static void Main(string[] args) { Test f = new Test(); <AS:1>string result = f.WaitAsync().Result;</AS:1> } public async Task<string> WaitAsync() { <AS:0>await Task.Delay(100);</AS:0> return ""Done""; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [WorkItem(749440, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/749440")] [Fact] public void Update_Inner_AsyncMethod() { var src1 = @" class Test { static void Main(string[] args) { Test f = new Test(); <AS:1>string result = f.WaitAsync(5).Result;</AS:1> } public async Task<string> WaitAsync(int millis) { <AS:0>await Task.Delay(millis);</AS:0> return ""Done""; } }"; var src2 = @" class Test { static void Main(string[] args) { Test f = new Test(); <AS:1>string result = f.WaitAsync(6).Result;</AS:1> } public async Task<string> WaitAsync(int millis) { <AS:0>await Task.Delay(millis);</AS:0> return ""Done""; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "string result = f.WaitAsync(6).Result;")); } [WorkItem(749440, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/749440")] [Fact] public void Update_Initializer_MultipleVariables1() { var src1 = @" class Test { static void Main(string[] args) { <AS:1>int a = F()</AS:1>, b = G(); } public int F() { <AS:0>return 1;</AS:0> } public int G() { return 2; } }"; var src2 = @" class Test { static void Main(string[] args) { <AS:1>int a = G()</AS:1>, b = F(); } public int F() { <AS:0>return 1;</AS:0> } public int G() { return 2; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "int a = G()")); } [WorkItem(749440, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/749440")] [Fact] public void Update_Initializer_MultipleVariables2() { var src1 = @" class Test { static void Main(string[] args) { int a = F(), <AS:1>b = G()</AS:1>; } public int F() { <AS:0>return 1;</AS:0> } public int G() { return 2; } }"; var src2 = @" class Test { static void Main(string[] args) { int a = G(), <AS:1>b = F()</AS:1>; } public int F() { <AS:0>return 1;</AS:0> } public int G() { return 2; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "b = F()")); } [Fact] public void MethodUpdateWithLocalVariables() { var src1 = @" class C { static void Main(string[] args) { int <N:0.0>a = 1</N:0.0>; int <N:0.1>b = 2</N:0.1>; <AS:0>System.Console.WriteLine(a + b);</AS:0> } } "; var src2 = @" class C { static void Main(string[] args) { int <N:0.1>b = 2</N:0.1>; int <N:0.0>a = 1</N:0.0>; <AS:0>System.Console.WriteLine(a + b);</AS:0> } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); var syntaxMap = GetSyntaxMap(src1, src2); edits.VerifySemantics( active, new[] { SemanticEdit(SemanticEditKind.Update, c => c.GetMember("C.Main"), syntaxMap[0]) }); } #endregion #region Constuctors [Fact] public void Constructor_ExpressionBodyToBlockBody1() { var src1 = "class C { int x; C() => <AS:0>x = 1</AS:0>; }"; var src2 = "class C { int x; <AS:0>C()</AS:0> { x = 1; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Constructor_BlockBodyToExpressionBody1() { var src1 = "class C { int x; C() <AS:0>{</AS:0> x = 1; } }"; var src2 = "class C { int x; C() => <AS:0>x = 1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Constructor_BlockBodyToExpressionBody2() { var src1 = "class C { int x; <AS:0>C()</AS:0> { x = 1; } }"; var src2 = "class C { int x; <AS:0>C()</AS:0> => x = 1; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Constructor_BlockBodyToExpressionBody3() { var src1 = "class C { int x; C() : <AS:0>base()</AS:0> { x = 1; } }"; var src2 = "class C { int x; <AS:0>C()</AS:0> => x = 1; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } #endregion #region Properties [Fact] public void Property_ExpressionBodyToBlockBody1() { var src1 = "class C { int P => <AS:0>1</AS:0>; }"; var src2 = "class C { int P { get <AS:0>{</AS:0> return 1; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Property_ExpressionBodyToBlockBody2() { var src1 = "class C { int P => <AS:0>1</AS:0>; }"; var src2 = "class C { int P { get <AS:0>{</AS:0> return 1; } set { } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Property_ExpressionBodyToBlockBody3() { var src1 = "class C { int P => <AS:0>1</AS:0>; }"; var src2 = "class C { int P { set { } get <AS:0>{</AS:0> return 1; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Property_ExpressionBodyToBlockBody_NonLeaf() { var src1 = @" class C { int P => <AS:1>M()</AS:1>; int M() { <AS:0>return 1;</AS:0> } } "; var src2 = @" class C { int P { get <AS:1>{</AS:1> return M(); } } int M() { <AS:0>return 1;</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.DeleteActiveStatement, "get", FeaturesResources.code)); } [Fact] public void Property_BlockBodyToExpressionBody1() { var src1 = "class C { int P { get { <AS:0>return 1;</AS:0> } } }"; var src2 = "class C { int P => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Property_BlockBodyToExpressionBody2() { var src1 = "class C { int P { set { } get { <AS:0>return 1;</AS:0> } } }"; var src2 = "class C { int P => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.Delete, "int P", DeletedSymbolDisplay(CSharpFeaturesResources.property_setter, "P.set"))); } [Fact] public void Property_BlockBodyToExpressionBody_NonLeaf() { var src1 = @" class C { int P { get { <AS:1>return M();</AS:1> } } int M() { <AS:0>return 1;</AS:0> } } "; var src2 = @" class C { int P => <AS:1>M()</AS:1>; int M() { <AS:0>return 1;</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); // Can be improved with https://github.com/dotnet/roslyn/issues/22696 edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.DeleteActiveStatement, "int P", FeaturesResources.code)); } #endregion #region Indexers [Fact] public void Indexer_ExpressionBodyToBlockBody1() { var src1 = "class C { int this[int a] => <AS:0>1</AS:0>; }"; var src2 = "class C { int this[int a] { get <AS:0>{</AS:0> return 1; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Indexer_ExpressionBodyToBlockBody2() { var src1 = "class C { int this[int a] => <AS:0>1</AS:0>; }"; var src2 = "class C { int this[int a] { get <AS:0>{</AS:0> return 1; } set { } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Indexer_BlockBodyToExpressionBody1() { var src1 = "class C { int this[int a] { get { <AS:0>return 1;</AS:0> } } }"; var src2 = "class C { int this[int a] => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Indexer_BlockBodyToExpressionBody2() { var src1 = "class C { int this[int a] { get { <AS:0>return 1;</AS:0> } set { } } }"; var src2 = "class C { int this[int a] => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.Delete, "int this[int a]", DeletedSymbolDisplay(CSharpFeaturesResources.indexer_setter, "this[int a].set"))); } [Fact] public void Update_Leaf_Indexers1() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i+1] = value;</AS:0> } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "set")); } [WorkItem(750244, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/750244")] [Fact] public void Update_Inner_Indexers1() { var src1 = @" using System; class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var src2 = @" using System; class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[1] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i+1] = value;</AS:0> } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); // Rude edits of active statements (AS:1) are not reported if the top-level edits are rude. edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "set"), Diagnostic(RudeEditKind.ActiveStatementUpdate, "stringCollection[1] = \"hello\";")); } [Fact] public void Update_Leaf_Indexers2() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[0];</AS:0> } set { arr[i] = value; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "get")); } [WorkItem(750244, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/750244")] [Fact] public void Update_Inner_Indexers2() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[1]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[0];</AS:0> } set { arr[i] = value; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); // Rude edits of active statements (AS:1) are not reported if the top-level edits are rude. edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "get"), Diagnostic(RudeEditKind.ActiveStatementUpdate, "Console.WriteLine(stringCollection[1]);")); } [Fact] public void Deleted_Leaf_Indexers1() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>}</AS:0> } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "set")); } [Fact] public void Deleted_Inner_Indexers1() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.DeleteActiveStatement, "{", FeaturesResources.code)); } [Fact] public void Deleted_Leaf_Indexers2() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>}</AS:0> set { arr[i] = value; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "get")); } [Fact] public void Deleted_Inner_Indexers2() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>}</AS:1> } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.DeleteActiveStatement, "{", FeaturesResources.code)); } #endregion #region Operators [Fact] public void Operator_ExpressionBodyToBlockBody1() { var src1 = "class C { public static C operator +(C t1, C t2) => <AS:0>null</AS:0>; }"; var src2 = "class C { public static C operator +(C t1, C t2) <AS:0>{</AS:0> return null; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Operator_ExpressionBodyToBlockBody2() { var src1 = "class C { public static explicit operator D(C t) => <AS:0>null</AS:0>; }"; var src2 = "class C { public static explicit operator D(C t) <AS:0>{</AS:0> return null; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Operator_BlockBodyToExpressionBody1() { var src1 = "class C { public static C operator +(C t1, C t2) { <AS:0>return null;</AS:0> } }"; var src2 = "class C { public static C operator +(C t1, C t2) => <AS:0>null</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Operator_BlockBodyToExpressionBody2() { var src1 = "class C { public static explicit operator D(C t) { <AS:0>return null;</AS:0> } }"; var src2 = "class C { public static explicit operator D(C t) => <AS:0>null</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [WorkItem(754274, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/754274")] [Fact] public void Update_Leaf_OverloadedOperator() { var src1 = @" class Test { static void Main(string[] args) { Test t1 = new Test(5); Test t2 = new Test(5); <AS:1>Test t3 = t1 + t2;</AS:1> } public static Test operator +(Test t1, Test t2) { <AS:0>return new Test(t1.a + t2.a);</AS:0> } }"; var src2 = @" class Test { static void Main(string[] args) { Test t1 = new Test(5); Test t2 = new Test(5); <AS:1>Test t3 = t1 + t2;</AS:1> } public static Test operator +(Test t1, Test t2) { <AS:0>return new Test(t1.a + 2 * t2.a);</AS:0> } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [WorkItem(754274, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/754274")] [Fact] public void Update_Inner_OverloadedOperator() { var src1 = @" class Test { static void Main(string[] args) { Test t1 = new Test(5); Test t2 = new Test(5); <AS:1>Test t3 = t1 + t2;</AS:1> } public static Test operator +(Test t1, Test t2) { <AS:0>return new Test(t1.a + t2.a);</AS:0> } public static Test operator *(Test t1, Test t2) { return new Test(t1.a * t2.a); } }"; var src2 = @" class Test { static void Main(string[] args) { Test t1 = new Test(5); Test t2 = new Test(5); <AS:1>Test t3 = t1 * t2;</AS:1> } public static Test operator +(Test t1, Test t2) { <AS:0>return new Test(t1.a + t2.a);</AS:0> } public static Test operator *(Test t1, Test t2) { return new Test(t1.a * t2.a); } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "Test t3 = t1 * t2;")); } #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 Microsoft.CodeAnalysis.CSharp.UnitTests; using Microsoft.CodeAnalysis.EditAndContinue; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests { [UseExportProvider] public class ActiveStatementTests_Methods : EditingTestBase { #region Methods [WorkItem(740443, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/740443")] [Fact] public void Method_Delete_Leaf1() { var src1 = @" class C { static void Main(string[] args) { <AS:1>Goo(1);</AS:1> } static void Goo(int a) { <AS:0>Console.WriteLine(a);</AS:0> } }"; var src2 = @" <AS:0>class C</AS:0> { static void Main(string[] args) { <AS:1>Goo(1);</AS:1> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); EditAndContinueValidation.VerifySemantics( new[] { edits }, new[] { DocumentResults( active, diagnostics: new[] { Diagnostic(RudeEditKind.Delete, "class C", DeletedSymbolDisplay(FeaturesResources.method, "Goo(int a)")) }) }); } [Fact] public void Method_Body_Delete1() { var src1 = "class C { int M() { <AS:0>return 1;</AS:0> } }"; var src2 = "class C { <AS:0>extern int M();</AS:0> }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ModifiersUpdate, "extern int M()", FeaturesResources.method)); } [Fact] public void Method_ExpressionBody_Delete1() { var src1 = "class C { int M() => <AS:0>1</AS:0>; }"; var src2 = "class C { <AS:0>extern int M();</AS:0> }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ModifiersUpdate, "extern int M()", FeaturesResources.method)); } [Fact] public void Method_ExpressionBodyToBlockBody1() { var src1 = "class C { int M() => <AS:0>1</AS:0>; }"; var src2 = "class C { int M() <AS:0>{</AS:0> return 1; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Method_BlockBodyToExpressionBody1() { var src1 = "class C { int M() { <AS:0>return 1;</AS:0> } }"; var src2 = "class C { int M() => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } // Generics [Fact] public void Update_Inner_GenericMethod() { var src1 = @" class C { static void Main(string[] args) { C c = new C(); int a = 5; int b = 10; <AS:1>c.Swap(ref a, ref b);</AS:1> } void Swap<T>(ref T lhs, ref T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } }"; var src2 = @" class C { static void Main(string[] args) { while (true) { C c = new C(); int a = 5; int b = 10; <AS:1>c.Swap(ref b, ref a);</AS:1> } } void Swap<T>(ref T lhs, ref T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "c.Swap(ref b, ref a);")); } [Fact] public void Update_Inner_ParameterType_GenericMethod() { var src1 = @" class C { static void Main(string[] args) { <AS:1>Swap(5,6);</AS:1> } static void Swap<T>(T lhs, T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } }"; var src2 = @" class C { static void Main(string[] args) { while (true) { <AS:1>Swap(null, null);</AS:1> } } static void Swap<T>(T lhs, T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "Swap(null, null);")); } [Fact] public void Update_Leaf_GenericMethod() { var src1 = @" class C { static void Main(string[] args) { <AS:1>Swap(5,6);</AS:1> } static void Swap<T>(T lhs, T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello"");</AS:0> } }"; var src2 = @" class C { static void Main(string[] args) { while (true) { <AS:1>Swap(5,6);</AS:1> } } static void Swap<T>(T lhs, T rhs) where T : System.IComparable<T> { <AS:0>Console.WriteLine(""hello world!"");</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericMethodUpdate, "static void Swap<T>(T lhs, T rhs)")); } // Async [WorkItem(749458, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/749458")] [Fact] public void Update_Leaf_AsyncMethod() { var src1 = @" class Test { static void Main(string[] args) { Test f = new Test(); <AS:1>string result = f.WaitAsync().Result;</AS:1> } public async Task<string> WaitAsync() { <AS:0>await Task.Delay(1000);</AS:0> return ""Done""; } }"; var src2 = @" class Test { static void Main(string[] args) { Test f = new Test(); <AS:1>string result = f.WaitAsync().Result;</AS:1> } public async Task<string> WaitAsync() { <AS:0>await Task.Delay(100);</AS:0> return ""Done""; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [WorkItem(749440, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/749440")] [Fact] public void Update_Inner_AsyncMethod() { var src1 = @" class Test { static void Main(string[] args) { Test f = new Test(); <AS:1>string result = f.WaitAsync(5).Result;</AS:1> } public async Task<string> WaitAsync(int millis) { <AS:0>await Task.Delay(millis);</AS:0> return ""Done""; } }"; var src2 = @" class Test { static void Main(string[] args) { Test f = new Test(); <AS:1>string result = f.WaitAsync(6).Result;</AS:1> } public async Task<string> WaitAsync(int millis) { <AS:0>await Task.Delay(millis);</AS:0> return ""Done""; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "string result = f.WaitAsync(6).Result;")); } [WorkItem(749440, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/749440")] [Fact] public void Update_Initializer_MultipleVariables1() { var src1 = @" class Test { static void Main(string[] args) { <AS:1>int a = F()</AS:1>, b = G(); } public int F() { <AS:0>return 1;</AS:0> } public int G() { return 2; } }"; var src2 = @" class Test { static void Main(string[] args) { <AS:1>int a = G()</AS:1>, b = F(); } public int F() { <AS:0>return 1;</AS:0> } public int G() { return 2; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "int a = G()")); } [WorkItem(749440, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/749440")] [Fact] public void Update_Initializer_MultipleVariables2() { var src1 = @" class Test { static void Main(string[] args) { int a = F(), <AS:1>b = G()</AS:1>; } public int F() { <AS:0>return 1;</AS:0> } public int G() { return 2; } }"; var src2 = @" class Test { static void Main(string[] args) { int a = G(), <AS:1>b = F()</AS:1>; } public int F() { <AS:0>return 1;</AS:0> } public int G() { return 2; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "b = F()")); } [Fact] public void MethodUpdateWithLocalVariables() { var src1 = @" class C { static void Main(string[] args) { int <N:0.0>a = 1</N:0.0>; int <N:0.1>b = 2</N:0.1>; <AS:0>System.Console.WriteLine(a + b);</AS:0> } } "; var src2 = @" class C { static void Main(string[] args) { int <N:0.1>b = 2</N:0.1>; int <N:0.0>a = 1</N:0.0>; <AS:0>System.Console.WriteLine(a + b);</AS:0> } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); var syntaxMap = GetSyntaxMap(src1, src2); edits.VerifySemantics( active, new[] { SemanticEdit(SemanticEditKind.Update, c => c.GetMember("C.Main"), syntaxMap[0]) }); } #endregion #region Constuctors [Fact] public void Constructor_ExpressionBodyToBlockBody1() { var src1 = "class C { int x; C() => <AS:0>x = 1</AS:0>; }"; var src2 = "class C { int x; <AS:0>C()</AS:0> { x = 1; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Constructor_BlockBodyToExpressionBody1() { var src1 = "class C { int x; C() <AS:0>{</AS:0> x = 1; } }"; var src2 = "class C { int x; C() => <AS:0>x = 1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Constructor_BlockBodyToExpressionBody2() { var src1 = "class C { int x; <AS:0>C()</AS:0> { x = 1; } }"; var src2 = "class C { int x; <AS:0>C()</AS:0> => x = 1; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Constructor_BlockBodyToExpressionBody3() { var src1 = "class C { int x; C() : <AS:0>base()</AS:0> { x = 1; } }"; var src2 = "class C { int x; <AS:0>C()</AS:0> => x = 1; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } #endregion #region Properties [Fact] public void Property_ExpressionBodyToBlockBody1() { var src1 = "class C { int P => <AS:0>1</AS:0>; }"; var src2 = "class C { int P { get <AS:0>{</AS:0> return 1; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Property_ExpressionBodyToBlockBody2() { var src1 = "class C { int P => <AS:0>1</AS:0>; }"; var src2 = "class C { int P { get <AS:0>{</AS:0> return 1; } set { } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Property_ExpressionBodyToBlockBody3() { var src1 = "class C { int P => <AS:0>1</AS:0>; }"; var src2 = "class C { int P { set { } get <AS:0>{</AS:0> return 1; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Property_ExpressionBodyToBlockBody_NonLeaf() { var src1 = @" class C { int P => <AS:1>M()</AS:1>; int M() { <AS:0>return 1;</AS:0> } } "; var src2 = @" class C { int P { get <AS:1>{</AS:1> return M(); } } int M() { <AS:0>return 1;</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.DeleteActiveStatement, "get", FeaturesResources.code)); } [Fact] public void Property_BlockBodyToExpressionBody1() { var src1 = "class C { int P { get { <AS:0>return 1;</AS:0> } } }"; var src2 = "class C { int P => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Property_BlockBodyToExpressionBody2() { var src1 = "class C { int P { set { } get { <AS:0>return 1;</AS:0> } } }"; var src2 = "class C { int P => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.Delete, "int P", DeletedSymbolDisplay(CSharpFeaturesResources.property_setter, "P.set"))); } [Fact] public void Property_BlockBodyToExpressionBody_NonLeaf() { var src1 = @" class C { int P { get { <AS:1>return M();</AS:1> } } int M() { <AS:0>return 1;</AS:0> } } "; var src2 = @" class C { int P => <AS:1>M()</AS:1>; int M() { <AS:0>return 1;</AS:0> } } "; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); // Can be improved with https://github.com/dotnet/roslyn/issues/22696 edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.DeleteActiveStatement, "int P", FeaturesResources.code)); } #endregion #region Indexers [Fact] public void Indexer_ExpressionBodyToBlockBody1() { var src1 = "class C { int this[int a] => <AS:0>1</AS:0>; }"; var src2 = "class C { int this[int a] { get <AS:0>{</AS:0> return 1; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Indexer_ExpressionBodyToBlockBody2() { var src1 = "class C { int this[int a] => <AS:0>1</AS:0>; }"; var src2 = "class C { int this[int a] { get <AS:0>{</AS:0> return 1; } set { } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Indexer_BlockBodyToExpressionBody1() { var src1 = "class C { int this[int a] { get { <AS:0>return 1;</AS:0> } } }"; var src2 = "class C { int this[int a] => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Indexer_BlockBodyToExpressionBody2() { var src1 = "class C { int this[int a] { get { <AS:0>return 1;</AS:0> } set { } } }"; var src2 = "class C { int this[int a] => <AS:0>1</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.Delete, "int this[int a]", DeletedSymbolDisplay(CSharpFeaturesResources.indexer_setter, "this[int a].set"))); } [Fact] public void Update_Leaf_Indexers1() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i+1] = value;</AS:0> } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "set")); } [WorkItem(750244, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/750244")] [Fact] public void Update_Inner_Indexers1() { var src1 = @" using System; class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var src2 = @" using System; class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[1] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i+1] = value;</AS:0> } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); // Rude edits of active statements (AS:1) are not reported if the top-level edits are rude. edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "set"), Diagnostic(RudeEditKind.ActiveStatementUpdate, "stringCollection[1] = \"hello\";")); } [Fact] public void Update_Leaf_Indexers2() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[0];</AS:0> } set { arr[i] = value; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "get")); } [WorkItem(750244, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/750244")] [Fact] public void Update_Inner_Indexers2() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[1]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[0];</AS:0> } set { arr[i] = value; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); // Rude edits of active statements (AS:1) are not reported if the top-level edits are rude. edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "get"), Diagnostic(RudeEditKind.ActiveStatementUpdate, "Console.WriteLine(stringCollection[1]);")); } [Fact] public void Deleted_Leaf_Indexers1() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>}</AS:0> } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "set")); } [Fact] public void Deleted_Inner_Indexers1() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>stringCollection[0] = ""hello"";</AS:1> Console.WriteLine(stringCollection[0]); } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { <AS:0>arr[i] = value;</AS:0> } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.DeleteActiveStatement, "{", FeaturesResources.code)); } [Fact] public void Deleted_Leaf_Indexers2() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>}</AS:0> set { arr[i] = value; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.GenericTypeUpdate, "get")); } [Fact] public void Deleted_Inner_Indexers2() { var src1 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>Console.WriteLine(stringCollection[0]);</AS:1> } } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var src2 = @" class Test { static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = ""hello""; <AS:1>}</AS:1> } class SampleCollection<T> { private T[] arr = new T[100]; public T this[int i] { get { <AS:0>return arr[i];</AS:0> } set { arr[i] = value; } } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.DeleteActiveStatement, "{", FeaturesResources.code)); } #endregion #region Operators [Fact] public void Operator_ExpressionBodyToBlockBody1() { var src1 = "class C { public static C operator +(C t1, C t2) => <AS:0>null</AS:0>; }"; var src2 = "class C { public static C operator +(C t1, C t2) <AS:0>{</AS:0> return null; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Operator_ExpressionBodyToBlockBody2() { var src1 = "class C { public static explicit operator D(C t) => <AS:0>null</AS:0>; }"; var src2 = "class C { public static explicit operator D(C t) <AS:0>{</AS:0> return null; } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Operator_BlockBodyToExpressionBody1() { var src1 = "class C { public static C operator +(C t1, C t2) { <AS:0>return null;</AS:0> } }"; var src2 = "class C { public static C operator +(C t1, C t2) => <AS:0>null</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [Fact] public void Operator_BlockBodyToExpressionBody2() { var src1 = "class C { public static explicit operator D(C t) { <AS:0>return null;</AS:0> } }"; var src2 = "class C { public static explicit operator D(C t) => <AS:0>null</AS:0>; }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [WorkItem(754274, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/754274")] [Fact] public void Update_Leaf_OverloadedOperator() { var src1 = @" class Test { static void Main(string[] args) { Test t1 = new Test(5); Test t2 = new Test(5); <AS:1>Test t3 = t1 + t2;</AS:1> } public static Test operator +(Test t1, Test t2) { <AS:0>return new Test(t1.a + t2.a);</AS:0> } }"; var src2 = @" class Test { static void Main(string[] args) { Test t1 = new Test(5); Test t2 = new Test(5); <AS:1>Test t3 = t1 + t2;</AS:1> } public static Test operator +(Test t1, Test t2) { <AS:0>return new Test(t1.a + 2 * t2.a);</AS:0> } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active); } [WorkItem(754274, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/754274")] [Fact] public void Update_Inner_OverloadedOperator() { var src1 = @" class Test { static void Main(string[] args) { Test t1 = new Test(5); Test t2 = new Test(5); <AS:1>Test t3 = t1 + t2;</AS:1> } public static Test operator +(Test t1, Test t2) { <AS:0>return new Test(t1.a + t2.a);</AS:0> } public static Test operator *(Test t1, Test t2) { return new Test(t1.a * t2.a); } }"; var src2 = @" class Test { static void Main(string[] args) { Test t1 = new Test(5); Test t2 = new Test(5); <AS:1>Test t3 = t1 * t2;</AS:1> } public static Test operator +(Test t1, Test t2) { <AS:0>return new Test(t1.a + t2.a);</AS:0> } public static Test operator *(Test t1, Test t2) { return new Test(t1.a * t2.a); } }"; var edits = GetTopEdits(src1, src2); var active = GetActiveStatements(src1, src2); edits.VerifyRudeDiagnostics(active, Diagnostic(RudeEditKind.ActiveStatementUpdate, "Test t3 = t1 * t2;")); } #endregion } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Scripting/CSharp/xlf/CSharpScriptingResources.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="../CSharpScriptingResources.resx"> <body> <trans-unit id="LogoLine1"> <source>Microsoft (R) Visual C# Interactive Compiler version {0}</source> <target state="translated">Microsoft (R) Visual C# 互動編譯器 {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. 著作權所有,並保留一切權利。</target> <note /> </trans-unit> <trans-unit id="InteractiveHelp"> <source>Usage: csi [option] ... [script-file.csx] [script-argument] ... Executes script-file.csx if specified, otherwise launches an interactive REPL (Read Eval Print Loop). Options: /help Display this usage message (alternative form: /?) /version Display the version and exit /i Drop to REPL after executing the specified script. /r:&lt;file&gt; Reference metadata from the specified assembly file (alternative form: /reference) /r:&lt;file list&gt; Reference metadata from the specified assembly files (alternative form: /reference) /lib:&lt;path list&gt; List of directories where to look for libraries specified by #r directive. (alternative forms: /libPath /libPaths) /u:&lt;namespace&gt; Define global namespace using (alternative forms: /using, /usings, /import, /imports) /langversion:? Display the allowed values for language version and exit /langversion:&lt;string&gt; Specify language version such as `latest` (latest version, including minor versions), `default` (same as `latest`), `latestmajor` (latest version, excluding minor versions), `preview` (latest version, including features in unsupported preview), or specific versions like `6` or `7.1` @&lt;file&gt; Read response file for more options -- Indicates that the remaining arguments should not be treated as options. </source> <target state="translated">用法: csi [選項] ... [script-file.csx] [指令碼引數] ... 執行 script-file.csx (如有指定) ,否則啟動互動式 REPL (讀取、求值、輸出」迴圈) 選項: /help 顯示此用法訊息 (替代格式: /?) /version 顯示版本並結束 /i 在執行指定的指令碼之後,中斷進入 REPL。 /r:&lt;檔案&gt; 參考指定之組件檔中的中繼資料 (替代格式: /reference) n /r:&lt;檔案清單&gt; 參考指定之組件檔中的中繼資料 (替代格式: /reference) /lib:&lt;路徑清單&gt; 目錄清單,可從中尋找 #r 指示詞指定的程式庫。 (替代格式: /libPath /libPaths) /u:&lt;命名空間&gt; 定義全域命名空間 (替代格式: /using、/usings、/import、/imports) /langversion:? 顯示允許的語言版本值並結束 /langversion:&lt;字串&gt; 指定語言版本,例如 'latest' (最新版本,包括次要版本)、 'default' (與 'latest' 相同)、 'latestmajor' (最新版本,不包括次要版本)、 'preview' (最新版本,包括不受支援之預覽版中的功能), 或特定版本,例如 '6' 或 '7.1' 等版本 @&lt;檔案&gt; 讀取回應檔,以查看更多選項 -- 指定不應將剩餘的引數視為選項。 </target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../CSharpScriptingResources.resx"> <body> <trans-unit id="LogoLine1"> <source>Microsoft (R) Visual C# Interactive Compiler version {0}</source> <target state="translated">Microsoft (R) Visual C# 互動編譯器 {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. 著作權所有,並保留一切權利。</target> <note /> </trans-unit> <trans-unit id="InteractiveHelp"> <source>Usage: csi [option] ... [script-file.csx] [script-argument] ... Executes script-file.csx if specified, otherwise launches an interactive REPL (Read Eval Print Loop). Options: /help Display this usage message (alternative form: /?) /version Display the version and exit /i Drop to REPL after executing the specified script. /r:&lt;file&gt; Reference metadata from the specified assembly file (alternative form: /reference) /r:&lt;file list&gt; Reference metadata from the specified assembly files (alternative form: /reference) /lib:&lt;path list&gt; List of directories where to look for libraries specified by #r directive. (alternative forms: /libPath /libPaths) /u:&lt;namespace&gt; Define global namespace using (alternative forms: /using, /usings, /import, /imports) /langversion:? Display the allowed values for language version and exit /langversion:&lt;string&gt; Specify language version such as `latest` (latest version, including minor versions), `default` (same as `latest`), `latestmajor` (latest version, excluding minor versions), `preview` (latest version, including features in unsupported preview), or specific versions like `6` or `7.1` @&lt;file&gt; Read response file for more options -- Indicates that the remaining arguments should not be treated as options. </source> <target state="translated">用法: csi [選項] ... [script-file.csx] [指令碼引數] ... 執行 script-file.csx (如有指定) ,否則啟動互動式 REPL (讀取、求值、輸出」迴圈) 選項: /help 顯示此用法訊息 (替代格式: /?) /version 顯示版本並結束 /i 在執行指定的指令碼之後,中斷進入 REPL。 /r:&lt;檔案&gt; 參考指定之組件檔中的中繼資料 (替代格式: /reference) n /r:&lt;檔案清單&gt; 參考指定之組件檔中的中繼資料 (替代格式: /reference) /lib:&lt;路徑清單&gt; 目錄清單,可從中尋找 #r 指示詞指定的程式庫。 (替代格式: /libPath /libPaths) /u:&lt;命名空間&gt; 定義全域命名空間 (替代格式: /using、/usings、/import、/imports) /langversion:? 顯示允許的語言版本值並結束 /langversion:&lt;字串&gt; 指定語言版本,例如 'latest' (最新版本,包括次要版本)、 'default' (與 'latest' 相同)、 'latestmajor' (最新版本,不包括次要版本)、 'preview' (最新版本,包括不受支援之預覽版中的功能), 或特定版本,例如 '6' 或 '7.1' 等版本 @&lt;檔案&gt; 讀取回應檔,以查看更多選項 -- 指定不應將剩餘的引數視為選項。 </target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Analyzers/Core/CodeFixes/UseCollectionInitializer/AbstractUseCollectionInitializerCodeFixProvider.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.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.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.UseCollectionInitializer { internal abstract class AbstractUseCollectionInitializerCodeFixProvider< TSyntaxKind, TExpressionSyntax, TStatementSyntax, TObjectCreationExpressionSyntax, TMemberAccessExpressionSyntax, TInvocationExpressionSyntax, TExpressionStatementSyntax, TVariableDeclaratorSyntax> : SyntaxEditorBasedCodeFixProvider where TSyntaxKind : struct where TExpressionSyntax : SyntaxNode where TStatementSyntax : SyntaxNode where TObjectCreationExpressionSyntax : TExpressionSyntax where TMemberAccessExpressionSyntax : TExpressionSyntax where TInvocationExpressionSyntax : TExpressionSyntax where TExpressionStatementSyntax : TStatementSyntax where TVariableDeclaratorSyntax : SyntaxNode { public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(IDEDiagnosticIds.UseCollectionInitializerDiagnosticId); internal sealed override CodeFixCategory CodeFixCategory => CodeFixCategory.CodeStyle; protected override bool IncludeDiagnosticDuringFixAll(Diagnostic diagnostic) => !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary); public override Task RegisterCodeFixesAsync(CodeFixContext context) { context.RegisterCodeFix( new MyCodeAction(c => FixAsync(context.Document, context.Diagnostics.First(), c)), context.Diagnostics); return Task.CompletedTask; } protected override async Task FixAllAsync( Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) { // Fix-All for this feature is somewhat complicated. As Collection-Initializers // could be arbitrarily nested, we have to make sure that any edits we make // to one Collection-Initializer are seen by any higher ones. In order to do this // we actually process each object-creation-node, one at a time, rewriting // the tree for each node. In order to do this effectively, we use the '.TrackNodes' // feature to keep track of all the object creation nodes as we make edits to // the tree. If we didn't do this, then we wouldn't be able to find the // second object-creation-node after we make the edit for the first one. var workspace = document.Project.Solution.Workspace; var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>(); var originalRoot = editor.OriginalRoot; var originalObjectCreationNodes = new Stack<TObjectCreationExpressionSyntax>(); foreach (var diagnostic in diagnostics) { var objectCreation = (TObjectCreationExpressionSyntax)originalRoot.FindNode( diagnostic.AdditionalLocations[0].SourceSpan, getInnermostNodeForTie: true); originalObjectCreationNodes.Push(objectCreation); } // We're going to be continually editing this tree. Track all the nodes we // care about so we can find them across each edit. document = document.WithSyntaxRoot(originalRoot.TrackNodes(originalObjectCreationNodes)); var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); var currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); while (originalObjectCreationNodes.Count > 0) { var originalObjectCreation = originalObjectCreationNodes.Pop(); var objectCreation = currentRoot.GetCurrentNodes(originalObjectCreation).Single(); var matches = ObjectCreationExpressionAnalyzer<TExpressionSyntax, TStatementSyntax, TObjectCreationExpressionSyntax, TMemberAccessExpressionSyntax, TInvocationExpressionSyntax, TExpressionStatementSyntax, TVariableDeclaratorSyntax>.Analyze( semanticModel, syntaxFacts, objectCreation, cancellationToken); if (matches == null || matches.Value.Length == 0) { continue; } var statement = objectCreation.FirstAncestorOrSelf<TStatementSyntax>(); var newStatement = GetNewStatement(statement, objectCreation, matches.Value) .WithAdditionalAnnotations(Formatter.Annotation); var subEditor = new SyntaxEditor(currentRoot, workspace); subEditor.ReplaceNode(statement, newStatement); foreach (var match in matches) { subEditor.RemoveNode(match, SyntaxRemoveOptions.KeepUnbalancedDirectives); } document = document.WithSyntaxRoot(subEditor.GetChangedRoot()); semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); } editor.ReplaceNode(originalRoot, currentRoot); } protected abstract TStatementSyntax GetNewStatement( TStatementSyntax statement, TObjectCreationExpressionSyntax objectCreation, ImmutableArray<TExpressionStatementSyntax> matches); private class MyCodeAction : CustomCodeActions.DocumentChangeAction { public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument) : base(AnalyzersResources.Collection_initialization_can_be_simplified, createChangedDocument, nameof(AnalyzersResources.Collection_initialization_can_be_simplified)) { } } } }
// Licensed to the .NET Foundation under one or more 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.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.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.UseCollectionInitializer { internal abstract class AbstractUseCollectionInitializerCodeFixProvider< TSyntaxKind, TExpressionSyntax, TStatementSyntax, TObjectCreationExpressionSyntax, TMemberAccessExpressionSyntax, TInvocationExpressionSyntax, TExpressionStatementSyntax, TVariableDeclaratorSyntax> : SyntaxEditorBasedCodeFixProvider where TSyntaxKind : struct where TExpressionSyntax : SyntaxNode where TStatementSyntax : SyntaxNode where TObjectCreationExpressionSyntax : TExpressionSyntax where TMemberAccessExpressionSyntax : TExpressionSyntax where TInvocationExpressionSyntax : TExpressionSyntax where TExpressionStatementSyntax : TStatementSyntax where TVariableDeclaratorSyntax : SyntaxNode { public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(IDEDiagnosticIds.UseCollectionInitializerDiagnosticId); internal sealed override CodeFixCategory CodeFixCategory => CodeFixCategory.CodeStyle; protected override bool IncludeDiagnosticDuringFixAll(Diagnostic diagnostic) => !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary); public override Task RegisterCodeFixesAsync(CodeFixContext context) { context.RegisterCodeFix( new MyCodeAction(c => FixAsync(context.Document, context.Diagnostics.First(), c)), context.Diagnostics); return Task.CompletedTask; } protected override async Task FixAllAsync( Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) { // Fix-All for this feature is somewhat complicated. As Collection-Initializers // could be arbitrarily nested, we have to make sure that any edits we make // to one Collection-Initializer are seen by any higher ones. In order to do this // we actually process each object-creation-node, one at a time, rewriting // the tree for each node. In order to do this effectively, we use the '.TrackNodes' // feature to keep track of all the object creation nodes as we make edits to // the tree. If we didn't do this, then we wouldn't be able to find the // second object-creation-node after we make the edit for the first one. var workspace = document.Project.Solution.Workspace; var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>(); var originalRoot = editor.OriginalRoot; var originalObjectCreationNodes = new Stack<TObjectCreationExpressionSyntax>(); foreach (var diagnostic in diagnostics) { var objectCreation = (TObjectCreationExpressionSyntax)originalRoot.FindNode( diagnostic.AdditionalLocations[0].SourceSpan, getInnermostNodeForTie: true); originalObjectCreationNodes.Push(objectCreation); } // We're going to be continually editing this tree. Track all the nodes we // care about so we can find them across each edit. document = document.WithSyntaxRoot(originalRoot.TrackNodes(originalObjectCreationNodes)); var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); var currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); while (originalObjectCreationNodes.Count > 0) { var originalObjectCreation = originalObjectCreationNodes.Pop(); var objectCreation = currentRoot.GetCurrentNodes(originalObjectCreation).Single(); var matches = ObjectCreationExpressionAnalyzer<TExpressionSyntax, TStatementSyntax, TObjectCreationExpressionSyntax, TMemberAccessExpressionSyntax, TInvocationExpressionSyntax, TExpressionStatementSyntax, TVariableDeclaratorSyntax>.Analyze( semanticModel, syntaxFacts, objectCreation, cancellationToken); if (matches == null || matches.Value.Length == 0) { continue; } var statement = objectCreation.FirstAncestorOrSelf<TStatementSyntax>(); var newStatement = GetNewStatement(statement, objectCreation, matches.Value) .WithAdditionalAnnotations(Formatter.Annotation); var subEditor = new SyntaxEditor(currentRoot, workspace); subEditor.ReplaceNode(statement, newStatement); foreach (var match in matches) { subEditor.RemoveNode(match, SyntaxRemoveOptions.KeepUnbalancedDirectives); } document = document.WithSyntaxRoot(subEditor.GetChangedRoot()); semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); } editor.ReplaceNode(originalRoot, currentRoot); } protected abstract TStatementSyntax GetNewStatement( TStatementSyntax statement, TObjectCreationExpressionSyntax objectCreation, ImmutableArray<TExpressionStatementSyntax> matches); private class MyCodeAction : CustomCodeActions.DocumentChangeAction { public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument) : base(AnalyzersResources.Collection_initialization_can_be_simplified, createChangedDocument, nameof(AnalyzersResources.Collection_initialization_can_be_simplified)) { } } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/EditorFeatures/VisualBasic/xlf/VBEditorResources.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="../VBEditorResources.resx"> <body> <trans-unit id="Add_Missing_Imports_on_Paste"> <source>Add Missing Imports on Paste</source> <target state="translated">붙여넣을 때 누락된 import 추가</target> <note>"imports" is a language specific term and should not be localized</note> </trans-unit> <trans-unit id="Adding_missing_imports"> <source>Adding missing imports...</source> <target state="translated">누락된 import 추가 중...</target> <note>Thread awaited dialog text. "imports" is a language specific term and should not be localized</note> </trans-unit> <trans-unit id="Case_Correction"> <source>Case Correction</source> <target state="translated">대/소문자 수정</target> <note /> </trans-unit> <trans-unit id="Correcting_word_casing"> <source>Correcting word casing...</source> <target state="translated">단어 대/소문자 수정 중...</target> <note /> </trans-unit> <trans-unit id="This_call_is_required_by_the_designer"> <source>This call is required by the designer.</source> <target state="translated">디자이너에서 이 호출이 필요합니다.</target> <note /> </trans-unit> <trans-unit id="Add_any_initialization_after_the_InitializeComponent_call"> <source>Add any initialization after the InitializeComponent() call.</source> <target state="translated">InitializeComponent() 호출 뒤에 초기화 코드를 추가하세요.</target> <note /> </trans-unit> <trans-unit id="End_Construct"> <source>End Construct</source> <target state="translated">구문 종료</target> <note /> </trans-unit> <trans-unit id="Smart_Indenting"> <source>Smart Indenting</source> <target state="translated">스마트 들여쓰기</target> <note /> </trans-unit> <trans-unit id="Formatting_Document"> <source>Formatting Document...</source> <target state="translated">문서 서식을 지정하는 중...</target> <note /> </trans-unit> <trans-unit id="Insert_new_line"> <source>Insert new line</source> <target state="translated">새 줄 삽입</target> <note /> </trans-unit> <trans-unit id="Format_Paste"> <source>Format Paste</source> <target state="translated">서식 붙여넣기</target> <note /> </trans-unit> <trans-unit id="Formatting_pasted_text"> <source>Formatting pasted text...</source> <target state="translated">붙여넣은 텍스트의 서식을 지정하는 중...</target> <note /> </trans-unit> <trans-unit id="Paste"> <source>Paste</source> <target state="translated">붙여넣기</target> <note /> </trans-unit> <trans-unit id="Format_on_Save"> <source>Format on Save</source> <target state="translated">저장 시 서식 지정</target> <note /> </trans-unit> <trans-unit id="Committing_line"> <source>Committing line</source> <target state="translated">줄 커밋 중</target> <note /> </trans-unit> <trans-unit id="Visual_Basic_Pretty_List"> <source>Visual Basic Pretty List</source> <target state="translated">Visual Basic 서식 다시 적용</target> <note /> </trans-unit> <trans-unit id="not_supported"> <source>not supported</source> <target state="translated">지원되지 않음</target> <note /> </trans-unit> <trans-unit id="Generate_Member"> <source>Generate Member</source> <target state="translated">멤버 생성</target> <note /> </trans-unit> <trans-unit id="Line_commit"> <source>Line commit</source> <target state="translated">줄 커밋</target> <note /> </trans-unit> <trans-unit id="Implement_Abstract_Class_Or_Interface"> <source>Implement Abstract Class Or Interface</source> <target state="translated">추상 클래스 또는 인터페이스 구현</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="../VBEditorResources.resx"> <body> <trans-unit id="Add_Missing_Imports_on_Paste"> <source>Add Missing Imports on Paste</source> <target state="translated">붙여넣을 때 누락된 import 추가</target> <note>"imports" is a language specific term and should not be localized</note> </trans-unit> <trans-unit id="Adding_missing_imports"> <source>Adding missing imports...</source> <target state="translated">누락된 import 추가 중...</target> <note>Thread awaited dialog text. "imports" is a language specific term and should not be localized</note> </trans-unit> <trans-unit id="Case_Correction"> <source>Case Correction</source> <target state="translated">대/소문자 수정</target> <note /> </trans-unit> <trans-unit id="Correcting_word_casing"> <source>Correcting word casing...</source> <target state="translated">단어 대/소문자 수정 중...</target> <note /> </trans-unit> <trans-unit id="This_call_is_required_by_the_designer"> <source>This call is required by the designer.</source> <target state="translated">디자이너에서 이 호출이 필요합니다.</target> <note /> </trans-unit> <trans-unit id="Add_any_initialization_after_the_InitializeComponent_call"> <source>Add any initialization after the InitializeComponent() call.</source> <target state="translated">InitializeComponent() 호출 뒤에 초기화 코드를 추가하세요.</target> <note /> </trans-unit> <trans-unit id="End_Construct"> <source>End Construct</source> <target state="translated">구문 종료</target> <note /> </trans-unit> <trans-unit id="Smart_Indenting"> <source>Smart Indenting</source> <target state="translated">스마트 들여쓰기</target> <note /> </trans-unit> <trans-unit id="Formatting_Document"> <source>Formatting Document...</source> <target state="translated">문서 서식을 지정하는 중...</target> <note /> </trans-unit> <trans-unit id="Insert_new_line"> <source>Insert new line</source> <target state="translated">새 줄 삽입</target> <note /> </trans-unit> <trans-unit id="Format_Paste"> <source>Format Paste</source> <target state="translated">서식 붙여넣기</target> <note /> </trans-unit> <trans-unit id="Formatting_pasted_text"> <source>Formatting pasted text...</source> <target state="translated">붙여넣은 텍스트의 서식을 지정하는 중...</target> <note /> </trans-unit> <trans-unit id="Paste"> <source>Paste</source> <target state="translated">붙여넣기</target> <note /> </trans-unit> <trans-unit id="Format_on_Save"> <source>Format on Save</source> <target state="translated">저장 시 서식 지정</target> <note /> </trans-unit> <trans-unit id="Committing_line"> <source>Committing line</source> <target state="translated">줄 커밋 중</target> <note /> </trans-unit> <trans-unit id="Visual_Basic_Pretty_List"> <source>Visual Basic Pretty List</source> <target state="translated">Visual Basic 서식 다시 적용</target> <note /> </trans-unit> <trans-unit id="not_supported"> <source>not supported</source> <target state="translated">지원되지 않음</target> <note /> </trans-unit> <trans-unit id="Generate_Member"> <source>Generate Member</source> <target state="translated">멤버 생성</target> <note /> </trans-unit> <trans-unit id="Line_commit"> <source>Line commit</source> <target state="translated">줄 커밋</target> <note /> </trans-unit> <trans-unit id="Implement_Abstract_Class_Or_Interface"> <source>Implement Abstract Class Or Interface</source> <target state="translated">추상 클래스 또는 인터페이스 구현</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Analyzers/CSharp/Tests/UseVarTestExtensions.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.CodeStyle; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions; #if CODE_STYLE using AbstractCodeActionOrUserDiagnosticTest = Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Diagnostics.AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest; #endif namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeActions { internal static class UseVarTestExtensions { private static readonly CodeStyleOption2<bool> onWithNone = new CodeStyleOption2<bool>(true, NotificationOption2.None); private static readonly CodeStyleOption2<bool> offWithNone = new CodeStyleOption2<bool>(false, NotificationOption2.None); private static readonly CodeStyleOption2<bool> onWithSilent = new CodeStyleOption2<bool>(true, NotificationOption2.Silent); private static readonly CodeStyleOption2<bool> offWithSilent = new CodeStyleOption2<bool>(false, NotificationOption2.Silent); private static readonly CodeStyleOption2<bool> onWithInfo = new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion); private static readonly CodeStyleOption2<bool> offWithInfo = new CodeStyleOption2<bool>(false, NotificationOption2.Suggestion); private static readonly CodeStyleOption2<bool> onWithWarning = new CodeStyleOption2<bool>(true, NotificationOption2.Warning); private static readonly CodeStyleOption2<bool> offWithWarning = new CodeStyleOption2<bool>(false, NotificationOption2.Warning); private static readonly CodeStyleOption2<bool> offWithError = new CodeStyleOption2<bool>(false, NotificationOption2.Error); private static readonly CodeStyleOption2<bool> onWithError = new CodeStyleOption2<bool>(true, NotificationOption2.Error); public static OptionsCollection PreferExplicitTypeWithError(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithError }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithError }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithError }, }; public static OptionsCollection PreferImplicitTypeWithError(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithError }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithError }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithError }, }; public static OptionsCollection PreferExplicitTypeWithWarning(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithWarning }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithWarning }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithWarning }, }; public static OptionsCollection PreferImplicitTypeWithWarning(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithWarning }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithWarning }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithWarning }, }; public static OptionsCollection PreferExplicitTypeWithInfo(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithInfo }, }; public static OptionsCollection PreferImplicitTypeWithInfo(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithInfo }, }; public static OptionsCollection PreferExplicitTypeWithSilent(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithSilent }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithSilent }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithSilent }, }; public static OptionsCollection PreferImplicitTypeWithSilent(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithSilent }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithSilent }, }; public static OptionsCollection PreferExplicitTypeWithNone(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithNone }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithNone }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithNone }, }; public static OptionsCollection PreferImplicitTypeWithNone(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithNone }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithNone }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithNone }, }; } }
// Licensed to the .NET Foundation under one or more 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.CodeStyle; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions; #if CODE_STYLE using AbstractCodeActionOrUserDiagnosticTest = Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Diagnostics.AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest; #endif namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeActions { internal static class UseVarTestExtensions { private static readonly CodeStyleOption2<bool> onWithNone = new CodeStyleOption2<bool>(true, NotificationOption2.None); private static readonly CodeStyleOption2<bool> offWithNone = new CodeStyleOption2<bool>(false, NotificationOption2.None); private static readonly CodeStyleOption2<bool> onWithSilent = new CodeStyleOption2<bool>(true, NotificationOption2.Silent); private static readonly CodeStyleOption2<bool> offWithSilent = new CodeStyleOption2<bool>(false, NotificationOption2.Silent); private static readonly CodeStyleOption2<bool> onWithInfo = new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion); private static readonly CodeStyleOption2<bool> offWithInfo = new CodeStyleOption2<bool>(false, NotificationOption2.Suggestion); private static readonly CodeStyleOption2<bool> onWithWarning = new CodeStyleOption2<bool>(true, NotificationOption2.Warning); private static readonly CodeStyleOption2<bool> offWithWarning = new CodeStyleOption2<bool>(false, NotificationOption2.Warning); private static readonly CodeStyleOption2<bool> offWithError = new CodeStyleOption2<bool>(false, NotificationOption2.Error); private static readonly CodeStyleOption2<bool> onWithError = new CodeStyleOption2<bool>(true, NotificationOption2.Error); public static OptionsCollection PreferExplicitTypeWithError(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithError }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithError }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithError }, }; public static OptionsCollection PreferImplicitTypeWithError(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithError }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithError }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithError }, }; public static OptionsCollection PreferExplicitTypeWithWarning(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithWarning }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithWarning }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithWarning }, }; public static OptionsCollection PreferImplicitTypeWithWarning(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithWarning }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithWarning }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithWarning }, }; public static OptionsCollection PreferExplicitTypeWithInfo(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithInfo }, }; public static OptionsCollection PreferImplicitTypeWithInfo(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithInfo }, }; public static OptionsCollection PreferExplicitTypeWithSilent(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithSilent }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithSilent }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithSilent }, }; public static OptionsCollection PreferImplicitTypeWithSilent(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithSilent }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithSilent }, }; public static OptionsCollection PreferExplicitTypeWithNone(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, offWithNone }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithNone }, { CSharpCodeStyleOptions.VarForBuiltInTypes, offWithNone }, }; public static OptionsCollection PreferImplicitTypeWithNone(this AbstractCodeActionOrUserDiagnosticTest test) => new OptionsCollection(test.GetLanguage()) { { CSharpCodeStyleOptions.VarElsewhere, onWithNone }, { CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithNone }, { CSharpCodeStyleOptions.VarForBuiltInTypes, onWithNone }, }; } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/CSharp/Portable/Binder/Binder_Query.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { /// <summary> /// This portion of the binder converts a QueryExpressionSyntax into a BoundExpression /// </summary> internal partial class Binder { private const string transparentIdentifierPrefix = "<>h__TransparentIdentifier"; internal BoundExpression BindQuery(QueryExpressionSyntax node, BindingDiagnosticBag diagnostics) { var fromClause = node.FromClause; var boundFromExpression = BindLeftOfPotentialColorColorMemberAccess(fromClause.Expression, diagnostics); // If the from expression is of the type dynamic we can't infer the types for any lambdas that occur in the query. // Only if there are none we could bind the query but we report an error regardless since such queries are not useful. if (boundFromExpression.HasDynamicType()) { diagnostics.Add(ErrorCode.ERR_BadDynamicQuery, fromClause.Expression.Location); boundFromExpression = BadExpression(fromClause.Expression, boundFromExpression); } else { boundFromExpression = BindToNaturalType(boundFromExpression, diagnostics); } QueryTranslationState state = new QueryTranslationState(); state.fromExpression = MakeMemberAccessValue(boundFromExpression, diagnostics); var x = state.rangeVariable = state.AddRangeVariable(this, fromClause.Identifier, diagnostics); for (int i = node.Body.Clauses.Count - 1; i >= 0; i--) { state.clauses.Push(node.Body.Clauses[i]); } state.selectOrGroup = node.Body.SelectOrGroup; // A from clause that explicitly specifies a range variable type // from T x in e // is translated into // from x in ( e ) . Cast < T > ( ) BoundExpression? cast = null; if (fromClause.Type != null) { var typeRestriction = BindTypeArgument(fromClause.Type, diagnostics); cast = MakeQueryInvocation(fromClause, state.fromExpression, "Cast", fromClause.Type, typeRestriction, diagnostics); state.fromExpression = cast; } state.fromExpression = MakeQueryClause(fromClause, state.fromExpression, x, castInvocation: cast); BoundExpression result = BindQueryInternal1(state, diagnostics); for (QueryContinuationSyntax? continuation = node.Body.Continuation; continuation != null; continuation = continuation.Body.Continuation) { // A query expression with a continuation // from ... into x ... // is translated into // from x in ( from ... ) ... state.Clear(); state.fromExpression = result; x = state.rangeVariable = state.AddRangeVariable(this, continuation.Identifier, diagnostics); Debug.Assert(state.clauses.IsEmpty()); var clauses = continuation.Body.Clauses; for (int i = clauses.Count - 1; i >= 0; i--) { state.clauses.Push(clauses[i]); } state.selectOrGroup = continuation.Body.SelectOrGroup; result = BindQueryInternal1(state, diagnostics); result = MakeQueryClause(continuation.Body, result, x); result = MakeQueryClause(continuation, result, x); } state.Free(); return MakeQueryClause(node, result); } private BoundExpression BindQueryInternal1(QueryTranslationState state, BindingDiagnosticBag diagnostics) { // If the query is a degenerate one the form "from x in e select x", but in source, // then we go ahead and generate the select anyway. We do this by skipping BindQueryInternal2, // whose job it is to (reduce away the whole query and) optimize away degenerate queries. return IsDegenerateQuery(state) ? FinalTranslation(state, diagnostics) : BindQueryInternal2(state, diagnostics); } private static bool IsDegenerateQuery(QueryTranslationState state) { if (!state.clauses.IsEmpty()) return false; // A degenerate query is of the form "from x in e select x". var select = state.selectOrGroup as SelectClauseSyntax; if (select == null) return false; var name = select.Expression as IdentifierNameSyntax; return name != null && state.rangeVariable.Name == name.Identifier.ValueText; } private BoundExpression BindQueryInternal2(QueryTranslationState state, BindingDiagnosticBag diagnostics) { // we continue reducing the query until it is reduced away. while (true) { if (state.clauses.IsEmpty()) { if (state.selectOrGroup == null) { return state.fromExpression; // already reduced away } if (IsDegenerateQuery(state)) { // A query expression of the form // from x in e select x // is translated into // ( e ) var result = state.fromExpression; // ignore missing or malformed Select method BoundExpression? unoptimized = FinalTranslation(state, BindingDiagnosticBag.Discarded); if (unoptimized.HasAnyErrors && !result.HasAnyErrors) unoptimized = null; return MakeQueryClause(state.selectOrGroup, result, unoptimizedForm: unoptimized); } return FinalTranslation(state, diagnostics); } ReduceQuery(state, diagnostics); } } private BoundExpression FinalTranslation(QueryTranslationState state, BindingDiagnosticBag diagnostics) { Debug.Assert(state.clauses.IsEmpty()); switch (state.selectOrGroup.Kind()) { case SyntaxKind.SelectClause: { // A query expression of the form // from x in e select v // is translated into // ( e ) . Select ( x => v ) var selectClause = (SelectClauseSyntax)state.selectOrGroup; var x = state.rangeVariable; var e = state.fromExpression; var v = selectClause.Expression; var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), x, v, diagnostics.AccumulatesDependencies); var result = MakeQueryInvocation(state.selectOrGroup, e, "Select", lambda, diagnostics); return MakeQueryClause(selectClause, result, queryInvocation: result); } case SyntaxKind.GroupClause: { // A query expression of the form // from x in e group v by k // is translated into // ( e ) . GroupBy ( x => k , x => v ) // except when v is the identifier x, the translation is // ( e ) . GroupBy ( x => k ) var groupClause = (GroupClauseSyntax)state.selectOrGroup; var x = state.rangeVariable; var e = state.fromExpression; var v = groupClause.GroupExpression; var k = groupClause.ByExpression; var vId = v as IdentifierNameSyntax; BoundCall result; var lambdaLeft = MakeQueryUnboundLambda(state.RangeVariableMap(), x, k, diagnostics.AccumulatesDependencies); // this is the unoptimized form (when v is not the identifier x) var d = BindingDiagnosticBag.GetInstance(diagnostics); BoundExpression lambdaRight = MakeQueryUnboundLambda(state.RangeVariableMap(), x, v, diagnostics.AccumulatesDependencies); result = MakeQueryInvocation(state.selectOrGroup, e, "GroupBy", ImmutableArray.Create(lambdaLeft, lambdaRight), d); // k and v appear reversed in the invocation, so we reorder their evaluation result = ReverseLastTwoParameterOrder(result); BoundExpression? unoptimizedForm = null; if (vId != null && vId.Identifier.ValueText == x.Name) { // The optimized form. We store the unoptimized form for analysis unoptimizedForm = result; result = MakeQueryInvocation(state.selectOrGroup, e, "GroupBy", lambdaLeft, diagnostics); if (unoptimizedForm.HasAnyErrors && !result.HasAnyErrors) unoptimizedForm = null; } else { diagnostics.AddRange(d); } d.Free(); return MakeQueryClause(groupClause, result, queryInvocation: result, unoptimizedForm: unoptimizedForm); } default: { // there should have been a syntax error if we get here. Debug.Assert(state.fromExpression.Type is { }); return new BoundBadExpression( state.selectOrGroup, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(state.fromExpression), state.fromExpression.Type); } } } private static BoundCall ReverseLastTwoParameterOrder(BoundCall result) { // The input call has its arguments in the appropriate order for the invocation, but its last // two argument expressions appear in the reverse order from which they appeared in source. // Since we want region analysis to see them in source order, we rewrite the call so that these // two arguments are evaluated in source order. int n = result.Arguments.Length; var arguments = ArrayBuilder<BoundExpression>.GetInstance(); arguments.AddRange(result.Arguments); var lastArgument = arguments[n - 1]; arguments[n - 1] = arguments[n - 2]; arguments[n - 2] = lastArgument; var argsToParams = ArrayBuilder<int>.GetInstance(); argsToParams.AddRange(Enumerable.Range(0, n)); argsToParams[n - 1] = n - 2; argsToParams[n - 2] = n - 1; var defaultArguments = result.DefaultArguments.Clone(); (defaultArguments[n - 1], defaultArguments[n - 2]) = (defaultArguments[n - 2], defaultArguments[n - 1]); return result.Update( result.ReceiverOpt, result.Method, arguments.ToImmutableAndFree(), argumentNamesOpt: default, argumentRefKindsOpt: default, result.IsDelegateCall, result.Expanded, result.InvokedAsExtensionMethod, argsToParams.ToImmutableAndFree(), defaultArguments, result.ResultKind, result.OriginalMethodsOpt, result.Type); } private void ReduceQuery(QueryTranslationState state, BindingDiagnosticBag diagnostics) { var topClause = state.clauses.Pop(); switch (topClause.Kind()) { case SyntaxKind.WhereClause: ReduceWhere((WhereClauseSyntax)topClause, state, diagnostics); break; case SyntaxKind.JoinClause: ReduceJoin((JoinClauseSyntax)topClause, state, diagnostics); break; case SyntaxKind.OrderByClause: ReduceOrderBy((OrderByClauseSyntax)topClause, state, diagnostics); break; case SyntaxKind.FromClause: ReduceFrom((FromClauseSyntax)topClause, state, diagnostics); break; case SyntaxKind.LetClause: ReduceLet((LetClauseSyntax)topClause, state, diagnostics); break; default: throw ExceptionUtilities.UnexpectedValue(topClause.Kind()); } } private void ReduceWhere(WhereClauseSyntax where, QueryTranslationState state, BindingDiagnosticBag diagnostics) { // A query expression with a where clause // from x in e // where f // ... // is translated into // from x in ( e ) . Where ( x => f ) var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, where.Condition, diagnostics.AccumulatesDependencies); var invocation = MakeQueryInvocation(where, state.fromExpression, "Where", lambda, diagnostics); state.fromExpression = MakeQueryClause(where, invocation, queryInvocation: invocation); } private void ReduceJoin(JoinClauseSyntax join, QueryTranslationState state, BindingDiagnosticBag diagnostics) { var inExpression = BindRValueWithoutTargetType(join.InExpression, diagnostics); // If the from expression is of the type dynamic we can't infer the types for any lambdas that occur in the query. // Only if there are none we could bind the query but we report an error regardless since such queries are not useful. if (inExpression.HasDynamicType()) { diagnostics.Add(ErrorCode.ERR_BadDynamicQuery, join.InExpression.Location); inExpression = BadExpression(join.InExpression, inExpression); } BoundExpression? castInvocation = null; if (join.Type != null) { // A join clause that explicitly specifies a range variable type // join T x in e on k1 equals k2 // is translated into // join x in ( e ) . Cast < T > ( ) on k1 equals k2 var castType = BindTypeArgument(join.Type, diagnostics); castInvocation = MakeQueryInvocation(join, inExpression, "Cast", join.Type, castType, diagnostics); inExpression = castInvocation; } var outerKeySelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, join.LeftExpression, diagnostics.AccumulatesDependencies); var x1 = state.rangeVariable; var x2 = state.AddRangeVariable(this, join.Identifier, diagnostics); var innerKeySelectorLambda = MakeQueryUnboundLambda(QueryTranslationState.RangeVariableMap(x2), x2, join.RightExpression, diagnostics.AccumulatesDependencies); if (state.clauses.IsEmpty() && state.selectOrGroup.Kind() == SyntaxKind.SelectClause) { var select = (SelectClauseSyntax)state.selectOrGroup; BoundCall invocation; if (join.Into == null) { // A query expression with a join clause without an into followed by a select clause // from x1 in e1 // join x2 in e2 on k1 equals k2 // select v // is translated into // ( e1 ) . Join( e2 , x1 => k1 , x2 => k2 , ( x1 , x2 ) => v ) var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies); invocation = MakeQueryInvocation( join, state.fromExpression, "Join", ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), diagnostics); } else { // A query expression with a join clause with an into followed by a select clause // from x1 in e1 // join x2 in e2 on k1 equals k2 into g // select v // is translated into // ( e1 ) . GroupJoin( e2 , x1 => k1 , x2 => k2 , ( x1 , g ) => v ) state.allRangeVariables[x2].Free(); state.allRangeVariables.Remove(x2); var g = state.AddRangeVariable(this, join.Into.Identifier, diagnostics); var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, g), select.Expression, diagnostics.AccumulatesDependencies); invocation = MakeQueryInvocation( join, state.fromExpression, "GroupJoin", ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), diagnostics); // record the into clause in the bound tree var arguments = invocation.Arguments; arguments = arguments.SetItem(arguments.Length - 1, MakeQueryClause(join.Into, arguments[arguments.Length - 1], g)); invocation = invocation.Update(invocation.ReceiverOpt, invocation.Method, arguments); } state.Clear(); // this completes the whole query state.fromExpression = MakeQueryClause(join, invocation, x2, invocation, castInvocation); state.fromExpression = MakeQueryClause(select, state.fromExpression); } else { BoundCall invocation; if (join.Into == null) { // A query expression with a join clause without an into followed by something other than a select clause // from x1 in e1 // join x2 in e2 on k1 equals k2 // ... // is translated into // from * in ( e1 ) . Join( // e2 , x1 => k1 , x2 => k2 , ( x1 , x2 ) => new { x1 , x2 }) // ... var resultSelectorLambda = MakePairLambda(join, state, x1, x2, diagnostics.AccumulatesDependencies); invocation = MakeQueryInvocation( join, state.fromExpression, "Join", ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), diagnostics); } else { // A query expression with a join clause with an into followed by something other than a select clause // from x1 in e1 // join x2 in e2 on k1 equals k2 into g // ... // is translated into // from * in ( e1 ) . GroupJoin( // e2 , x1 => k1 , x2 => k2 , ( x1 , g ) => new { x1 , g }) // ... state.allRangeVariables[x2].Free(); state.allRangeVariables.Remove(x2); var g = state.AddRangeVariable(this, join.Into.Identifier, diagnostics); var resultSelectorLambda = MakePairLambda(join, state, x1, g, diagnostics.AccumulatesDependencies); invocation = MakeQueryInvocation( join, state.fromExpression, "GroupJoin", ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), diagnostics); var arguments = invocation.Arguments; arguments = arguments.SetItem(arguments.Length - 1, MakeQueryClause(join.Into, arguments[arguments.Length - 1], g)); invocation = invocation.Update(invocation.ReceiverOpt, invocation.Method, arguments); } state.fromExpression = MakeQueryClause(join, invocation, x2, invocation, castInvocation); } } private void ReduceOrderBy(OrderByClauseSyntax orderby, QueryTranslationState state, BindingDiagnosticBag diagnostics) { // A query expression with an orderby clause // from x in e // orderby k1 , k2 , ... , kn // ... // is translated into // from x in ( e ) . // OrderBy ( x => k1 ) . // ThenBy ( x => k2 ) . // ... . // ThenBy ( x => kn ) // ... // If an ordering clause specifies a descending direction indicator, // an invocation of OrderByDescending or ThenByDescending is produced instead. bool first = true; foreach (var ordering in orderby.Orderings) { string methodName = (first ? "OrderBy" : "ThenBy") + (ordering.IsKind(SyntaxKind.DescendingOrdering) ? "Descending" : ""); var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, ordering.Expression, diagnostics.AccumulatesDependencies); var invocation = MakeQueryInvocation(ordering, state.fromExpression, methodName, lambda, diagnostics); state.fromExpression = MakeQueryClause(ordering, invocation, queryInvocation: invocation); first = false; } state.fromExpression = MakeQueryClause(orderby, state.fromExpression); } private void ReduceFrom(FromClauseSyntax from, QueryTranslationState state, BindingDiagnosticBag diagnostics) { var x1 = state.rangeVariable; BoundExpression collectionSelectorLambda; if (from.Type == null) { collectionSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), x1, from.Expression, diagnostics.AccumulatesDependencies); } else { collectionSelectorLambda = MakeQueryUnboundLambdaWithCast(state.RangeVariableMap(), x1, from.Expression, from.Type, BindTypeArgument(from.Type, diagnostics), diagnostics.AccumulatesDependencies); } var x2 = state.AddRangeVariable(this, from.Identifier, diagnostics); if (state.clauses.IsEmpty() && state.selectOrGroup.IsKind(SyntaxKind.SelectClause)) { var select = (SelectClauseSyntax)state.selectOrGroup; // A query expression with a second from clause followed by a select clause // from x1 in e1 // from x2 in e2 // select v // is translated into // ( e1 ) . SelectMany( x1 => e2 , ( x1 , x2 ) => v ) var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies); var invocation = MakeQueryInvocation( from, state.fromExpression, "SelectMany", ImmutableArray.Create(collectionSelectorLambda, resultSelectorLambda), diagnostics); // Adjust the second-to-last parameter to be a query clause (if it was an extension method, an extra parameter was added) BoundExpression? castInvocation = (from.Type != null) ? ExtractCastInvocation(invocation) : null; var arguments = invocation.Arguments; invocation = invocation.Update( invocation.ReceiverOpt, invocation.Method, arguments.SetItem(arguments.Length - 2, MakeQueryClause(from, arguments[arguments.Length - 2], x2, invocation, castInvocation))); state.Clear(); state.fromExpression = MakeQueryClause(from, invocation, definedSymbol: x2, queryInvocation: invocation); state.fromExpression = MakeQueryClause(select, state.fromExpression); } else { // A query expression with a second from clause followed by something other than a select clause: // from x1 in e1 // from x2 in e2 // ... // is translated into // from * in ( e1 ) . SelectMany( x1 => e2 , ( x1 , x2 ) => new { x1 , x2 } ) // ... // We use a slightly different translation strategy. We produce // from * in ( e ) . SelectMany ( x1 => e2, ( x1 , x2 ) => new Pair<X1,X2>(x1, x2) ) // Where X1 is the type of x1, and X2 is the type of x2. // Subsequently, x1 (or members of x1, if it is a transparent identifier) // are accessed as TRID.Item1 (or members of that), and x2 is accessed // as TRID.Item2, where TRID is the compiler-generated identifier used // to represent the transparent identifier in the result. var resultSelectorLambda = MakePairLambda(from, state, x1, x2, diagnostics.AccumulatesDependencies); var invocation = MakeQueryInvocation( from, state.fromExpression, "SelectMany", ImmutableArray.Create(collectionSelectorLambda, resultSelectorLambda), diagnostics); BoundExpression? castInvocation = (from.Type != null) ? ExtractCastInvocation(invocation) : null; state.fromExpression = MakeQueryClause(from, invocation, x2, invocation, castInvocation); } } private static BoundExpression? ExtractCastInvocation(BoundCall invocation) { int index = invocation.InvokedAsExtensionMethod ? 1 : 0; var c1 = invocation.Arguments[index] as BoundConversion; var l1 = c1 != null ? c1.Operand as BoundLambda : null; var r1 = l1 != null ? l1.Body.Statements[0] as BoundReturnStatement : null; var i1 = r1 != null ? r1.ExpressionOpt as BoundCall : null; return i1; } private UnboundLambda MakePairLambda(CSharpSyntaxNode node, QueryTranslationState state, RangeVariableSymbol x1, RangeVariableSymbol x2, bool withDependencies) { Debug.Assert(LambdaUtilities.IsQueryPairLambda(node)); LambdaBodyFactory bodyFactory = (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag d) => { var x1Expression = new BoundParameter(node, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true }; var x2Expression = new BoundParameter(node, lambdaSymbol.Parameters[1]) { WasCompilerGenerated = true }; var construction = MakePair(node, x1.Name, x1Expression, x2.Name, x2Expression, state, d); return lambdaBodyBinder.CreateBlockFromExpression(node, ImmutableArray<LocalSymbol>.Empty, RefKind.None, construction, null, d); }; var result = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), node, bodyFactory, withDependencies); state.rangeVariable = state.TransparentRangeVariable(this); state.AddTransparentIdentifier(x1.Name); var x2m = state.allRangeVariables[x2]; x2m[x2m.Count - 1] = x2.Name; return result; } private void ReduceLet(LetClauseSyntax let, QueryTranslationState state, BindingDiagnosticBag diagnostics) { // A query expression with a let clause // from x in e // let y = f // ... // is translated into // from * in ( e ) . Select ( x => new { x , y = f } ) // ... var x = state.rangeVariable; // We use a slightly different translation strategy. We produce // from * in ( e ) . Select ( x => new Pair<X,Y>(x, f) ) // Where X is the type of x, and Y is the type of the expression f. // Subsequently, x (or members of x, if it is a transparent identifier) // are accessed as TRID.Item1 (or members of that), and y is accessed // as TRID.Item2, where TRID is the compiler-generated identifier used // to represent the transparent identifier in the result. LambdaBodyFactory bodyFactory = (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag d) => { var xExpression = new BoundParameter(let, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true }; lambdaBodyBinder = lambdaBodyBinder.GetRequiredBinder(let.Expression); var yExpression = lambdaBodyBinder.BindRValueWithoutTargetType(let.Expression, d); SourceLocation errorLocation = new SourceLocation(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart)); if (!yExpression.HasAnyErrors && !yExpression.HasExpressionType()) { Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Display); yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType()); } else if (!yExpression.HasAnyErrors && yExpression.Type!.IsVoidType()) { Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Type!); Debug.Assert(yExpression.Type is { }); yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type); } var construction = MakePair(let, x.Name, xExpression, let.Identifier.ValueText, yExpression, state, d); // The bound block represents a closure scope for transparent identifiers captured in the let clause. // Such closures shall be associated with the lambda body expression. return lambdaBodyBinder.CreateLambdaBlockForQueryClause(let.Expression, construction, d); }; var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x), let.Expression, bodyFactory, diagnostics.AccumulatesDependencies); state.rangeVariable = state.TransparentRangeVariable(this); state.AddTransparentIdentifier(x.Name); var y = state.AddRangeVariable(this, let.Identifier, diagnostics); state.allRangeVariables[y].Add(let.Identifier.ValueText); var invocation = MakeQueryInvocation(let, state.fromExpression, "Select", lambda, diagnostics); state.fromExpression = MakeQueryClause(let, invocation, y, invocation); } private BoundBlock CreateLambdaBlockForQueryClause(ExpressionSyntax expression, BoundExpression result, BindingDiagnosticBag diagnostics) { var locals = this.GetDeclaredLocalsForScope(expression); if (locals.Any()) { CheckFeatureAvailability(expression, MessageID.IDS_FeatureExpressionVariablesInQueriesAndInitializers, diagnostics, locals[0].Locations[0]); } return this.CreateBlockFromExpression(expression, locals, RefKind.None, result, expression, diagnostics); } private BoundQueryClause MakeQueryClause( CSharpSyntaxNode syntax, BoundExpression expression, RangeVariableSymbol? definedSymbol = null, BoundExpression? queryInvocation = null, BoundExpression? castInvocation = null, BoundExpression? unoptimizedForm = null) { if (unoptimizedForm != null && unoptimizedForm.HasAnyErrors && !expression.HasAnyErrors) unoptimizedForm = null; return new BoundQueryClause( syntax: syntax, value: expression, definedSymbol: definedSymbol, operation: queryInvocation, binder: this, cast: castInvocation, unoptimizedForm: unoptimizedForm, type: TypeOrError(expression)); } private BoundExpression MakePair(CSharpSyntaxNode node, string field1Name, BoundExpression field1Value, string field2Name, BoundExpression field2Value, QueryTranslationState state, BindingDiagnosticBag diagnostics) { if (field1Name == field2Name) { // we will generate a diagnostic elsewhere field2Name = state.TransparentRangeVariableName(); field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true); } AnonymousTypeDescriptor typeDescriptor = new AnonymousTypeDescriptor( ImmutableArray.Create<AnonymousTypeField>( new AnonymousTypeField(field1Name, field1Value.Syntax.Location, TypeWithAnnotations.Create(TypeOrError(field1Value))), new AnonymousTypeField(field2Name, field2Value.Syntax.Location, TypeWithAnnotations.Create(TypeOrError(field2Value))) ), node.Location ); AnonymousTypeManager manager = this.Compilation.AnonymousTypeManager; NamedTypeSymbol anonymousType = manager.ConstructAnonymousTypeSymbol(typeDescriptor); return MakeConstruction(node, anonymousType, ImmutableArray.Create(field1Value, field2Value), diagnostics); } private TypeSymbol TypeOrError(BoundExpression e) { return e.Type ?? CreateErrorType(); } private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, bool withDependencies) { return MakeQueryUnboundLambda(qvm, ImmutableArray.Create(parameter), expression, withDependencies); } private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, ExpressionSyntax expression, bool withDependencies) { return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, parameters, (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => { lambdaBodyBinder = lambdaBodyBinder.GetRequiredBinder(expression); Debug.Assert(lambdaSymbol != null); BoundExpression boundExpression = lambdaBodyBinder.BindValue(expression, diagnostics, BindValueKind.RValue); return lambdaBodyBinder.CreateLambdaBlockForQueryClause(expression, boundExpression, diagnostics); }), withDependencies); } private UnboundLambda MakeQueryUnboundLambdaWithCast(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, TypeSyntax castTypeSyntax, TypeWithAnnotations castType, bool withDependencies) { return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, ImmutableArray.Create(parameter), (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => { lambdaBodyBinder = lambdaBodyBinder.GetRequiredBinder(expression); BoundExpression boundExpression = lambdaBodyBinder.BindValue(expression, diagnostics, BindValueKind.RValue); // We transform the expression from "expr" to "expr.Cast<castTypeOpt>()". boundExpression = lambdaBodyBinder.MakeQueryInvocation(expression, boundExpression, "Cast", castTypeSyntax, castType, diagnostics); return lambdaBodyBinder.CreateLambdaBlockForQueryClause(expression, boundExpression, diagnostics); }), withDependencies); } private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, CSharpSyntaxNode node, LambdaBodyFactory bodyFactory, bool withDependencies) { return MakeQueryUnboundLambda(node, new QueryUnboundLambdaState(this, qvm, parameters, bodyFactory), withDependencies); } private static UnboundLambda MakeQueryUnboundLambda(CSharpSyntaxNode node, QueryUnboundLambdaState state, bool withDependencies) { Debug.Assert(node is ExpressionSyntax || LambdaUtilities.IsQueryPairLambda(node)); var lambda = new UnboundLambda(node, state, withDependencies, hasErrors: false) { WasCompilerGenerated = true }; state.SetUnboundLambda(lambda); return lambda; } protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, BoundExpression arg, BindingDiagnosticBag diagnostics) { return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), ImmutableArray.Create(arg), diagnostics); } protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics) { return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), args, diagnostics); } protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, TypeSyntax typeArgSyntax, TypeWithAnnotations typeArg, BindingDiagnosticBag diagnostics) { return MakeQueryInvocation(node, receiver, methodName, new SeparatedSyntaxList<TypeSyntax>(new SyntaxNodeOrTokenList(typeArgSyntax, 0)), ImmutableArray.Create(typeArg), ImmutableArray<BoundExpression>.Empty, diagnostics); } protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, SeparatedSyntaxList<TypeSyntax> typeArgsSyntax, ImmutableArray<TypeWithAnnotations> typeArgs, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics) { // clean up the receiver var ultimateReceiver = receiver; while (ultimateReceiver.Kind == BoundKind.QueryClause) { ultimateReceiver = ((BoundQueryClause)ultimateReceiver).Value; } Debug.Assert(receiver.Type is object || ultimateReceiver.Type is null); if ((object?)ultimateReceiver.Type == null) { if (ultimateReceiver.HasAnyErrors || node.HasErrors) { // report no additional errors } else if (ultimateReceiver.IsLiteralNull()) { diagnostics.Add(ErrorCode.ERR_NullNotValid, node.Location); } else if (ultimateReceiver.IsLiteralDefault()) { diagnostics.Add(ErrorCode.ERR_DefaultLiteralNotValid, node.Location); } else if (ultimateReceiver.IsImplicitObjectCreation()) { diagnostics.Add(ErrorCode.ERR_ImplicitObjectCreationNotValid, node.Location); } else if (ultimateReceiver.Kind == BoundKind.NamespaceExpression) { diagnostics.Add(ErrorCode.ERR_BadSKunknown, ultimateReceiver.Syntax.Location, ((BoundNamespaceExpression)ultimateReceiver).NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.Localize()); } else if (ultimateReceiver.Kind == BoundKind.Lambda || ultimateReceiver.Kind == BoundKind.UnboundLambda) { // Could not find an implementation of the query pattern for source type '{0}'. '{1}' not found. diagnostics.Add(ErrorCode.ERR_QueryNoProvider, node.Location, MessageID.IDS_AnonMethod.Localize(), methodName); } else if (ultimateReceiver.Kind == BoundKind.MethodGroup) { var methodGroup = (BoundMethodGroup)ultimateReceiver; CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, isMethodGroupConversion: false, useSiteInfo: ref useSiteInfo); diagnostics.Add(node, useSiteInfo); diagnostics.AddRange(resolution.Diagnostics); if (resolution.HasAnyErrors) { receiver = this.BindMemberAccessBadResult(methodGroup); } else { Debug.Assert(!resolution.IsEmpty); diagnostics.Add(ErrorCode.ERR_QueryNoProvider, node.Location, MessageID.IDS_SK_METHOD.Localize(), methodName); } resolution.Free(); } receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType()); } else if (ultimateReceiver.Kind == BoundKind.TypeExpression) { if (ultimateReceiver.Type.TypeKind == TypeKind.TypeParameter) { // https://github.com/dotnet/roslyn/issues/53796: Do we really want to enable usage of static abstract members here? Error(diagnostics, ErrorCode.ERR_BadSKunknown, ultimateReceiver.Syntax, ultimateReceiver.Type, MessageID.IDS_SK_TYVAR.Localize()); } } else if (ultimateReceiver.Kind == BoundKind.TypeOrValueExpression) { // CheckValue will be called by MakeInvocationExpression when it makes the member access, which will resolve // the type or value to the appropriate kind at that point. } else if (receiver.Type!.IsVoidType()) { if (!receiver.HasAnyErrors && !node.HasErrors) { diagnostics.Add(ErrorCode.ERR_QueryNoProvider, node.Location, "void", methodName); } receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType()); } else { var checkedUltimateReceiver = CheckValue(ultimateReceiver, BindValueKind.RValue, diagnostics); if (checkedUltimateReceiver != ultimateReceiver) { receiver = updateUltimateReceiver(receiver, ultimateReceiver, checkedUltimateReceiver); } } return (BoundCall)MakeInvocationExpression( node, receiver, methodName, args, diagnostics, typeArgsSyntax, typeArgs, queryClause: node, // Queries are syntactical rewrites, so we allow fields and properties of delegate types to be invoked, // although no well-known non-generic query method is used atm. allowFieldsAndProperties: true); static BoundExpression updateUltimateReceiver(BoundExpression receiver, BoundExpression originalUltimateReceiver, BoundExpression replacementUltimateReceiver) { if (receiver is BoundQueryClause query) { return query.Update( updateUltimateReceiver(query.Value, originalUltimateReceiver, replacementUltimateReceiver), query.DefinedSymbol, query.Operation, query.Cast, query.Binder, query.UnoptimizedForm, query.Type); } Debug.Assert(receiver == originalUltimateReceiver); return replacementUltimateReceiver; } } protected BoundExpression MakeConstruction(CSharpSyntaxNode node, NamedTypeSymbol toCreate, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics) { AnalyzedArguments analyzedArguments = AnalyzedArguments.GetInstance(); analyzedArguments.Arguments.AddRange(args); var result = BindClassCreationExpression(node, toCreate.Name, node, toCreate, analyzedArguments, diagnostics); result.WasCompilerGenerated = true; analyzedArguments.Free(); return result; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { /// <summary> /// This portion of the binder converts a QueryExpressionSyntax into a BoundExpression /// </summary> internal partial class Binder { private const string transparentIdentifierPrefix = "<>h__TransparentIdentifier"; internal BoundExpression BindQuery(QueryExpressionSyntax node, BindingDiagnosticBag diagnostics) { var fromClause = node.FromClause; var boundFromExpression = BindLeftOfPotentialColorColorMemberAccess(fromClause.Expression, diagnostics); // If the from expression is of the type dynamic we can't infer the types for any lambdas that occur in the query. // Only if there are none we could bind the query but we report an error regardless since such queries are not useful. if (boundFromExpression.HasDynamicType()) { diagnostics.Add(ErrorCode.ERR_BadDynamicQuery, fromClause.Expression.Location); boundFromExpression = BadExpression(fromClause.Expression, boundFromExpression); } else { boundFromExpression = BindToNaturalType(boundFromExpression, diagnostics); } QueryTranslationState state = new QueryTranslationState(); state.fromExpression = MakeMemberAccessValue(boundFromExpression, diagnostics); var x = state.rangeVariable = state.AddRangeVariable(this, fromClause.Identifier, diagnostics); for (int i = node.Body.Clauses.Count - 1; i >= 0; i--) { state.clauses.Push(node.Body.Clauses[i]); } state.selectOrGroup = node.Body.SelectOrGroup; // A from clause that explicitly specifies a range variable type // from T x in e // is translated into // from x in ( e ) . Cast < T > ( ) BoundExpression? cast = null; if (fromClause.Type != null) { var typeRestriction = BindTypeArgument(fromClause.Type, diagnostics); cast = MakeQueryInvocation(fromClause, state.fromExpression, "Cast", fromClause.Type, typeRestriction, diagnostics); state.fromExpression = cast; } state.fromExpression = MakeQueryClause(fromClause, state.fromExpression, x, castInvocation: cast); BoundExpression result = BindQueryInternal1(state, diagnostics); for (QueryContinuationSyntax? continuation = node.Body.Continuation; continuation != null; continuation = continuation.Body.Continuation) { // A query expression with a continuation // from ... into x ... // is translated into // from x in ( from ... ) ... state.Clear(); state.fromExpression = result; x = state.rangeVariable = state.AddRangeVariable(this, continuation.Identifier, diagnostics); Debug.Assert(state.clauses.IsEmpty()); var clauses = continuation.Body.Clauses; for (int i = clauses.Count - 1; i >= 0; i--) { state.clauses.Push(clauses[i]); } state.selectOrGroup = continuation.Body.SelectOrGroup; result = BindQueryInternal1(state, diagnostics); result = MakeQueryClause(continuation.Body, result, x); result = MakeQueryClause(continuation, result, x); } state.Free(); return MakeQueryClause(node, result); } private BoundExpression BindQueryInternal1(QueryTranslationState state, BindingDiagnosticBag diagnostics) { // If the query is a degenerate one the form "from x in e select x", but in source, // then we go ahead and generate the select anyway. We do this by skipping BindQueryInternal2, // whose job it is to (reduce away the whole query and) optimize away degenerate queries. return IsDegenerateQuery(state) ? FinalTranslation(state, diagnostics) : BindQueryInternal2(state, diagnostics); } private static bool IsDegenerateQuery(QueryTranslationState state) { if (!state.clauses.IsEmpty()) return false; // A degenerate query is of the form "from x in e select x". var select = state.selectOrGroup as SelectClauseSyntax; if (select == null) return false; var name = select.Expression as IdentifierNameSyntax; return name != null && state.rangeVariable.Name == name.Identifier.ValueText; } private BoundExpression BindQueryInternal2(QueryTranslationState state, BindingDiagnosticBag diagnostics) { // we continue reducing the query until it is reduced away. while (true) { if (state.clauses.IsEmpty()) { if (state.selectOrGroup == null) { return state.fromExpression; // already reduced away } if (IsDegenerateQuery(state)) { // A query expression of the form // from x in e select x // is translated into // ( e ) var result = state.fromExpression; // ignore missing or malformed Select method BoundExpression? unoptimized = FinalTranslation(state, BindingDiagnosticBag.Discarded); if (unoptimized.HasAnyErrors && !result.HasAnyErrors) unoptimized = null; return MakeQueryClause(state.selectOrGroup, result, unoptimizedForm: unoptimized); } return FinalTranslation(state, diagnostics); } ReduceQuery(state, diagnostics); } } private BoundExpression FinalTranslation(QueryTranslationState state, BindingDiagnosticBag diagnostics) { Debug.Assert(state.clauses.IsEmpty()); switch (state.selectOrGroup.Kind()) { case SyntaxKind.SelectClause: { // A query expression of the form // from x in e select v // is translated into // ( e ) . Select ( x => v ) var selectClause = (SelectClauseSyntax)state.selectOrGroup; var x = state.rangeVariable; var e = state.fromExpression; var v = selectClause.Expression; var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), x, v, diagnostics.AccumulatesDependencies); var result = MakeQueryInvocation(state.selectOrGroup, e, "Select", lambda, diagnostics); return MakeQueryClause(selectClause, result, queryInvocation: result); } case SyntaxKind.GroupClause: { // A query expression of the form // from x in e group v by k // is translated into // ( e ) . GroupBy ( x => k , x => v ) // except when v is the identifier x, the translation is // ( e ) . GroupBy ( x => k ) var groupClause = (GroupClauseSyntax)state.selectOrGroup; var x = state.rangeVariable; var e = state.fromExpression; var v = groupClause.GroupExpression; var k = groupClause.ByExpression; var vId = v as IdentifierNameSyntax; BoundCall result; var lambdaLeft = MakeQueryUnboundLambda(state.RangeVariableMap(), x, k, diagnostics.AccumulatesDependencies); // this is the unoptimized form (when v is not the identifier x) var d = BindingDiagnosticBag.GetInstance(diagnostics); BoundExpression lambdaRight = MakeQueryUnboundLambda(state.RangeVariableMap(), x, v, diagnostics.AccumulatesDependencies); result = MakeQueryInvocation(state.selectOrGroup, e, "GroupBy", ImmutableArray.Create(lambdaLeft, lambdaRight), d); // k and v appear reversed in the invocation, so we reorder their evaluation result = ReverseLastTwoParameterOrder(result); BoundExpression? unoptimizedForm = null; if (vId != null && vId.Identifier.ValueText == x.Name) { // The optimized form. We store the unoptimized form for analysis unoptimizedForm = result; result = MakeQueryInvocation(state.selectOrGroup, e, "GroupBy", lambdaLeft, diagnostics); if (unoptimizedForm.HasAnyErrors && !result.HasAnyErrors) unoptimizedForm = null; } else { diagnostics.AddRange(d); } d.Free(); return MakeQueryClause(groupClause, result, queryInvocation: result, unoptimizedForm: unoptimizedForm); } default: { // there should have been a syntax error if we get here. Debug.Assert(state.fromExpression.Type is { }); return new BoundBadExpression( state.selectOrGroup, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(state.fromExpression), state.fromExpression.Type); } } } private static BoundCall ReverseLastTwoParameterOrder(BoundCall result) { // The input call has its arguments in the appropriate order for the invocation, but its last // two argument expressions appear in the reverse order from which they appeared in source. // Since we want region analysis to see them in source order, we rewrite the call so that these // two arguments are evaluated in source order. int n = result.Arguments.Length; var arguments = ArrayBuilder<BoundExpression>.GetInstance(); arguments.AddRange(result.Arguments); var lastArgument = arguments[n - 1]; arguments[n - 1] = arguments[n - 2]; arguments[n - 2] = lastArgument; var argsToParams = ArrayBuilder<int>.GetInstance(); argsToParams.AddRange(Enumerable.Range(0, n)); argsToParams[n - 1] = n - 2; argsToParams[n - 2] = n - 1; var defaultArguments = result.DefaultArguments.Clone(); (defaultArguments[n - 1], defaultArguments[n - 2]) = (defaultArguments[n - 2], defaultArguments[n - 1]); return result.Update( result.ReceiverOpt, result.Method, arguments.ToImmutableAndFree(), argumentNamesOpt: default, argumentRefKindsOpt: default, result.IsDelegateCall, result.Expanded, result.InvokedAsExtensionMethod, argsToParams.ToImmutableAndFree(), defaultArguments, result.ResultKind, result.OriginalMethodsOpt, result.Type); } private void ReduceQuery(QueryTranslationState state, BindingDiagnosticBag diagnostics) { var topClause = state.clauses.Pop(); switch (topClause.Kind()) { case SyntaxKind.WhereClause: ReduceWhere((WhereClauseSyntax)topClause, state, diagnostics); break; case SyntaxKind.JoinClause: ReduceJoin((JoinClauseSyntax)topClause, state, diagnostics); break; case SyntaxKind.OrderByClause: ReduceOrderBy((OrderByClauseSyntax)topClause, state, diagnostics); break; case SyntaxKind.FromClause: ReduceFrom((FromClauseSyntax)topClause, state, diagnostics); break; case SyntaxKind.LetClause: ReduceLet((LetClauseSyntax)topClause, state, diagnostics); break; default: throw ExceptionUtilities.UnexpectedValue(topClause.Kind()); } } private void ReduceWhere(WhereClauseSyntax where, QueryTranslationState state, BindingDiagnosticBag diagnostics) { // A query expression with a where clause // from x in e // where f // ... // is translated into // from x in ( e ) . Where ( x => f ) var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, where.Condition, diagnostics.AccumulatesDependencies); var invocation = MakeQueryInvocation(where, state.fromExpression, "Where", lambda, diagnostics); state.fromExpression = MakeQueryClause(where, invocation, queryInvocation: invocation); } private void ReduceJoin(JoinClauseSyntax join, QueryTranslationState state, BindingDiagnosticBag diagnostics) { var inExpression = BindRValueWithoutTargetType(join.InExpression, diagnostics); // If the from expression is of the type dynamic we can't infer the types for any lambdas that occur in the query. // Only if there are none we could bind the query but we report an error regardless since such queries are not useful. if (inExpression.HasDynamicType()) { diagnostics.Add(ErrorCode.ERR_BadDynamicQuery, join.InExpression.Location); inExpression = BadExpression(join.InExpression, inExpression); } BoundExpression? castInvocation = null; if (join.Type != null) { // A join clause that explicitly specifies a range variable type // join T x in e on k1 equals k2 // is translated into // join x in ( e ) . Cast < T > ( ) on k1 equals k2 var castType = BindTypeArgument(join.Type, diagnostics); castInvocation = MakeQueryInvocation(join, inExpression, "Cast", join.Type, castType, diagnostics); inExpression = castInvocation; } var outerKeySelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, join.LeftExpression, diagnostics.AccumulatesDependencies); var x1 = state.rangeVariable; var x2 = state.AddRangeVariable(this, join.Identifier, diagnostics); var innerKeySelectorLambda = MakeQueryUnboundLambda(QueryTranslationState.RangeVariableMap(x2), x2, join.RightExpression, diagnostics.AccumulatesDependencies); if (state.clauses.IsEmpty() && state.selectOrGroup.Kind() == SyntaxKind.SelectClause) { var select = (SelectClauseSyntax)state.selectOrGroup; BoundCall invocation; if (join.Into == null) { // A query expression with a join clause without an into followed by a select clause // from x1 in e1 // join x2 in e2 on k1 equals k2 // select v // is translated into // ( e1 ) . Join( e2 , x1 => k1 , x2 => k2 , ( x1 , x2 ) => v ) var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies); invocation = MakeQueryInvocation( join, state.fromExpression, "Join", ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), diagnostics); } else { // A query expression with a join clause with an into followed by a select clause // from x1 in e1 // join x2 in e2 on k1 equals k2 into g // select v // is translated into // ( e1 ) . GroupJoin( e2 , x1 => k1 , x2 => k2 , ( x1 , g ) => v ) state.allRangeVariables[x2].Free(); state.allRangeVariables.Remove(x2); var g = state.AddRangeVariable(this, join.Into.Identifier, diagnostics); var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, g), select.Expression, diagnostics.AccumulatesDependencies); invocation = MakeQueryInvocation( join, state.fromExpression, "GroupJoin", ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), diagnostics); // record the into clause in the bound tree var arguments = invocation.Arguments; arguments = arguments.SetItem(arguments.Length - 1, MakeQueryClause(join.Into, arguments[arguments.Length - 1], g)); invocation = invocation.Update(invocation.ReceiverOpt, invocation.Method, arguments); } state.Clear(); // this completes the whole query state.fromExpression = MakeQueryClause(join, invocation, x2, invocation, castInvocation); state.fromExpression = MakeQueryClause(select, state.fromExpression); } else { BoundCall invocation; if (join.Into == null) { // A query expression with a join clause without an into followed by something other than a select clause // from x1 in e1 // join x2 in e2 on k1 equals k2 // ... // is translated into // from * in ( e1 ) . Join( // e2 , x1 => k1 , x2 => k2 , ( x1 , x2 ) => new { x1 , x2 }) // ... var resultSelectorLambda = MakePairLambda(join, state, x1, x2, diagnostics.AccumulatesDependencies); invocation = MakeQueryInvocation( join, state.fromExpression, "Join", ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), diagnostics); } else { // A query expression with a join clause with an into followed by something other than a select clause // from x1 in e1 // join x2 in e2 on k1 equals k2 into g // ... // is translated into // from * in ( e1 ) . GroupJoin( // e2 , x1 => k1 , x2 => k2 , ( x1 , g ) => new { x1 , g }) // ... state.allRangeVariables[x2].Free(); state.allRangeVariables.Remove(x2); var g = state.AddRangeVariable(this, join.Into.Identifier, diagnostics); var resultSelectorLambda = MakePairLambda(join, state, x1, g, diagnostics.AccumulatesDependencies); invocation = MakeQueryInvocation( join, state.fromExpression, "GroupJoin", ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda), diagnostics); var arguments = invocation.Arguments; arguments = arguments.SetItem(arguments.Length - 1, MakeQueryClause(join.Into, arguments[arguments.Length - 1], g)); invocation = invocation.Update(invocation.ReceiverOpt, invocation.Method, arguments); } state.fromExpression = MakeQueryClause(join, invocation, x2, invocation, castInvocation); } } private void ReduceOrderBy(OrderByClauseSyntax orderby, QueryTranslationState state, BindingDiagnosticBag diagnostics) { // A query expression with an orderby clause // from x in e // orderby k1 , k2 , ... , kn // ... // is translated into // from x in ( e ) . // OrderBy ( x => k1 ) . // ThenBy ( x => k2 ) . // ... . // ThenBy ( x => kn ) // ... // If an ordering clause specifies a descending direction indicator, // an invocation of OrderByDescending or ThenByDescending is produced instead. bool first = true; foreach (var ordering in orderby.Orderings) { string methodName = (first ? "OrderBy" : "ThenBy") + (ordering.IsKind(SyntaxKind.DescendingOrdering) ? "Descending" : ""); var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, ordering.Expression, diagnostics.AccumulatesDependencies); var invocation = MakeQueryInvocation(ordering, state.fromExpression, methodName, lambda, diagnostics); state.fromExpression = MakeQueryClause(ordering, invocation, queryInvocation: invocation); first = false; } state.fromExpression = MakeQueryClause(orderby, state.fromExpression); } private void ReduceFrom(FromClauseSyntax from, QueryTranslationState state, BindingDiagnosticBag diagnostics) { var x1 = state.rangeVariable; BoundExpression collectionSelectorLambda; if (from.Type == null) { collectionSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), x1, from.Expression, diagnostics.AccumulatesDependencies); } else { collectionSelectorLambda = MakeQueryUnboundLambdaWithCast(state.RangeVariableMap(), x1, from.Expression, from.Type, BindTypeArgument(from.Type, diagnostics), diagnostics.AccumulatesDependencies); } var x2 = state.AddRangeVariable(this, from.Identifier, diagnostics); if (state.clauses.IsEmpty() && state.selectOrGroup.IsKind(SyntaxKind.SelectClause)) { var select = (SelectClauseSyntax)state.selectOrGroup; // A query expression with a second from clause followed by a select clause // from x1 in e1 // from x2 in e2 // select v // is translated into // ( e1 ) . SelectMany( x1 => e2 , ( x1 , x2 ) => v ) var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies); var invocation = MakeQueryInvocation( from, state.fromExpression, "SelectMany", ImmutableArray.Create(collectionSelectorLambda, resultSelectorLambda), diagnostics); // Adjust the second-to-last parameter to be a query clause (if it was an extension method, an extra parameter was added) BoundExpression? castInvocation = (from.Type != null) ? ExtractCastInvocation(invocation) : null; var arguments = invocation.Arguments; invocation = invocation.Update( invocation.ReceiverOpt, invocation.Method, arguments.SetItem(arguments.Length - 2, MakeQueryClause(from, arguments[arguments.Length - 2], x2, invocation, castInvocation))); state.Clear(); state.fromExpression = MakeQueryClause(from, invocation, definedSymbol: x2, queryInvocation: invocation); state.fromExpression = MakeQueryClause(select, state.fromExpression); } else { // A query expression with a second from clause followed by something other than a select clause: // from x1 in e1 // from x2 in e2 // ... // is translated into // from * in ( e1 ) . SelectMany( x1 => e2 , ( x1 , x2 ) => new { x1 , x2 } ) // ... // We use a slightly different translation strategy. We produce // from * in ( e ) . SelectMany ( x1 => e2, ( x1 , x2 ) => new Pair<X1,X2>(x1, x2) ) // Where X1 is the type of x1, and X2 is the type of x2. // Subsequently, x1 (or members of x1, if it is a transparent identifier) // are accessed as TRID.Item1 (or members of that), and x2 is accessed // as TRID.Item2, where TRID is the compiler-generated identifier used // to represent the transparent identifier in the result. var resultSelectorLambda = MakePairLambda(from, state, x1, x2, diagnostics.AccumulatesDependencies); var invocation = MakeQueryInvocation( from, state.fromExpression, "SelectMany", ImmutableArray.Create(collectionSelectorLambda, resultSelectorLambda), diagnostics); BoundExpression? castInvocation = (from.Type != null) ? ExtractCastInvocation(invocation) : null; state.fromExpression = MakeQueryClause(from, invocation, x2, invocation, castInvocation); } } private static BoundExpression? ExtractCastInvocation(BoundCall invocation) { int index = invocation.InvokedAsExtensionMethod ? 1 : 0; var c1 = invocation.Arguments[index] as BoundConversion; var l1 = c1 != null ? c1.Operand as BoundLambda : null; var r1 = l1 != null ? l1.Body.Statements[0] as BoundReturnStatement : null; var i1 = r1 != null ? r1.ExpressionOpt as BoundCall : null; return i1; } private UnboundLambda MakePairLambda(CSharpSyntaxNode node, QueryTranslationState state, RangeVariableSymbol x1, RangeVariableSymbol x2, bool withDependencies) { Debug.Assert(LambdaUtilities.IsQueryPairLambda(node)); LambdaBodyFactory bodyFactory = (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag d) => { var x1Expression = new BoundParameter(node, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true }; var x2Expression = new BoundParameter(node, lambdaSymbol.Parameters[1]) { WasCompilerGenerated = true }; var construction = MakePair(node, x1.Name, x1Expression, x2.Name, x2Expression, state, d); return lambdaBodyBinder.CreateBlockFromExpression(node, ImmutableArray<LocalSymbol>.Empty, RefKind.None, construction, null, d); }; var result = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), node, bodyFactory, withDependencies); state.rangeVariable = state.TransparentRangeVariable(this); state.AddTransparentIdentifier(x1.Name); var x2m = state.allRangeVariables[x2]; x2m[x2m.Count - 1] = x2.Name; return result; } private void ReduceLet(LetClauseSyntax let, QueryTranslationState state, BindingDiagnosticBag diagnostics) { // A query expression with a let clause // from x in e // let y = f // ... // is translated into // from * in ( e ) . Select ( x => new { x , y = f } ) // ... var x = state.rangeVariable; // We use a slightly different translation strategy. We produce // from * in ( e ) . Select ( x => new Pair<X,Y>(x, f) ) // Where X is the type of x, and Y is the type of the expression f. // Subsequently, x (or members of x, if it is a transparent identifier) // are accessed as TRID.Item1 (or members of that), and y is accessed // as TRID.Item2, where TRID is the compiler-generated identifier used // to represent the transparent identifier in the result. LambdaBodyFactory bodyFactory = (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag d) => { var xExpression = new BoundParameter(let, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true }; lambdaBodyBinder = lambdaBodyBinder.GetRequiredBinder(let.Expression); var yExpression = lambdaBodyBinder.BindRValueWithoutTargetType(let.Expression, d); SourceLocation errorLocation = new SourceLocation(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart)); if (!yExpression.HasAnyErrors && !yExpression.HasExpressionType()) { Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Display); yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType()); } else if (!yExpression.HasAnyErrors && yExpression.Type!.IsVoidType()) { Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Type!); Debug.Assert(yExpression.Type is { }); yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type); } var construction = MakePair(let, x.Name, xExpression, let.Identifier.ValueText, yExpression, state, d); // The bound block represents a closure scope for transparent identifiers captured in the let clause. // Such closures shall be associated with the lambda body expression. return lambdaBodyBinder.CreateLambdaBlockForQueryClause(let.Expression, construction, d); }; var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x), let.Expression, bodyFactory, diagnostics.AccumulatesDependencies); state.rangeVariable = state.TransparentRangeVariable(this); state.AddTransparentIdentifier(x.Name); var y = state.AddRangeVariable(this, let.Identifier, diagnostics); state.allRangeVariables[y].Add(let.Identifier.ValueText); var invocation = MakeQueryInvocation(let, state.fromExpression, "Select", lambda, diagnostics); state.fromExpression = MakeQueryClause(let, invocation, y, invocation); } private BoundBlock CreateLambdaBlockForQueryClause(ExpressionSyntax expression, BoundExpression result, BindingDiagnosticBag diagnostics) { var locals = this.GetDeclaredLocalsForScope(expression); if (locals.Any()) { CheckFeatureAvailability(expression, MessageID.IDS_FeatureExpressionVariablesInQueriesAndInitializers, diagnostics, locals[0].Locations[0]); } return this.CreateBlockFromExpression(expression, locals, RefKind.None, result, expression, diagnostics); } private BoundQueryClause MakeQueryClause( CSharpSyntaxNode syntax, BoundExpression expression, RangeVariableSymbol? definedSymbol = null, BoundExpression? queryInvocation = null, BoundExpression? castInvocation = null, BoundExpression? unoptimizedForm = null) { if (unoptimizedForm != null && unoptimizedForm.HasAnyErrors && !expression.HasAnyErrors) unoptimizedForm = null; return new BoundQueryClause( syntax: syntax, value: expression, definedSymbol: definedSymbol, operation: queryInvocation, binder: this, cast: castInvocation, unoptimizedForm: unoptimizedForm, type: TypeOrError(expression)); } private BoundExpression MakePair(CSharpSyntaxNode node, string field1Name, BoundExpression field1Value, string field2Name, BoundExpression field2Value, QueryTranslationState state, BindingDiagnosticBag diagnostics) { if (field1Name == field2Name) { // we will generate a diagnostic elsewhere field2Name = state.TransparentRangeVariableName(); field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true); } AnonymousTypeDescriptor typeDescriptor = new AnonymousTypeDescriptor( ImmutableArray.Create<AnonymousTypeField>( new AnonymousTypeField(field1Name, field1Value.Syntax.Location, TypeWithAnnotations.Create(TypeOrError(field1Value))), new AnonymousTypeField(field2Name, field2Value.Syntax.Location, TypeWithAnnotations.Create(TypeOrError(field2Value))) ), node.Location ); AnonymousTypeManager manager = this.Compilation.AnonymousTypeManager; NamedTypeSymbol anonymousType = manager.ConstructAnonymousTypeSymbol(typeDescriptor); return MakeConstruction(node, anonymousType, ImmutableArray.Create(field1Value, field2Value), diagnostics); } private TypeSymbol TypeOrError(BoundExpression e) { return e.Type ?? CreateErrorType(); } private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, bool withDependencies) { return MakeQueryUnboundLambda(qvm, ImmutableArray.Create(parameter), expression, withDependencies); } private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, ExpressionSyntax expression, bool withDependencies) { return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, parameters, (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => { lambdaBodyBinder = lambdaBodyBinder.GetRequiredBinder(expression); Debug.Assert(lambdaSymbol != null); BoundExpression boundExpression = lambdaBodyBinder.BindValue(expression, diagnostics, BindValueKind.RValue); return lambdaBodyBinder.CreateLambdaBlockForQueryClause(expression, boundExpression, diagnostics); }), withDependencies); } private UnboundLambda MakeQueryUnboundLambdaWithCast(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, TypeSyntax castTypeSyntax, TypeWithAnnotations castType, bool withDependencies) { return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, ImmutableArray.Create(parameter), (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => { lambdaBodyBinder = lambdaBodyBinder.GetRequiredBinder(expression); BoundExpression boundExpression = lambdaBodyBinder.BindValue(expression, diagnostics, BindValueKind.RValue); // We transform the expression from "expr" to "expr.Cast<castTypeOpt>()". boundExpression = lambdaBodyBinder.MakeQueryInvocation(expression, boundExpression, "Cast", castTypeSyntax, castType, diagnostics); return lambdaBodyBinder.CreateLambdaBlockForQueryClause(expression, boundExpression, diagnostics); }), withDependencies); } private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, CSharpSyntaxNode node, LambdaBodyFactory bodyFactory, bool withDependencies) { return MakeQueryUnboundLambda(node, new QueryUnboundLambdaState(this, qvm, parameters, bodyFactory), withDependencies); } private static UnboundLambda MakeQueryUnboundLambda(CSharpSyntaxNode node, QueryUnboundLambdaState state, bool withDependencies) { Debug.Assert(node is ExpressionSyntax || LambdaUtilities.IsQueryPairLambda(node)); var lambda = new UnboundLambda(node, state, withDependencies, hasErrors: false) { WasCompilerGenerated = true }; state.SetUnboundLambda(lambda); return lambda; } protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, BoundExpression arg, BindingDiagnosticBag diagnostics) { return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), ImmutableArray.Create(arg), diagnostics); } protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics) { return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), args, diagnostics); } protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, TypeSyntax typeArgSyntax, TypeWithAnnotations typeArg, BindingDiagnosticBag diagnostics) { return MakeQueryInvocation(node, receiver, methodName, new SeparatedSyntaxList<TypeSyntax>(new SyntaxNodeOrTokenList(typeArgSyntax, 0)), ImmutableArray.Create(typeArg), ImmutableArray<BoundExpression>.Empty, diagnostics); } protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, SeparatedSyntaxList<TypeSyntax> typeArgsSyntax, ImmutableArray<TypeWithAnnotations> typeArgs, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics) { // clean up the receiver var ultimateReceiver = receiver; while (ultimateReceiver.Kind == BoundKind.QueryClause) { ultimateReceiver = ((BoundQueryClause)ultimateReceiver).Value; } Debug.Assert(receiver.Type is object || ultimateReceiver.Type is null); if ((object?)ultimateReceiver.Type == null) { if (ultimateReceiver.HasAnyErrors || node.HasErrors) { // report no additional errors } else if (ultimateReceiver.IsLiteralNull()) { diagnostics.Add(ErrorCode.ERR_NullNotValid, node.Location); } else if (ultimateReceiver.IsLiteralDefault()) { diagnostics.Add(ErrorCode.ERR_DefaultLiteralNotValid, node.Location); } else if (ultimateReceiver.IsImplicitObjectCreation()) { diagnostics.Add(ErrorCode.ERR_ImplicitObjectCreationNotValid, node.Location); } else if (ultimateReceiver.Kind == BoundKind.NamespaceExpression) { diagnostics.Add(ErrorCode.ERR_BadSKunknown, ultimateReceiver.Syntax.Location, ((BoundNamespaceExpression)ultimateReceiver).NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.Localize()); } else if (ultimateReceiver.Kind == BoundKind.Lambda || ultimateReceiver.Kind == BoundKind.UnboundLambda) { // Could not find an implementation of the query pattern for source type '{0}'. '{1}' not found. diagnostics.Add(ErrorCode.ERR_QueryNoProvider, node.Location, MessageID.IDS_AnonMethod.Localize(), methodName); } else if (ultimateReceiver.Kind == BoundKind.MethodGroup) { var methodGroup = (BoundMethodGroup)ultimateReceiver; CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, isMethodGroupConversion: false, useSiteInfo: ref useSiteInfo); diagnostics.Add(node, useSiteInfo); diagnostics.AddRange(resolution.Diagnostics); if (resolution.HasAnyErrors) { receiver = this.BindMemberAccessBadResult(methodGroup); } else { Debug.Assert(!resolution.IsEmpty); diagnostics.Add(ErrorCode.ERR_QueryNoProvider, node.Location, MessageID.IDS_SK_METHOD.Localize(), methodName); } resolution.Free(); } receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType()); } else if (ultimateReceiver.Kind == BoundKind.TypeExpression) { if (ultimateReceiver.Type.TypeKind == TypeKind.TypeParameter) { // https://github.com/dotnet/roslyn/issues/53796: Do we really want to enable usage of static abstract members here? Error(diagnostics, ErrorCode.ERR_BadSKunknown, ultimateReceiver.Syntax, ultimateReceiver.Type, MessageID.IDS_SK_TYVAR.Localize()); } } else if (ultimateReceiver.Kind == BoundKind.TypeOrValueExpression) { // CheckValue will be called by MakeInvocationExpression when it makes the member access, which will resolve // the type or value to the appropriate kind at that point. } else if (receiver.Type!.IsVoidType()) { if (!receiver.HasAnyErrors && !node.HasErrors) { diagnostics.Add(ErrorCode.ERR_QueryNoProvider, node.Location, "void", methodName); } receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType()); } else { var checkedUltimateReceiver = CheckValue(ultimateReceiver, BindValueKind.RValue, diagnostics); if (checkedUltimateReceiver != ultimateReceiver) { receiver = updateUltimateReceiver(receiver, ultimateReceiver, checkedUltimateReceiver); } } return (BoundCall)MakeInvocationExpression( node, receiver, methodName, args, diagnostics, typeArgsSyntax, typeArgs, queryClause: node, // Queries are syntactical rewrites, so we allow fields and properties of delegate types to be invoked, // although no well-known non-generic query method is used atm. allowFieldsAndProperties: true); static BoundExpression updateUltimateReceiver(BoundExpression receiver, BoundExpression originalUltimateReceiver, BoundExpression replacementUltimateReceiver) { if (receiver is BoundQueryClause query) { return query.Update( updateUltimateReceiver(query.Value, originalUltimateReceiver, replacementUltimateReceiver), query.DefinedSymbol, query.Operation, query.Cast, query.Binder, query.UnoptimizedForm, query.Type); } Debug.Assert(receiver == originalUltimateReceiver); return replacementUltimateReceiver; } } protected BoundExpression MakeConstruction(CSharpSyntaxNode node, NamedTypeSymbol toCreate, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics) { AnalyzedArguments analyzedArguments = AnalyzedArguments.GetInstance(); analyzedArguments.Arguments.AddRange(args); var result = BindClassCreationExpression(node, toCreate.Name, node, toCreate, analyzedArguments, diagnostics); result.WasCompilerGenerated = true; analyzedArguments.Free(); return result; } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/Core/Portable/Compilation/OptimizationLevel.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.CodeAnalysis { /// <summary> /// Determines the level of optimization of the generated code. /// </summary> public enum OptimizationLevel { /// <summary> /// Disables all optimizations and instruments the generated code to improve debugging experience. /// </summary> /// <remarks> /// The compiler prefers debuggability over performance. Do not use for code running in a production environment. /// <list type="bullet"> /// <item><description>JIT optimizations are disabled via assembly level attribute (<see cref="DebuggableAttribute"/>).</description></item> /// <item><description>Edit and Continue is enabled.</description></item> /// <item><description>Slots for local variables are not reused, lifetime of local variables is extended to make the values available during debugging.</description></item> /// </list> /// <para> /// Corresponds to command line argument /optimize-. /// </para> /// </remarks> Debug = 0, /// <summary> /// Enables all optimizations, debugging experience might be degraded. /// </summary> /// <remarks> /// The compiler prefers performance over debuggability. Use for code running in a production environment. /// <list type="bullet"> /// <item><description>JIT optimizations are enabled via assembly level attribute (<see cref="DebuggableAttribute"/>).</description></item> /// <item><description>Edit and Continue is disabled.</description></item> /// <item><description>Sequence points may be optimized away. As a result it might not be possible to place or hit a breakpoint.</description></item> /// <item><description>User-defined locals might be optimized away. They might not be available while debugging.</description></item> /// </list> /// <para> /// Corresponds to command line argument /optimize+. /// </para> /// </remarks> Release = 1 } internal static class OptimizationLevelFacts { internal static (OptimizationLevel OptimizationLevel, bool DebugPlus) DefaultValues => (OptimizationLevel.Debug, false); public static string ToPdbSerializedString(this OptimizationLevel optimization, bool debugPlusMode) => (optimization, debugPlusMode) switch { (OptimizationLevel.Release, true) => "release-debug-plus", (OptimizationLevel.Release, false) => "release", (OptimizationLevel.Debug, true) => "debug-plus", (OptimizationLevel.Debug, false) => "debug", _ => throw ExceptionUtilities.UnexpectedValue(optimization) }; public static bool TryParsePdbSerializedString(string value, out OptimizationLevel optimizationLevel, out bool debugPlusMode) { switch (value) { case "release-debug-plus": optimizationLevel = OptimizationLevel.Release; debugPlusMode = true; return true; case "release": optimizationLevel = OptimizationLevel.Release; debugPlusMode = false; return true; case "debug-plus": optimizationLevel = OptimizationLevel.Debug; debugPlusMode = true; return true; case "debug": optimizationLevel = OptimizationLevel.Debug; debugPlusMode = false; return true; default: optimizationLevel = OptimizationLevel.Debug; debugPlusMode = false; return false; } } } internal static partial class EnumBounds { internal static bool IsValid(this OptimizationLevel value) { return value >= OptimizationLevel.Debug && value <= OptimizationLevel.Release; } } }
// Licensed to the .NET Foundation under one or more 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.CodeAnalysis { /// <summary> /// Determines the level of optimization of the generated code. /// </summary> public enum OptimizationLevel { /// <summary> /// Disables all optimizations and instruments the generated code to improve debugging experience. /// </summary> /// <remarks> /// The compiler prefers debuggability over performance. Do not use for code running in a production environment. /// <list type="bullet"> /// <item><description>JIT optimizations are disabled via assembly level attribute (<see cref="DebuggableAttribute"/>).</description></item> /// <item><description>Edit and Continue is enabled.</description></item> /// <item><description>Slots for local variables are not reused, lifetime of local variables is extended to make the values available during debugging.</description></item> /// </list> /// <para> /// Corresponds to command line argument /optimize-. /// </para> /// </remarks> Debug = 0, /// <summary> /// Enables all optimizations, debugging experience might be degraded. /// </summary> /// <remarks> /// The compiler prefers performance over debuggability. Use for code running in a production environment. /// <list type="bullet"> /// <item><description>JIT optimizations are enabled via assembly level attribute (<see cref="DebuggableAttribute"/>).</description></item> /// <item><description>Edit and Continue is disabled.</description></item> /// <item><description>Sequence points may be optimized away. As a result it might not be possible to place or hit a breakpoint.</description></item> /// <item><description>User-defined locals might be optimized away. They might not be available while debugging.</description></item> /// </list> /// <para> /// Corresponds to command line argument /optimize+. /// </para> /// </remarks> Release = 1 } internal static class OptimizationLevelFacts { internal static (OptimizationLevel OptimizationLevel, bool DebugPlus) DefaultValues => (OptimizationLevel.Debug, false); public static string ToPdbSerializedString(this OptimizationLevel optimization, bool debugPlusMode) => (optimization, debugPlusMode) switch { (OptimizationLevel.Release, true) => "release-debug-plus", (OptimizationLevel.Release, false) => "release", (OptimizationLevel.Debug, true) => "debug-plus", (OptimizationLevel.Debug, false) => "debug", _ => throw ExceptionUtilities.UnexpectedValue(optimization) }; public static bool TryParsePdbSerializedString(string value, out OptimizationLevel optimizationLevel, out bool debugPlusMode) { switch (value) { case "release-debug-plus": optimizationLevel = OptimizationLevel.Release; debugPlusMode = true; return true; case "release": optimizationLevel = OptimizationLevel.Release; debugPlusMode = false; return true; case "debug-plus": optimizationLevel = OptimizationLevel.Debug; debugPlusMode = true; return true; case "debug": optimizationLevel = OptimizationLevel.Debug; debugPlusMode = false; return true; default: optimizationLevel = OptimizationLevel.Debug; debugPlusMode = false; return false; } } } internal static partial class EnumBounds { internal static bool IsValid(this OptimizationLevel value) { return value >= OptimizationLevel.Debug && value <= OptimizationLevel.Release; } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Features/LanguageServer/Protocol/Handler/RequestExecutionQueue.QueueItem.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; using System.Collections.Immutable; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.CodeAnalysis.LanguageServer.Handler { internal partial class RequestExecutionQueue { private readonly struct QueueItem { /// <summary> /// Callback to call into underlying <see cref="IRequestHandler"/> to perform the actual work of this item. /// </summary> private readonly Func<RequestContext, CancellationToken, Task> _callbackAsync; /// <summary> /// <see cref="CorrelationManager.ActivityId"/> used to properly correlate this work with the loghub /// tracing/logging subsystem. /// </summary> public readonly Guid ActivityId; private readonly ILspLogger _logger; /// <inheritdoc cref="IRequestHandler.MutatesSolutionState" /> public readonly bool MutatesSolutionState; /// <inheritdoc cref="IRequestHandler.RequiresLSPSolution" /> public readonly bool RequiresLSPSolution; /// <inheritdoc cref="RequestContext.ClientName" /> public readonly string? ClientName; public readonly string MethodName; /// <inheritdoc cref="RequestContext.ClientCapabilities" /> public readonly ClientCapabilities ClientCapabilities; /// <summary> /// The document identifier that will be used to find the solution and document for this request. This comes from the <see cref="TextDocumentIdentifier"/> returned from the handler itself via a call to <see cref="IRequestHandler{RequestType, ResponseType}.GetTextDocumentIdentifier(RequestType)"/>. /// </summary> public readonly TextDocumentIdentifier? TextDocument; /// <summary> /// A cancellation token that will cancel the handing of this request. The request could also be cancelled by the queue shutting down. /// </summary> public readonly CancellationToken CancellationToken; public readonly RequestMetrics Metrics; public QueueItem( bool mutatesSolutionState, bool requiresLSPSolution, ClientCapabilities clientCapabilities, string? clientName, string methodName, TextDocumentIdentifier? textDocument, Guid activityId, ILspLogger logger, RequestTelemetryLogger telemetryLogger, Func<RequestContext, CancellationToken, Task> callbackAsync, CancellationToken cancellationToken) { Metrics = new RequestMetrics(methodName, telemetryLogger); _callbackAsync = callbackAsync; _logger = logger; ActivityId = activityId; MutatesSolutionState = mutatesSolutionState; RequiresLSPSolution = requiresLSPSolution; ClientCapabilities = clientCapabilities; ClientName = clientName; MethodName = methodName; TextDocument = textDocument; CancellationToken = cancellationToken; } /// <summary> /// Processes the queued request. Exceptions that occur will be sent back to the requesting client, then re-thrown /// </summary> public async Task CallbackAsync(RequestContext context, CancellationToken cancellationToken) { // Restore our activity id so that logging/tracking works. Trace.CorrelationManager.ActivityId = ActivityId; _logger.TraceStart($"{MethodName} - Roslyn"); try { await _callbackAsync(context, cancellationToken).ConfigureAwait(false); this.Metrics.RecordSuccess(); } catch (OperationCanceledException) { _logger.TraceInformation($"{MethodName} - Canceled"); this.Metrics.RecordCancellation(); throw; } catch (Exception ex) { _logger.TraceException(ex); this.Metrics.RecordFailure(); throw; } finally { _logger.TraceStop($"{MethodName} - Roslyn"); } } } } }
// Licensed to the .NET Foundation under one or more 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; using System.Collections.Immutable; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.CodeAnalysis.LanguageServer.Handler { internal partial class RequestExecutionQueue { private readonly struct QueueItem { /// <summary> /// Callback to call into underlying <see cref="IRequestHandler"/> to perform the actual work of this item. /// </summary> private readonly Func<RequestContext, CancellationToken, Task> _callbackAsync; /// <summary> /// <see cref="CorrelationManager.ActivityId"/> used to properly correlate this work with the loghub /// tracing/logging subsystem. /// </summary> public readonly Guid ActivityId; private readonly ILspLogger _logger; /// <inheritdoc cref="IRequestHandler.MutatesSolutionState" /> public readonly bool MutatesSolutionState; /// <inheritdoc cref="IRequestHandler.RequiresLSPSolution" /> public readonly bool RequiresLSPSolution; /// <inheritdoc cref="RequestContext.ClientName" /> public readonly string? ClientName; public readonly string MethodName; /// <inheritdoc cref="RequestContext.ClientCapabilities" /> public readonly ClientCapabilities ClientCapabilities; /// <summary> /// The document identifier that will be used to find the solution and document for this request. This comes from the <see cref="TextDocumentIdentifier"/> returned from the handler itself via a call to <see cref="IRequestHandler{RequestType, ResponseType}.GetTextDocumentIdentifier(RequestType)"/>. /// </summary> public readonly TextDocumentIdentifier? TextDocument; /// <summary> /// A cancellation token that will cancel the handing of this request. The request could also be cancelled by the queue shutting down. /// </summary> public readonly CancellationToken CancellationToken; public readonly RequestMetrics Metrics; public QueueItem( bool mutatesSolutionState, bool requiresLSPSolution, ClientCapabilities clientCapabilities, string? clientName, string methodName, TextDocumentIdentifier? textDocument, Guid activityId, ILspLogger logger, RequestTelemetryLogger telemetryLogger, Func<RequestContext, CancellationToken, Task> callbackAsync, CancellationToken cancellationToken) { Metrics = new RequestMetrics(methodName, telemetryLogger); _callbackAsync = callbackAsync; _logger = logger; ActivityId = activityId; MutatesSolutionState = mutatesSolutionState; RequiresLSPSolution = requiresLSPSolution; ClientCapabilities = clientCapabilities; ClientName = clientName; MethodName = methodName; TextDocument = textDocument; CancellationToken = cancellationToken; } /// <summary> /// Processes the queued request. Exceptions that occur will be sent back to the requesting client, then re-thrown /// </summary> public async Task CallbackAsync(RequestContext context, CancellationToken cancellationToken) { // Restore our activity id so that logging/tracking works. Trace.CorrelationManager.ActivityId = ActivityId; _logger.TraceStart($"{MethodName} - Roslyn"); try { await _callbackAsync(context, cancellationToken).ConfigureAwait(false); this.Metrics.RecordSuccess(); } catch (OperationCanceledException) { _logger.TraceInformation($"{MethodName} - Canceled"); this.Metrics.RecordCancellation(); throw; } catch (Exception ex) { _logger.TraceException(ex); this.Metrics.RecordFailure(); throw; } finally { _logger.TraceStop($"{MethodName} - Roslyn"); } } } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Features/Core/Portable/CodeCleanup/EnabledDiagnosticOptions.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.CodeCleanup { /// <summary> /// Indicates which features are enabled for a code cleanup operation. /// </summary> internal sealed class EnabledDiagnosticOptions { public bool FormatDocument { get; } public ImmutableArray<DiagnosticSet> Diagnostics { get; } public OrganizeUsingsSet OrganizeUsings { get; } public EnabledDiagnosticOptions(bool formatDocument, ImmutableArray<DiagnosticSet> diagnostics, OrganizeUsingsSet organizeUsings) { FormatDocument = formatDocument; Diagnostics = diagnostics; OrganizeUsings = organizeUsings; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.CodeCleanup { /// <summary> /// Indicates which features are enabled for a code cleanup operation. /// </summary> internal sealed class EnabledDiagnosticOptions { public bool FormatDocument { get; } public ImmutableArray<DiagnosticSet> Diagnostics { get; } public OrganizeUsingsSet OrganizeUsings { get; } public EnabledDiagnosticOptions(bool formatDocument, ImmutableArray<DiagnosticSet> diagnostics, OrganizeUsingsSet organizeUsings) { FormatDocument = formatDocument; Diagnostics = diagnostics; OrganizeUsings = organizeUsings; } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/CSharp/Test/Semantic/Semantics/PatternMatchingTests.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.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { [CompilerTrait(CompilerFeature.Patterns)] public class PatternMatchingTests : PatternMatchingTestBase { [Fact] public void DemoModes() { var source = @" public class Vec { public static void Main() { object o = ""Pass""; int i1 = 0b001010; // binary literals int i2 = 23_554; // digit separators // local functions // Note: due to complexity and cost of parsing local functions we // don't try to parse if the feature isn't enabled int f() => 2; ref int i3 = ref i1; // ref locals string s = o is string k ? k : null; // pattern matching //let var i4 = 3; // let //int i5 = o match (case * : 7); // match //object q = (o is null) ? o : throw null; // throw expressions //if (q is Vec(3)) {} // recursive pattern } public int X => 4; public Vec(int x) {} } "; CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( // (7,18): error CS8059: Feature 'binary literals' is not available in C# 6. Please use language version 7.0 or greater. // int i1 = 0b001010; // binary literals Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "").WithArguments("binary literals", "7.0").WithLocation(7, 18), // (8,18): error CS8059: Feature 'digit separators' is not available in C# 6. Please use language version 7.0 or greater. // int i2 = 23_554; // digit separators Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "").WithArguments("digit separators", "7.0").WithLocation(8, 18), // (12,13): error CS8059: Feature 'local functions' is not available in C# 6. Please use language version 7.0 or greater. // int f() => 2; Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "f").WithArguments("local functions", "7.0").WithLocation(12, 13), // (13,9): error CS8059: Feature 'byref locals and returns' is not available in C# 6. Please use language version 7.0 or greater. // ref int i3 = ref i1; // ref locals Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").WithLocation(13, 9), // (13,22): error CS8059: Feature 'byref locals and returns' is not available in C# 6. Please use language version 7.0 or greater. // ref int i3 = ref i1; // ref locals Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").WithLocation(13, 22), // (14,20): error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. // string s = o is string k ? k : null; // pattern matching Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "o is string k").WithArguments("pattern matching", "7.0").WithLocation(14, 20), // (12,13): warning CS8321: The local function 'f' is declared but never used // int f() => 2; Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").WithLocation(12, 13) ); // enables binary literals, digit separators, local functions, ref locals, pattern matching CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( // (8,13): warning CS0219: The variable 'i2' is assigned but its value is never used // int i2 = 23_554; // digit separators Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i2").WithArguments("i2").WithLocation(8, 13), // (12,13): warning CS8321: The local function 'f' is declared but never used // int f() => 2; Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").WithLocation(12, 13) ); } [Fact] public void SimplePatternTest() { var source = @"using System; public class X { public static void Main() { var s = nameof(Main); if (s is string t) Console.WriteLine(""1. {0}"", t); s = null; Console.WriteLine(""2. {0}"", s is string w ? w : nameof(X)); int? x = 12; {if (x is var y) Console.WriteLine(""3. {0}"", y);} {if (x is int y) Console.WriteLine(""4. {0}"", y);} x = null; {if (x is var y) Console.WriteLine(""5. {0}"", y);} {if (x is int y) Console.WriteLine(""6. {0}"", y);} Console.WriteLine(""7. {0}"", (x is bool is bool)); } }"; var expectedOutput = @"1. Main 2. X 3. 12 4. 12 5. 7. True"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // warning CS0184: The given expression is never of the provided ('bool') type // Console.WriteLine("7. {0}", (x is bool is bool)); Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "x is bool").WithArguments("bool"), // warning CS0183: The given expression is always of the provided ('bool') type // Console.WriteLine("7. {0}", (x is bool is bool)); Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "x is bool is bool").WithArguments("bool") ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] public void NullablePatternTest() { var source = @"using System; public class X { public static void Main() { T(null); T(1); } public static void T(object x) { if (x is Nullable<int> y) Console.WriteLine($""expression {x} is Nullable<int> y""); } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (11,18): error CS8116: It is not legal to use nullable type 'int?' in a pattern; use the underlying type 'int' instead. // if (x is Nullable<int> y) Console.WriteLine($"expression {x} is Nullable<int> y"); Diagnostic(ErrorCode.ERR_PatternNullableType, "Nullable<int>").WithArguments("int").WithLocation(11, 18) ); } [Fact] public void UnconstrainedPatternTest() { var source = @"using System; public class X { public static void Main() { Test<string>(1); Test<int>(""goo""); Test<int>(1); Test<int>(1.2); Test<double>(1.2); Test<int?>(1); Test<int?>(null); Test<string>(null); } public static void Test<T>(object x) { if (x is T y) Console.WriteLine($""expression {x} is {typeof(T).Name} {y}""); else Console.WriteLine($""expression {x} is not {typeof(T).Name}""); } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); using (new EnsureInvariantCulture()) { var expectedOutput = @"expression 1 is not String expression goo is not Int32 expression 1 is Int32 1 expression 1.2 is not Int32 expression 1.2 is Double 1.2 expression 1 is Nullable`1 1 expression is not Nullable`1 expression is not String"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact, WorkItem(10932, "https://github.com/dotnet/roslyn/issues/10932")] public void PatternErrors() { var source = @"using System; using NullableInt = System.Nullable<int>; public class X { public static void Main() { var s = nameof(Main); byte b = 1; if (s is string t) { } else Console.WriteLine(t); if (null is dynamic t2) { } // null not allowed if (s is NullableInt x) { } // error: cannot use nullable type if (s is long l) { } // error: cannot convert string to long if (b is 1000) { } // error: cannot convert 1000 to byte } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (10,13): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is dynamic t2) { } // null not allowed Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(10, 13), // (11,18): error CS8116: It is not legal to use nullable type 'int?' in a pattern; use the underlying type 'int' instead. // if (s is NullableInt x) { } // error: cannot use nullable type Diagnostic(ErrorCode.ERR_PatternNullableType, "NullableInt").WithArguments("int").WithLocation(11, 18), // (12,18): error CS8121: An expression of type 'string' cannot be handled by a pattern of type 'long'. // if (s is long l) { } // error: cannot convert string to long Diagnostic(ErrorCode.ERR_PatternWrongType, "long").WithArguments("string", "long").WithLocation(12, 18), // (13,18): error CS0031: Constant value '1000' cannot be converted to a 'byte' // if (b is 1000) { } // error: cannot convert 1000 to byte Diagnostic(ErrorCode.ERR_ConstOutOfRange, "1000").WithArguments("1000", "byte").WithLocation(13, 18), // (9,55): error CS0165: Use of unassigned local variable 't' // if (s is string t) { } else Console.WriteLine(t); Diagnostic(ErrorCode.ERR_UseDefViolation, "t").WithArguments("t").WithLocation(9, 55) ); } [Fact] public void PatternInCtorInitializer() { var source = @"using System; public class X { public static void Main() { new D(1); new D(10); new D(1.2); } } class D { public D(object o) : this(o is int x && x >= 5) {} public D(bool b) { Console.WriteLine(b); } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var expectedOutput = @"False True False"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] public void PatternInCatchFilter() { var source = @"using System; public class X { public static void Main() { M(1); M(10); M(1.2); } private static void M(object o) { try { throw new Exception(); } catch (Exception) when (o is int x && x >= 5) { Console.WriteLine($""Yes for {o}""); } catch (Exception) { Console.WriteLine($""No for {o}""); } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"No for 1 Yes for 10 No for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [ConditionalFact(typeof(DesktopOnly), Reason = "https://github.com/dotnet/roslyn/issues/28026")] public void PatternInFieldInitializer() { var source = @"using System; public class X { static object o1 = 1; static object o2 = 10; static object o3 = 1.2; static bool b1 = M(o1, (o1 is int x && x >= 5)), b2 = M(o2, (o2 is int x && x >= 5)), b3 = M(o3, (o3 is int x && x >= 5)); public static void Main() { } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact] public void PatternInExpressionBodiedMethod() { var source = @"using System; public class X { static object o1 = 1; static object o2 = 10; static object o3 = 1.2; static bool B1() => M(o1, (o1 is int x && x >= 5)); static bool B2 => M(o2, (o2 is int x && x >= 5)); static bool B3 => M(o3, (o3 is int x && x >= 5)); public static void Main() { var r = B1() | B2 | B3; } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact, WorkItem(8778, "https://github.com/dotnet/roslyn/issues/8778")] public void PatternInExpressionBodiedLocalFunction() { var source = @"using System; public class X { static object o1 = 1; static object o2 = 10; static object o3 = 1.2; public static void Main() { bool B1() => M(o1, (o1 is int x && x >= 5)); bool B2() => M(o2, (o2 is int x && x >= 5)); bool B3() => M(o3, (o3 is int x && x >= 5)); var r = B1() | B2() | B3(); } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact, WorkItem(8778, "https://github.com/dotnet/roslyn/issues/8778")] public void PatternInExpressionBodiedLambda() { var source = @"using System; public class X { public static void Main() { object o1 = 1; object o2 = 10; object o3 = 1.2; Func<object, bool> B1 = o => M(o, (o is int x && x >= 5)); B1(o1); Func<bool> B2 = () => M(o2, (o2 is int x && x >= 5)); B2(); Func<bool> B3 = () => M(o3, (o3 is int x && x >= 5)); B3(); } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact] public void PatternInBadPlaces() { var source = @"using System; [Obsolete("""" is string s ? s : """")] public class X { public static void Main() { } private static void M(string p = """" is object o ? o.ToString() : """") { } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (2,11): error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type // [Obsolete("" is string s ? s : "")] Diagnostic(ErrorCode.ERR_BadAttributeArgument, @""""" is string s ? s : """"").WithLocation(2, 11), // (8,38): error CS1736: Default parameter value for 'p' must be a compile-time constant // private static void M(string p = "" is object o ? o.ToString() : "") Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @""""" is object o ? o.ToString() : """"").WithArguments("p").WithLocation(8, 38) ); } [Fact] public void PatternInSwitchAndForeach() { var source = @"using System; public class X { public static void Main() { object o1 = 1; object o2 = 10; object o3 = 1.2; object oa = new object[] { 1, 10, 1.2 }; foreach (var o in oa is object[] z ? z : new object[0]) { switch (o is int x && x >= 5) { case true: M(o, true); break; case false: M(o, false); break; default: throw null; } } } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact] public void GeneralizedSwitchStatement() { Uri u = new Uri("http://www.microsoft.com"); var source = @"using System; public struct X { public static void Main() { var oa = new object[] { 1, 10, 20L, 1.2, ""goo"", true, null, new X(), new Exception(""boo"") }; foreach (var o in oa) { switch (o) { default: Console.WriteLine($""class {o.GetType().Name} {o}""); break; case 1: Console.WriteLine(""one""); break; case int i: Console.WriteLine($""int {i}""); break; case long i: Console.WriteLine($""long {i}""); break; case double d: Console.WriteLine($""double {d}""); break; case null: Console.WriteLine($""null""); break; case ValueType z: Console.WriteLine($""struct {z.GetType().Name} {z}""); break; } } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"one int 10 long 20 double 1.2 class String goo struct Boolean True null struct X X class Exception System.Exception: boo "; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact] public void PatternVariableDefiniteAssignment() { var source = @"using System; public class X { public static void Main() { object o = new X(); if (o is X x1) Console.WriteLine(x1); // OK if (!(o is X x2)) Console.WriteLine(x2); // error if (o is X x3 || true) Console.WriteLine(x3); // error switch (o) { case X x4: default: Console.WriteLine(x4); // error break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (8,45): error CS0165: Use of unassigned local variable 'x2' // if (!(o is X x2)) Console.WriteLine(x2); Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").WithLocation(8, 45), // (9,50): error CS0165: Use of unassigned local variable 'x3' // if (o is X x3 || true) Console.WriteLine(x3); Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").WithLocation(9, 50), // (14,35): error CS0165: Use of unassigned local variable 'x4' // Console.WriteLine(x4); // error Diagnostic(ErrorCode.ERR_UseDefViolation, "x4").WithArguments("x4").WithLocation(14, 35) ); } [Fact] public void PatternVariablesAreMutable() { var source = @" public class X { public static void Main() { if (12 is var x) { x = x + 1; x++; M1(ref x); M2(out x); } } public static void M1(ref int x) {} public static void M2(out int x) { x = 1; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); } [Fact] public void If_01() { var source = @" public class X { public static void Main() { Test(1); Test(2); } public static void Test(int val) { if (Dummy(val == 1, val is var x1, x1)) { System.Console.WriteLine(""true""); System.Console.WriteLine(x1); } else { System.Console.WriteLine(""false""); System.Console.WriteLine(x1); } System.Console.WriteLine(x1); } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 true 1 1 2 false 2 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(4, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void If_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) if (Dummy(f, (f ? 1 : 2) is var x1, x1)) ; if (f) { if (Dummy(f, (f ? 3 : 4) is var x1, x1)) ; } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Lambda_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static bool Test1() { System.Func<bool> l = () => 1 is int x1 && Dummy(x1); return l(); } static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclaration(tree, "x1"); var x1Ref = GetReferences(tree, "x1").Single(); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); } [ConditionalFact(typeof(WindowsDesktopOnly), Reason = "https://github.com/dotnet/roslyn/issues/28026")] public void Query_01() { var source = @" using System.Linq; public class X { public static void Main() { Test1(); } static void Test1() { var res = from x1 in new[] { 1 is var y1 && Print(y1) ? 1 : 0} from x2 in new[] { 2 is var y2 && Print(y2) ? 1 : 0} join x3 in new[] { 3 is var y3 && Print(y3) ? 1 : 0} on 4 is var y4 && Print(y4) ? 1 : 0 equals 5 is var y5 && Print(y5) ? 1 : 0 where 6 is var y6 && Print(y6) orderby 7 is var y7 && Print(y7), 8 is var y8 && Print(y8) group 9 is var y9 && Print(y9) by 10 is var y10 && Print(y10) into g let x11 = 11 is var y11 && Print(y11) select 12 is var y12 && Print(y12); res.ToArray(); } static bool Print(object x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: @"1 3 5 2 4 6 7 8 10 9 11 12 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); for (int i = 1; i < 13; i++) { var id = "y" + i; var yDecl = GetPatternDeclarations(tree, id).Single(); var yRef = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(name => name.Identifier.ValueText == id).Single(); VerifyModelForDeclarationOrVarSimplePattern(model, yDecl, yRef); } } [Fact] public void Query_02() { var source = @" using System.Linq; public class X { public static void Main() { Test1(); } static void Test1() { var res = from x1 in new[] { 1 is var y1 && Print(y1) ? 2 : 0} select Print(x1); res.ToArray(); } static bool Print(object x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"1 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var yDecl = GetPatternDeclaration(tree, "y1"); var yRef = GetReferences(tree, "y1").Single(); VerifyModelForDeclarationOrVarSimplePattern(model, yDecl, yRef); } [Fact] public void ExpressionBodiedFunctions_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static bool Test1() => 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); } [Fact] public void ExpressionBodiedProperties_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1); System.Console.WriteLine(new X()[0]); } static bool Test1 => 2 is int x1 && Dummy(x1); bool this[object x] => 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"2 True 1 True"); } [Fact] public void FieldInitializers_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1); } static bool Test1 = 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( // (9,34): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // static bool Test1 = 1 is int x1 && Dummy(x1); Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(9, 34) ); } [Fact, WorkItem(10487, "https://github.com/dotnet/roslyn/issues/10487")] public void FieldInitializers_03() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1); new X().M(); } void M() { System.Console.WriteLine(Test2); } static bool Test1 = 1 is int x1 && Dummy(() => x1); bool Test2 = 2 is int x1 && Dummy(() => x1); static bool Dummy(System.Func<int> x) { System.Console.WriteLine(x()); return true; } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True 2 True"); } [Fact] [WorkItem(16935, "https://github.com/dotnet/roslyn/issues/16935")] public void FieldInitializers_04() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static System.Func<bool> Test1 = () => 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); } [Fact] public void PropertyInitializers_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1); } static bool Test1 {get;} = 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( // (9,41): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // static bool Test1 {get;} = 1 is int x1 && Dummy(x1); Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(9, 41) ); } [Fact] [WorkItem(16935, "https://github.com/dotnet/roslyn/issues/16935")] public void PropertyInitializers_02() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static System.Func<bool> Test1 {get;} = () => 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); } [Fact] public void ConstructorInitializers_01() { var source = @" public class X { public static void Main() { var x = new D(); } } class D : C { public D(object o) : base(2 is var x1 && Dummy(x1)) { System.Console.WriteLine(o); } public D() : this(1 is int x1 && Dummy(x1)) { } static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } class C { public C(object b) { System.Console.WriteLine(b); } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 2 True True"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); Assert.Equal("System.Int32", ((ILocalSymbol)compilation.GetSemanticModel(tree).GetDeclaredSymbol(x1Decl[0])).Type.ToTestDisplayString()); CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( // (12,40): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // public D(object o) : base(2 is var x1 && Dummy(x1)) Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(12, 40), // (17,32): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // public D() : this(1 is int x1 && Dummy(x1)) Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(17, 32) ); } [Fact] [WorkItem(16935, "https://github.com/dotnet/roslyn/issues/16935")] public void ConstructorInitializers_02() { var source = @" public class X { public static void Main() { var x = new D(); } } class D : C { public D(System.Func<bool> o) : base(() => 2 is int x1 && Dummy(x1)) { System.Console.WriteLine(o()); } public D() : this(() => 1 is int x1 && Dummy(x1)) { } static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } class C { public C(System.Func<bool> b) { System.Console.WriteLine(b()); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"2 True 1 True"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Switch_01() { var source = @" public class X { public static void Main() { Test1(0); Test1(1); } static bool Dummy1(bool val, params object[] x) {return val;} static T Dummy2<T>(T val, params object[] x) {return val;} static void Test1(int val) { switch (Dummy2(val, ""Test1 {0}"" is var x1)) { case 0 when Dummy1(true, ""case 0"" is var y1): System.Console.WriteLine(x1, y1); break; case int z1: System.Console.WriteLine(x1, z1); break; } System.Console.WriteLine(x1); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"Test1 case 0 Test1 {0} Test1 1 Test1 {0}"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(3, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Switch_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) switch (Dummy(f, (f ? 1 : 2) is var x1, x1)) {} if (f) { switch (Dummy(f, (f ? 3 : 4) is var x1, x1)) {} } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Using_01() { var source = @" public class X { public static void Main() { using (System.IDisposable d1 = Dummy(new C(""a""), new C(""b"") is var x1), d2 = Dummy(new C(""c""), new C(""d"") is var x2)) { System.Console.WriteLine(d1); System.Console.WriteLine(x1); System.Console.WriteLine(d2); System.Console.WriteLine(x2); } using (Dummy(new C(""e""), new C(""f"") is var x1)) { System.Console.WriteLine(x1); } } static System.IDisposable Dummy(System.IDisposable x, params object[] y) {return x;} } class C : System.IDisposable { private readonly string _val; public C(string val) { _val = val; } public void Dispose() { System.Console.WriteLine(""Disposing {0}"", _val); } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"a b c d Disposing c Disposing a f Disposing e"); } [Fact] public void LocalDeclarationStmt_01() { var source = @" public class X { public static void Main() { object d1 = Dummy(new C(""a""), new C(""b"") is var x1, x1), d2 = Dummy(new C(""c""), new C(""d"") is var x2, x2); System.Console.WriteLine(d1); System.Console.WriteLine(d2); System.Console.WriteLine(x1); } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"b d a c b"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void LocalDeclarationStmt_02() { var source = @" public class X { public static void Main() { if (true) { object d1 = Dummy(new C(""a""), new C(""b"") is var x1, x1); } } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"b"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] [CompilerTrait(CompilerFeature.Tuples)] public void DeconstructionDeclarationStmt_01() { var source = @" public class X { public static void Main() { (object d1, object d2) = (Dummy(new C(""a""), (new C(""b"") is var x1), x1), Dummy(new C(""c""), (new C(""d"") is var x2), x2)); System.Console.WriteLine(d1); System.Console.WriteLine(d2); System.Console.WriteLine(x1); } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"b d a c b"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] [CompilerTrait(CompilerFeature.Tuples)] public void DeconstructionDeclarationStmt_02() { var source = @" public class X { public static void Main() { if (true) { (object d1, object d2) = (Dummy(new C(""a""), (new C(""b"") is var x1), x1), x1); } } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"b"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] [CompilerTrait(CompilerFeature.Tuples)] public void DeconstructionDeclarationStmt_03() { var source = @" public class X { public static void Main() { var (d1, (d2, d3)) = (Dummy(new C(""a""), (new C(""b"") is var x1), x1), (Dummy(new C(""c""), (new C(""d"") is var x2), x2), Dummy(new C(""e""), (new C(""f"") is var x3), x3))); System.Console.WriteLine(d1); System.Console.WriteLine(d2); System.Console.WriteLine(d3); System.Console.WriteLine(x1); System.Console.WriteLine(x2); System.Console.WriteLine(x3); } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"b d f a c e b d f"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); var x2Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x2").ToArray(); var x2Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x2").ToArray(); Assert.Equal(1, x2Decl.Length); Assert.Equal(2, x2Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl[0], x2Ref); var x3Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x3").ToArray(); var x3Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x3").ToArray(); Assert.Equal(1, x3Decl.Length); Assert.Equal(2, x3Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x3Decl[0], x3Ref); } [Fact] [CompilerTrait(CompilerFeature.Tuples)] public void DeconstructionDeclarationStmt_04() { var source = @" public class X { public static void Main() { (var d1, (var d2, var d3)) = (Dummy(new C(""a""), (new C(""b"") is var x1), x1), (Dummy(new C(""c""), (new C(""d"") is var x2), x2), Dummy(new C(""e""), (new C(""f"") is var x3), x3))); System.Console.WriteLine(d1); System.Console.WriteLine(d2); System.Console.WriteLine(d3); System.Console.WriteLine(x1); System.Console.WriteLine(x2); System.Console.WriteLine(x3); } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"b d f a c e b d f"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); var x2Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x2").ToArray(); var x2Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x2").ToArray(); Assert.Equal(1, x2Decl.Length); Assert.Equal(2, x2Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl[0], x2Ref); var x3Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x3").ToArray(); var x3Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x3").ToArray(); Assert.Equal(1, x3Decl.Length); Assert.Equal(2, x3Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x3Decl[0], x3Ref); } [Fact] public void While_01() { var source = @" public class X { public static void Main() { bool f = true; while (Dummy(f, (f ? 1 : 2) is var x1, x1)) { System.Console.WriteLine(x1); f = false; } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 1 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void While_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) while (Dummy(f, (f ? 1 : 2) is var x1, x1)) break; if (f) { while (Dummy(f, (f ? 3 : 4) is var x1, x1)) break; } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void While_03() { var source = @" public class X { public static void Main() { int f = 1; var l = new System.Collections.Generic.List<System.Action>(); while (Dummy(f < 3, f is var x1, x1)) { l.Add(() => System.Console.WriteLine(x1)); f++; } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"1 2 3 -- 1 2 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void While_04() { var source = @" public class X { public static void Main() { int f = 1; var l = new System.Collections.Generic.List<System.Action>(); while (Dummy(f < 3, f is var x1, x1, l, () => System.Console.WriteLine(x1))) { f++; } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"1 2 3 -- 1 2 3 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void While_05() { var source = @" public class X { public static void Main() { int f = 1; var l = new System.Collections.Generic.List<System.Action>(); while (Dummy(f < 3, f is var x1, x1, l, () => System.Console.WriteLine(x1))) { l.Add(() => System.Console.WriteLine(x1)); f++; } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"1 2 3 -- 1 1 2 2 3 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(3, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Do_01() { var source = @" public class X { public static void Main() { bool f; do { f = false; } while (Dummy(f, (f ? 1 : 2) is var x1, x1)); } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Do_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) do ; while (Dummy(f, (f ? 1 : 2) is var x1, x1) && false); if (f) { do ; while (Dummy(f, (f ? 3 : 4) is var x1, x1) && false); } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Do_03() { var source = @" public class X { public static void Main() { int f = 1; var l = new System.Collections.Generic.List<System.Action>(); do { ; } while (Dummy(f < 3, (f++) is var x1, x1, l, () => System.Console.WriteLine(x1))); System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 2 3 -- 1 2 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void For_01() { var source = @" public class X { public static void Main() { bool f = true; for (Dummy(f, (f ? 10 : 20) is var x0, x0); Dummy(f, (f ? 1 : 2) is var x1, x1); Dummy(f, (f ? 100 : 200) is var x2, x2), Dummy(true, null, x2)) { System.Console.WriteLine(x0); System.Console.WriteLine(x1); f = false; } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"10 1 10 1 200 200 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").Single(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(2, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl, x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").Single(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); var x2Decl = GetPatternDeclarations(tree, "x2").Single(); var x2Ref = GetReferences(tree, "x2").ToArray(); Assert.Equal(2, x2Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl, x2Ref); } [Fact] public void For_02() { var source = @" public class X { public static void Main() { bool f = true; for (Dummy(f, (f ? 10 : 20) is var x0, x0); Dummy(f, (f ? 1 : 2) is var x1, x1); f = false, Dummy(f, (f ? 100 : 200) is var x2, x2), Dummy(true, null, x2)) { System.Console.WriteLine(x0); System.Console.WriteLine(x1); } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"10 1 10 1 200 200 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").Single(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(2, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl, x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").Single(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); var x2Decl = GetPatternDeclarations(tree, "x2").Single(); var x2Ref = GetReferences(tree, "x2").ToArray(); Assert.Equal(2, x2Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl, x2Ref); } [Fact] public void For_03() { var source = @" public class X { public static void Main() { var l = new System.Collections.Generic.List<System.Action>(); for (bool f = 1 is var x0; Dummy(x0 < 3, x0*10 is var x1, x1); x0++) { l.Add(() => System.Console.WriteLine(""{0} {1}"", x0, x1)); } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"10 20 30 -- 3 10 3 20 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(1, x0Decl.Length); Assert.Equal(4, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl[0], x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void For_04() { var source = @" public class X { public static void Main() { var l = new System.Collections.Generic.List<System.Action>(); for (bool f = 1 is var x0; Dummy(x0 < 3, x0*10 is var x1, x1, l, () => System.Console.WriteLine(""{0} {1}"", x0, x1)); x0++) { } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"10 20 30 -- 3 10 3 20 3 30 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(1, x0Decl.Length); Assert.Equal(4, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl[0], x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void For_05() { var source = @" public class X { public static void Main() { var l = new System.Collections.Generic.List<System.Action>(); for (bool f = 1 is var x0; Dummy(x0 < 3, x0*10 is var x1, x1, l, () => System.Console.WriteLine(""{0} {1}"", x0, x1)); x0++) { l.Add(() => System.Console.WriteLine(""{0} {1}"", x0, x1)); } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"10 20 30 -- 3 10 3 10 3 20 3 20 3 30 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(1, x0Decl.Length); Assert.Equal(5, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl[0], x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(3, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Foreach_01() { var source = @" public class X { public static void Main() { bool f = true; foreach (var i in Dummy(3 is var x1, x1)) { System.Console.WriteLine(x1); } } static System.Collections.IEnumerable Dummy(object y, object z) { System.Console.WriteLine(z); return ""a""; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"3 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclaration(tree, "x1"); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); } [Fact] public void Lock_01() { var source = @" public class X { public static void Main() { lock (Dummy(""lock"" is var x1, x1)) { System.Console.WriteLine(x1); } System.Console.WriteLine(x1); } static object Dummy(object y, object z) { System.Console.WriteLine(z); return new object(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"lock lock lock"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(3, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Lock_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) lock (Dummy(f, (f ? 1 : 2) is var x1, x1)) {} if (f) { lock (Dummy(f, (f ? 3 : 4) is var x1, x1)) {} } } static object Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Fixed_01() { var source = @" public unsafe class X { public static void Main() { fixed (int* p = Dummy(""fixed"" is var x1, x1)) { System.Console.WriteLine(x1); } } static int[] Dummy(object y, object z) { System.Console.WriteLine(z); return new int[1]; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); CompileAndVerify(compilation, verify: Verification.Fails, expectedOutput: @"fixed fixed"); } [Fact] public void Yield_01() { var source = @" public class X { public static void Main() { foreach (var o in Test()) {} } static System.Collections.IEnumerable Test() { yield return Dummy(""yield1"" is var x1, x1); yield return Dummy(""yield2"" is var x2, x2); System.Console.WriteLine(x1); } static object Dummy(object y, object z) { System.Console.WriteLine(z); return new object(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"yield1 yield2 yield1"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Yield_02() { var source = @" public class X { public static void Main() { foreach (var o in Test()) {} } static System.Collections.IEnumerable Test() { bool f = true; if (f) yield return Dummy(""yield1"" is var x1, x1); if (f) { yield return Dummy(""yield2"" is var x1, x1); } } static object Dummy(object y, object z) { System.Console.WriteLine(z); return new object(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"yield1 yield2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Return_01() { var source = @" public class X { public static void Main() { Test(); } static object Test() { return Dummy(""return"" is var x1, x1); } static object Dummy(object y, object z) { System.Console.WriteLine(z); return new object(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"return"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Return_02() { var text = @" public class Cls { public static void Main() { Test0(true); Test0(false); } static object Test0(bool val) { if (val) return Test2(1 is var x1, x1); if (!val) { return Test2(2 is var x1, x1); } return null; } static object Test2(object x, object y) { System.Console.Write(y); return x; } }"; var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: "12").VerifyDiagnostics(); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Throw_01() { var source = @" public class X { public static void Main() { Test(); } static void Test() { try { throw Dummy(""throw"" is var x1, x1); } catch { } } static System.Exception Dummy(object y, object z) { System.Console.WriteLine(z); return new System.ArgumentException(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"throw"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Throw_02() { var source = @" public class X { public static void Main() { Test(true); Test(false); } static void Test(bool val) { try { if (val) throw Dummy(""throw 1"" is var x1, x1); if (!val) { throw Dummy(""throw 2"" is var x1, x1); } } catch { } } static System.Exception Dummy(object y, object z) { System.Console.WriteLine(z); return new System.ArgumentException(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"throw 1 throw 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Catch_01() { var source = @" public class X { public static void Main() { try { throw new System.InvalidOperationException(); } catch (System.Exception e) when (Dummy(e is var x1, x1)) { System.Console.WriteLine(x1.GetType()); } } static bool Dummy(object y, object z) { System.Console.WriteLine(z.GetType()); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"System.InvalidOperationException System.InvalidOperationException"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclaration(tree, "x1"); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); } [Fact] public void Catch_02() { var source = @" public class X { public static void Main() { try { throw new System.InvalidOperationException(); } catch (System.Exception e) when (Dummy(e is var x1, x1)) { System.Action d = () => { System.Console.WriteLine(x1.GetType()); }; System.Console.WriteLine(x1.GetType()); d(); } } static bool Dummy(object y, object z) { System.Console.WriteLine(z.GetType()); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"System.InvalidOperationException System.InvalidOperationException System.InvalidOperationException"); } [Fact] public void Catch_03() { var source = @" public class X { public static void Main() { try { throw new System.InvalidOperationException(); } catch (System.Exception e) when (Dummy(e is var x1, x1)) { System.Action d = () => { e = new System.NullReferenceException(); System.Console.WriteLine(x1.GetType()); }; System.Console.WriteLine(x1.GetType()); d(); System.Console.WriteLine(e.GetType()); } } static bool Dummy(object y, object z) { System.Console.WriteLine(z.GetType()); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"System.InvalidOperationException System.InvalidOperationException System.InvalidOperationException System.NullReferenceException"); } [Fact] public void Catch_04() { var source = @" public class X { public static void Main() { try { throw new System.InvalidOperationException(); } catch (System.Exception e) when (Dummy(e is var x1, x1)) { System.Action d = () => { e = new System.NullReferenceException(); }; System.Console.WriteLine(x1.GetType()); d(); System.Console.WriteLine(e.GetType()); } } static bool Dummy(object y, object z) { System.Console.WriteLine(z.GetType()); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"System.InvalidOperationException System.InvalidOperationException System.NullReferenceException"); } [Fact] public void Labeled_01() { var text = @" public class Cls { public static void Main() { a: Test1(2 is var x1); System.Console.WriteLine(x1); } static object Test1(bool x) { return null; } }"; var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: "2").VerifyDiagnostics( // (6,1): warning CS0164: This label has not been referenced // a: Test1(2 is var x1); Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(6, 1) ); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Labeled_02() { var text = @" public class Cls { public static void Main() { Test0(); } static object Test0() { bool test = true; if (test) { a: Test2(2 is var x1, x1); } return null; } static object Test2(object x, object y) { System.Console.Write(y); return x; } }"; var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: "2").VerifyDiagnostics( // (15,1): warning CS0164: This label has not been referenced // a: Test2(2 is var x1, x1); Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(15, 1) ); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact, WorkItem(10465, "https://github.com/dotnet/roslyn/issues/10465")] public void Constants_Fail() { var source = @" using System; public class X { public static void Main() { Console.WriteLine(1L is string); // warning: type mismatch Console.WriteLine(1 is int[]); // warning: expression is never of the provided type Console.WriteLine(1L is string s); // error: type mismatch Console.WriteLine(1 is int[] a); // error: expression is never of the provided type } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (7,27): warning CS0184: The given expression is never of the provided ('string') type // Console.WriteLine(1L is string); // warning: type mismatch Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "1L is string").WithArguments("string").WithLocation(7, 27), // (8,27): warning CS0184: The given expression is never of the provided ('int[]') type // Console.WriteLine(1 is int[]); // warning: expression is never of the provided type Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "1 is int[]").WithArguments("int[]").WithLocation(8, 27), // (10,33): error CS8121: An expression of type 'long' cannot be handled by a pattern of type 'string'. // Console.WriteLine(1L is string s); // error: type mismatch Diagnostic(ErrorCode.ERR_PatternWrongType, "string").WithArguments("long", "string").WithLocation(10, 33), // (11,32): error CS8121: An expression of type 'int' cannot be handled by a pattern of type 'int[]'. // Console.WriteLine(1 is int[] a); // error: expression is never of the provided type Diagnostic(ErrorCode.ERR_PatternWrongType, "int[]").WithArguments("int", "int[]").WithLocation(11, 32) ); } [Fact, WorkItem(10465, "https://github.com/dotnet/roslyn/issues/10465")] public void Types_Pass() { var source = @" using System; public class X { public static void Main() { Console.WriteLine(1 is 1); // true Console.WriteLine(1L is int.MaxValue); // OK, but false Console.WriteLine(1 is int.MaxValue); // false Console.WriteLine(int.MaxValue is int.MaxValue); // true Console.WriteLine(""goo"" is System.String); // true Console.WriteLine(Int32.MaxValue is Int32.MaxValue); // true Console.WriteLine(new int[] {1, 2} is int[] a); // true object o = null; switch (o) { case int[] b: break; case int.MaxValue: // constant, not a type break; case int i: break; case null: Console.WriteLine(""null""); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (7,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(1 is 1); // true Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "1 is 1").WithLocation(7, 27), // (8,27): warning CS8416: The given expression never matches the provided pattern. // Console.WriteLine(1L is int.MaxValue); // OK, but false Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1L is int.MaxValue").WithLocation(8, 27), // (9,27): warning CS8416: The given expression never matches the provided pattern. // Console.WriteLine(1 is int.MaxValue); // false Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is int.MaxValue").WithLocation(9, 27), // (10,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(int.MaxValue is int.MaxValue); // true Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "int.MaxValue is int.MaxValue").WithLocation(10, 27), // (11,27): warning CS0183: The given expression is always of the provided ('string') type // Console.WriteLine("goo" is System.String); // true Diagnostic(ErrorCode.WRN_IsAlwaysTrue, @"""goo"" is System.String").WithArguments("string").WithLocation(11, 27), // (12,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(Int32.MaxValue is Int32.MaxValue); // true Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "Int32.MaxValue is Int32.MaxValue").WithLocation(12, 27) ); CompileAndVerify(compilation, expectedOutput: @"True False False True True True True null"); } [Fact, WorkItem(10459, "https://github.com/dotnet/roslyn/issues/10459")] public void Typeswitch_01() { var source = @" using System; public class X { public static void Main(string[] args) { switch (args.GetType()) { case typeof(string): Console.WriteLine(""string""); break; case typeof(string[]): Console.WriteLine(""string[]""); break; case null: Console.WriteLine(""null""); break; default: Console.WriteLine(""default""); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (9,18): error CS0150: A constant value is expected // case typeof(string): Diagnostic(ErrorCode.ERR_ConstantExpected, "typeof(string)").WithLocation(9, 18), // (12,18): error CS0150: A constant value is expected // case typeof(string[]): Diagnostic(ErrorCode.ERR_ConstantExpected, "typeof(string[])").WithLocation(12, 18) ); // If we support switching on System.Type as proposed, the expectation would be // something like CompileAndVerify(compilation, expectedOutput: @"string[]"); } [Fact, WorkItem(10529, "https://github.com/dotnet/roslyn/issues/10529")] public void MissingTypeAndProperty() { var source = @" class Program { public static void Main(string[] args) { { if (obj.Property is var o) { } // `obj` doesn't exist. } { var obj = new object(); if (obj. is var o) { } } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (11,22): error CS1001: Identifier expected // if (obj. is var o) { } Diagnostic(ErrorCode.ERR_IdentifierExpected, "is").WithLocation(11, 22), // (7,17): error CS0103: The name 'obj' does not exist in the current context // if (obj.Property is var o) { } // `obj` doesn't exist. Diagnostic(ErrorCode.ERR_NameNotInContext, "obj").WithArguments("obj").WithLocation(7, 17) ); var tree = compilation.SyntaxTrees[0]; var model = compilation.GetSemanticModel(tree); foreach (var isExpression in tree.GetRoot().DescendantNodes().OfType<IsPatternExpressionSyntax>()) { var symbolInfo = model.GetSymbolInfo(isExpression.Expression); Assert.Null(symbolInfo.Symbol); Assert.True(symbolInfo.CandidateSymbols.IsDefaultOrEmpty); Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); } } [Fact] public void MixedDecisionTree() { var source = @" using System; public class X { public static void Main() { M(null); M(1); M((byte)1); M((short)1); M(2); M((byte)2); M((short)2); M(""hmm""); M(""bar""); M(""baz""); M(6); } public static void M(object o) { switch (o) { case ""hmm"": Console.WriteLine(""hmm""); break; case null: Console.WriteLine(""null""); break; case 1: Console.WriteLine(""int 1""); break; case ((byte)1): Console.WriteLine(""byte 1""); break; case ((short)1): Console.WriteLine(""short 1""); break; case ""bar"": Console.WriteLine(""bar""); break; case object t when t != o: Console.WriteLine(""impossible""); break; case 2: Console.WriteLine(""int 2""); break; case ((byte)2): Console.WriteLine(""byte 2""); break; case ((short)2): Console.WriteLine(""short 2""); break; case ""baz"": Console.WriteLine(""baz""); break; default: Console.WriteLine(""other "" + o); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: @"null int 1 byte 1 short 1 int 2 byte 2 short 2 hmm bar baz other 6"); } [Fact] public void SemanticAnalysisWithPatternInCsharp6() { var source = @"class Program { public static void Main(string[] args) { switch (args.Length) { case 1 when true: break; } } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6); compilation.VerifyDiagnostics( // (7,13): error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. // case 1 when true: Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case 1 when true:").WithArguments("pattern matching", "7.0").WithLocation(7, 13) ); } [Fact, WorkItem(11379, "https://github.com/dotnet/roslyn/issues/11379")] public void DeclarationPatternWithStaticClass() { var source = @"class Program { public static void Main(string[] args) { object o = args; switch (o) { case StaticType t: break; } } } public static class StaticType { } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (8,18): error CS0723: Cannot declare a variable of static type 'StaticType' // case StaticType t: Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "StaticType").WithArguments("StaticType").WithLocation(8, 18) ); } [Fact] public void PatternVariablesAreMutable02() { var source = @"class Program { public static void Main(string[] args) { object o = "" whatever ""; if (o is string s) { s = s.Trim(); System.Console.WriteLine(s); } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: "whatever"); } [Fact, WorkItem(12996, "https://github.com/dotnet/roslyn/issues/12996")] public void TypeOfAVarPatternVariable() { var source = @" class Program { public static void Main(string[] args) { } public static void Test(int val) { if (val is var o1) { System.Console.WriteLine(o1); } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var tree = compilation.SyntaxTrees[0]; var model1 = compilation.GetSemanticModel(tree); var declaration = tree.GetRoot().DescendantNodes().OfType<IsPatternExpressionSyntax>().Single(); var o1 = GetReferences(tree, "o1").Single(); var typeInfo1 = model1.GetTypeInfo(declaration); Assert.Equal(SymbolKind.NamedType, typeInfo1.Type.Kind); Assert.Equal("System.Boolean", typeInfo1.Type.ToTestDisplayString()); typeInfo1 = model1.GetTypeInfo(o1); Assert.Equal(SymbolKind.NamedType, typeInfo1.Type.Kind); Assert.Equal("System.Int32", typeInfo1.Type.ToTestDisplayString()); var model2 = compilation.GetSemanticModel(tree); var typeInfo2 = model2.GetTypeInfo(o1); Assert.Equal(SymbolKind.NamedType, typeInfo2.Type.Kind); Assert.Equal("System.Int32", typeInfo2.Type.ToTestDisplayString()); } [Fact] [WorkItem(13417, "https://github.com/dotnet/roslyn/issues/13417")] public void FixedFieldSize() { var text = @" unsafe struct S { fixed int F1[3 is var x1 ? x1 : 3]; fixed int F2[3 is var x2 ? 3 : 3, x2]; } "; var compilation = CreateCompilation(text, options: TestOptions.ReleaseDebugDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").Single(); var x1Ref = GetReferences(tree, "x1").Single(); Assert.True(((ITypeSymbol)compilation.GetSemanticModel(tree).GetTypeInfo(x1Ref).Type).IsErrorType()); VerifyModelNotSupported(model, x1Decl, x1Ref); var x2Decl = GetPatternDeclarations(tree, "x2").Single(); var x2Ref = GetReferences(tree, "x2").Single(); VerifyModelNotSupported(model, x2Decl, x2Ref); Assert.True(((ITypeSymbol)compilation.GetSemanticModel(tree).GetTypeInfo(x2Ref).Type).IsErrorType()); compilation.VerifyDiagnostics( // (5,17): error CS7092: A fixed buffer may only have one dimension. // fixed int F2[3 is var x2 ? 3 : 3, x2]; Diagnostic(ErrorCode.ERR_FixedBufferTooManyDimensions, "[3 is var x2 ? 3 : 3, x2]").WithLocation(5, 17), // (5,18): error CS0133: The expression being assigned to 'S.F2' must be constant // fixed int F2[3 is var x2 ? 3 : 3, x2]; Diagnostic(ErrorCode.ERR_NotConstantExpression, "3 is var x2 ? 3 : 3").WithArguments("S.F2").WithLocation(5, 18), // (4,18): error CS0133: The expression being assigned to 'S.F1' must be constant // fixed int F1[3 is var x1 ? x1 : 3]; Diagnostic(ErrorCode.ERR_NotConstantExpression, "3 is var x1 ? x1 : 3").WithArguments("S.F1").WithLocation(4, 18) ); } [Fact, WorkItem(13316, "https://github.com/dotnet/roslyn/issues/13316")] public void TypeAsExpressionInIsPattern() { var source = @"namespace CS7 { class T1 { public int a = 2; } class Program { static void Main(string[] args) { if (T1 is object i) { } } } }"; CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( // (8,17): error CS0119: 'T1' is a type, which is not valid in the given context // if (T1 is object i) Diagnostic(ErrorCode.ERR_BadSKunknown, "T1").WithArguments("CS7.T1", "type").WithLocation(8, 17) ); } [Fact, WorkItem(13316, "https://github.com/dotnet/roslyn/issues/13316")] public void MethodGroupAsExpressionInIsPattern() { var source = @"namespace CS7 { class Program { const int T = 2; static void M(object o) { if (M is T) { } } } }"; CreateCompilation(source).VerifyDiagnostics( // (8,17): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (M is T) Diagnostic(ErrorCode.ERR_LambdaInIsAs, "M is T").WithLocation(8, 17) ); } [CompilerTrait(CompilerFeature.IOperation)] [Fact, WorkItem(13383, "https://github.com/dotnet/roslyn/issues/13383")] public void MethodGroupAsExpressionInIsPatternBrokenCode() { var source = @"namespace CS7 { class Program { static void M(object o) { if (o.Equals is()) {} if (object.Equals is()) {} } } }"; var compilation = CreateCompilation(source).VerifyDiagnostics( // (7,17): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (o.Equals is()) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "o.Equals is()").WithLocation(7, 17), // (8,17): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (object.Equals is()) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "object.Equals is()").WithLocation(8, 17) ); var tree = compilation.SyntaxTrees.Single(); var node = tree.GetRoot().DescendantNodes().OfType<IsPatternExpressionSyntax>().First(); Assert.Equal("o.Equals is()", node.ToString()); // https://github.com/dotnet/roslyn/issues/27749 : This syntax corresponds to a deconstruction pattern with zero elements, which is not yet supported in IOperation. // compilation.VerifyOperationTree(node, expectedOperationTree: //@" //IIsPatternOperation (OperationKind.IsPattern, Type: System.Boolean, IsInvalid) (Syntax: 'o.Equals is()') // Expression: // IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid, IsImplicit) (Syntax: 'o.Equals is()') // Children(1): // IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'o.Equals') // Children(1): // IParameterReferenceOperation: o (OperationKind.ParameterReference, Type: System.Object, IsInvalid) (Syntax: 'o') // Pattern: //"); } [Fact, WorkItem(13383, "https://github.com/dotnet/roslyn/issues/13383")] public void MethodGroupAsExpressionInIsPatternBrokenCode2() { var source = @"namespace CS7 { class Program { static void M(object o) { if (null is()) {} if ((1, object.Equals) is()) {} } } }"; CreateCompilation(source).VerifyDiagnostics( // (7,17): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is()) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(7, 17), // (8,17): error CS0023: Operator 'is' cannot be applied to operand of type '(int, method group)' // if ((1, object.Equals) is()) {} Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, object.Equals) is()").WithArguments("is", "(int, method group)").WithLocation(8, 17) ); } [Fact, WorkItem(13723, "https://github.com/dotnet/roslyn/issues/13723")] [CompilerTrait(CompilerFeature.Tuples)] public void ExpressionWithoutAType() { var source = @" public class Vec { public static void Main() { if (null is 1) {} if (Main is 2) {} if (delegate {} is 3) {} if ((1, null) is 4) {} if (null is var x1) {} if (Main is var x2) {} if (delegate {} is var x3) {} if ((1, null) is var x4) {} } } "; CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( // (6,13): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is 1) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(6, 13), // (7,13): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (Main is 2) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Main is 2").WithLocation(7, 13), // (8,13): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (delegate {} is 3) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate {} is 3").WithLocation(8, 13), // (8,25): warning CS8848: Operator 'is' cannot be used here due to precedence. Use parentheses to disambiguate. // if (delegate {} is 3) {} Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").WithLocation(8, 25), // (9,13): error CS0023: Operator 'is' cannot be applied to operand of type '(int, <null>)' // if ((1, null) is 4) {} Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is 4").WithArguments("is", "(int, <null>)").WithLocation(9, 13), // (10,13): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is var x1) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(10, 13), // (11,13): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (Main is var x2) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Main is var x2").WithLocation(11, 13), // (12,13): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (delegate {} is var x3) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate {} is var x3").WithLocation(12, 13), // (12,25): warning CS8848: Operator 'is' cannot be used here due to precedence. Use parentheses to disambiguate. // if (delegate {} is var x3) {} Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").WithLocation(12, 25), // (13,13): error CS0023: Operator 'is' cannot be applied to operand of type '(int, <null>)' // if ((1, null) is var x4) {} Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is var x4").WithArguments("is", "(int, <null>)").WithLocation(13, 13) ); } [Fact, WorkItem(13746, "https://github.com/dotnet/roslyn/issues/13746")] [CompilerTrait(CompilerFeature.Tuples)] public void ExpressionWithoutAType02() { var source = @" public class Program { public static void Main() { if ((1, null) is Program) {} } } "; CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( // (6,13): error CS0023: Operator 'is' cannot be applied to operand of type '(int, <null>)' // if ((1, null) is Program) {} Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is Program").WithArguments("is", "(int, <null>)").WithLocation(6, 13) ); } [Fact, WorkItem(15956, "https://github.com/dotnet/roslyn/issues/15956")] public void ThrowExpressionWithNullableDecimal() { var source = @" using System; public class ITest { public decimal Test() => 1m; } public class TestClass { public void Test(ITest test) { var result = test?.Test() ?? throw new Exception(); } }"; // DEBUG var compilation = CreateCompilation(source, options: TestOptions.DebugDll); compilation.VerifyDiagnostics(); compilation.VerifyEmitDiagnostics(); var verifier = CompileAndVerify(compilation); verifier.VerifyIL("TestClass.Test", @"{ // Code size 18 (0x12) .maxstack 1 .locals init (decimal V_0, //result decimal V_1) IL_0000: nop IL_0001: ldarg.1 IL_0002: brtrue.s IL_000a IL_0004: newobj ""System.Exception..ctor()"" IL_0009: throw IL_000a: ldarg.1 IL_000b: call ""decimal ITest.Test()"" IL_0010: stloc.0 IL_0011: ret }"); // RELEASE compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); compilation.VerifyDiagnostics(); compilation.VerifyEmitDiagnostics(); verifier = CompileAndVerify(compilation); verifier.VerifyIL("TestClass.Test", @"{ // Code size 17 (0x11) .maxstack 1 IL_0000: ldarg.1 IL_0001: brtrue.s IL_0009 IL_0003: newobj ""System.Exception..ctor()"" IL_0008: throw IL_0009: ldarg.1 IL_000a: call ""decimal ITest.Test()"" IL_000f: pop IL_0010: ret }"); } [Fact, WorkItem(15956, "https://github.com/dotnet/roslyn/issues/15956")] public void ThrowExpressionWithNullableDateTime() { var source = @" using System; public class ITest { public DateTime Test() => new DateTime(2008, 5, 1, 8, 30, 52); } public class TestClass { public void Test(ITest test) { var result = test?.Test() ?? throw new Exception(); } }"; // DEBUG var compilation = CreateCompilation(source, options: TestOptions.DebugDll); compilation.VerifyDiagnostics(); compilation.VerifyEmitDiagnostics(); var verifier = CompileAndVerify(compilation); verifier.VerifyIL("TestClass.Test", @"{ // Code size 18 (0x12) .maxstack 1 .locals init (System.DateTime V_0, //result System.DateTime V_1) IL_0000: nop IL_0001: ldarg.1 IL_0002: brtrue.s IL_000a IL_0004: newobj ""System.Exception..ctor()"" IL_0009: throw IL_000a: ldarg.1 IL_000b: call ""System.DateTime ITest.Test()"" IL_0010: stloc.0 IL_0011: ret }"); // RELEASE compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); compilation.VerifyDiagnostics(); compilation.VerifyEmitDiagnostics(); verifier = CompileAndVerify(compilation); verifier.VerifyIL("TestClass.Test", @"{ // Code size 17 (0x11) .maxstack 1 IL_0000: ldarg.1 IL_0001: brtrue.s IL_0009 IL_0003: newobj ""System.Exception..ctor()"" IL_0008: throw IL_0009: ldarg.1 IL_000a: call ""System.DateTime ITest.Test()"" IL_000f: pop IL_0010: ret }"); } [Fact] public void ThrowExpressionForParameterValidation() { var source = @"using System; class Program { public static void Main(string[] args) { foreach (var s in new[] { ""0123"", ""goo"" }) { Console.Write(s + "" ""); try { Console.WriteLine(Ver(s)); } catch (ArgumentException) { Console.WriteLine(""throws""); } } } static int Ver(string s) { var result = int.TryParse(s, out int k) ? k : throw new ArgumentException(nameof(s)); return k; // definitely assigned! } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"0123 123 goo throws"); } [Fact] public void ThrowExpressionWithNullable01() { var source = @"using System; class Program { public static void Main(string[] args) { Console.WriteLine(M(1)); try { Console.WriteLine(M(null)); } catch (Exception) { Console.WriteLine(""thrown""); } } static int M(int? data) { return data ?? throw null; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"1 thrown"); } [Fact] public void ThrowExpressionWithNullable02() { var source = @"using System; class Program { public static void Main(string[] args) { Console.WriteLine(M(1)); try { Console.WriteLine(M(null)); } catch (Exception) { Console.WriteLine(""thrown""); } } static string M(object data) { return data?.ToString() ?? throw null; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"1 thrown"); } [Fact] public void ThrowExpressionWithNullable03() { var source = @"using System; using System.Threading.Tasks; class Program { public static void Main(string[] args) { MainAsync().Wait(); } static async Task MainAsync() { foreach (var i in new[] { 1, 2 }) { try { var used = (await Goo(i))?.ToString() ?? throw await Bar(i); } catch (Exception ex) { Console.WriteLine(""thrown "" + ex.Message); } } } static async Task<object> Goo(int i) { await Task.Yield(); return (i == 1) ? i : (object)null; } static async Task<Exception> Bar(int i) { await Task.Yield(); Console.WriteLine(""making exception "" + i); return new Exception(i.ToString()); } } "; var compilation = CreateEmptyCompilation(source, options: TestOptions.DebugExe, references: new[] { MscorlibRef_v4_0_30316_17626, SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929 }); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"making exception 2 thrown 2"); } [Fact] public void ThrowExpressionPrecedence01() { var source = @"using System; class Program { public static void Main(string[] args) { Exception ex = null; try { // The ?? operator is right-associative, even under 'throw' ex = ex ?? throw ex ?? throw new ArgumentException(""blue""); } catch (ArgumentException x) { Console.WriteLine(x.Message); } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"blue"); } [Fact] public void ThrowExpressionPrecedence02() { var source = @"using System; class Program { public static void Main(string[] args) { MyException ex = null; try { // Throw expression binds looser than + ex = ex ?? throw ex + 1; } catch (MyException x) { Console.WriteLine(x.Message); } } } class MyException : Exception { public MyException(string message) : base(message) {} public static MyException operator +(MyException left, int right) { return new MyException(""green""); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"green"); } [Fact, WorkItem(10492, "https://github.com/dotnet/roslyn/issues/10492")] public void IsPatternPrecedence() { var source = @"using System; class Program { const bool B = true; const int One = 1; public static void Main(string[] args) { object a = null; B c = null; Console.WriteLine(a is B & c); // prints 5 (correct) Console.WriteLine(a is B > c); // prints 6 (correct) Console.WriteLine(a is B < c); // was syntax error but should print 7 Console.WriteLine(3 is One + 2); // should print True Console.WriteLine(One + 2 is 3); // should print True } } class B { public static int operator &(bool left, B right) => 5; public static int operator >(bool left, B right) => 6; public static int operator <(bool left, B right) => 7; public static int operator +(bool left, B right) => 8; } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( // (15,27): error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. // Console.WriteLine(3 is One + 2); // should print True Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "3 is One + 2").WithArguments("pattern matching", "7.0").WithLocation(15, 27), // (16,27): error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. // Console.WriteLine(One + 2 is 3); // should print True Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "One + 2 is 3").WithArguments("pattern matching", "7.0").WithLocation(16, 27), // (15,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(3 is One + 2); // should print True Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "3 is One + 2").WithLocation(15, 27), // (16,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(One + 2 is 3); // should print True Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "One + 2 is 3").WithLocation(16, 27) ); var expectedOutput = @"5 6 7 True True"; compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (15,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(3 is One + 2); // should print True Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "3 is One + 2").WithLocation(15, 27), // (16,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(One + 2 is 3); // should print True Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "One + 2 is 3").WithLocation(16, 27) ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(10492, "https://github.com/dotnet/roslyn/issues/10492")] public void IsPatternPrecedence02() { var source = @"using System; class Program { public static void Main(string[] args) { foreach (object A in new[] { null, new B<C,D>() }) { // pass one argument, a pattern-matching operation M(A is B < C, D > E); switch (A) { case B < C, D > F: Console.WriteLine(""yes""); break; default: Console.WriteLine(""no""); break; } } } static void M(object o) { Console.WriteLine(o); } } class B<C,D> { } class C {} class D {} "; var expectedOutput = @"False no True yes"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(10492, "https://github.com/dotnet/roslyn/issues/10492")] public void IsPatternPrecedence03() { var source = @"using System; class Program { public static void Main(string[] args) { object A = new B<C, D>(); Console.WriteLine(A is B < C, D > E); Console.WriteLine(A as B < C, D > ?? string.Empty); } } class B<C,D> { public static implicit operator string(B<C,D> b) => nameof(B<C,D>); } class C {} class D {} "; var expectedOutput = @"True B"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); SyntaxFactory.ParseExpression("A is B < C, D > E").GetDiagnostics().Verify(); SyntaxFactory.ParseExpression("A as B < C, D > E").GetDiagnostics().Verify( // (1,1): error CS1073: Unexpected token 'E' // A as B < C, D > E Diagnostic(ErrorCode.ERR_UnexpectedToken, "A as B < C, D >").WithArguments("E").WithLocation(1, 1) ); SyntaxFactory.ParseExpression("A as B < C, D > ?? string.Empty").GetDiagnostics().Verify(); SyntaxFactory.ParseExpression("A is B < C, D > ?? string.Empty").GetDiagnostics().Verify( // (1,1): error CS1073: Unexpected token ',' // A is B < C, D > ?? string.Empty Diagnostic(ErrorCode.ERR_UnexpectedToken, "A is B < C").WithArguments(",").WithLocation(1, 1) ); } [Fact, WorkItem(14636, "https://github.com/dotnet/roslyn/issues/14636")] public void NameofPattern() { var source = @"using System; class Program { public static void Main(string[] args) { M(""a""); M(""b""); M(null); M(new nameof()); } public static void M(object a) { Console.WriteLine(a is nameof(a)); Console.WriteLine(a is nameof); } } class nameof { } "; var expectedOutput = @"True False False False False False False True"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(14825, "https://github.com/dotnet/roslyn/issues/14825")] public void PatternVarDeclaredInReceiverUsedInArgument() { var source = @"using System.Linq; public class C { public string[] Goo2(out string x) { x = """"; return null; } public string[] Goo3(bool b) { return null; } public string[] Goo5(string u) { return null; } public void Test() { var t1 = Goo2(out var x1).Concat(Goo5(x1)); var t2 = Goo3(t1 is var x2).Concat(Goo5(x2.First())); } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); compilation.VerifyDiagnostics(); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x2Decl = GetPatternDeclarations(tree, "x2").Single(); var x2Ref = GetReferences(tree, "x2").Single(); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl, x2Ref); Assert.Equal("System.Collections.Generic.IEnumerable<System.String>", model.GetTypeInfo(x2Ref).Type.ToTestDisplayString()); } [Fact] public void DiscardInPattern() { var source = @" using static System.Console; public class C { public static void Main() { int i = 3; Write($""is int _: {i is int _}, ""); Write($""is var _: {i is var _}, ""); switch (3) { case int _: Write(""case int _, ""); break; } switch (3L) { case var _: Write(""case var _""); break; } } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); CompileAndVerify(compilation, expectedOutput: "is int _: True, is var _: True, case int _, case var _"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var discard1 = GetDiscardDesignations(tree).First(); Assert.Null(model.GetDeclaredSymbol(discard1)); var declaration1 = (DeclarationPatternSyntax)discard1.Parent; Assert.Equal("int _", declaration1.ToString()); Assert.Equal("System.Int32", model.GetTypeInfo(declaration1).Type.ToTestDisplayString()); Assert.Equal("System.Int32", model.GetTypeInfo(declaration1.Type).Type.ToTestDisplayString()); var discard2 = GetDiscardDesignations(tree).Skip(1).First(); Assert.Null(model.GetDeclaredSymbol(discard2)); Assert.Null(model.GetSymbolInfo(discard2).Symbol); var declaration2 = (VarPatternSyntax)discard2.Parent; Assert.Equal("var _", declaration2.ToString()); Assert.Null(model.GetSymbolInfo(declaration2).Symbol); var discard3 = GetDiscardDesignations(tree).Skip(2).First(); Assert.Null(model.GetDeclaredSymbol(discard3)); var declaration3 = (DeclarationPatternSyntax)discard3.Parent; Assert.Equal("int _", declaration3.ToString()); Assert.Equal("System.Int32", model.GetTypeInfo(declaration3).Type.ToTestDisplayString()); Assert.Equal("System.Int32", model.GetTypeInfo(declaration3.Type).Type.ToTestDisplayString()); var discard4 = GetDiscardDesignations(tree).Skip(3).First(); Assert.Null(model.GetDeclaredSymbol(discard4)); var declaration4 = (VarPatternSyntax)discard4.Parent; Assert.Equal("var _", declaration4.ToString()); } [Fact] public void ShortDiscardInPattern() { var source = @" using static System.Console; public class C { public static void Main() { int i = 3; Write($""is _: {i is _}, ""); switch (3) { case _: Write(""case _""); break; } } } "; CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( // (8,29): error CS0246: The type or namespace name '_' could not be found (are you missing a using directive or an assembly reference?) // Write($"is _: {i is _}, "); Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").WithLocation(8, 29), // (11,18): error CS0103: The name '_' does not exist in the current context // case _: Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(11, 18) ); CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( // (8,29): error CS0246: The type or namespace name '_' could not be found (are you missing a using directive or an assembly reference?) // Write($"is _: {i is _}, "); Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").WithLocation(8, 29), // (11,18): error CS0103: The name '_' does not exist in the current context // case _: Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(11, 18) ); } [Fact] public void UnderscoreInPattern2() { var source = @" using static System.Console; public class C { public static void Main() { int i = 3; int _ = 4; Write($""is _: {i is _}, ""); switch (3) { case _: Write(""case _""); break; } } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); compilation.VerifyDiagnostics( // (9,29): error CS0118: '_' is a variable but is used like a type // Write($"is _: {i is _}, "); Diagnostic(ErrorCode.ERR_BadSKknown, "_").WithArguments("_", "variable", "type").WithLocation(9, 29), // (12,18): error CS0150: A constant value is expected // case _: Diagnostic(ErrorCode.ERR_ConstantExpected, "_").WithLocation(12, 18) ); } [Fact] public void UnderscoreInPattern() { var source = @" using static System.Console; public class C { public static void Main() { int i = 3; if (i is int _) { Write(_); } if (i is var _) { Write(_); } switch (3) { case int _: Write(_); break; } switch (3) { case var _: Write(_); break; } } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (8,33): error CS0103: The name '_' does not exist in the current context // if (i is int _) { Write(_); } Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(8, 33), // (9,33): error CS0103: The name '_' does not exist in the current context // if (i is var _) { Write(_); } Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(9, 33), // (13,23): error CS0103: The name '_' does not exist in the current context // Write(_); Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(13, 23), // (19,23): error CS0103: The name '_' does not exist in the current context // Write(_); Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(19, 23) ); } [Fact] public void PointerTypeInPattern() { // pointer types are not supported in patterns. Therefore an attempt to use // a pointer type will be interpreted by the parser as a multiplication // (i.e. an expression that is a constant pattern rather than a declaration // pattern) var source = @" public class var {} unsafe public class Typ { public static void Main(int* a, var* c, Typ* e) { { if (a is int* b) {} if (c is var* d) {} if (e is Typ* f) {} } { switch (a) { case int* b: break; } switch (c) { case var* d: break; } switch (e) { case Typ* f: break; } } } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); compilation.VerifyDiagnostics( // (8,22): error CS1525: Invalid expression term 'int' // if (a is int* b) {} Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").WithLocation(8, 22), // (13,31): error CS1525: Invalid expression term 'int' // switch (a) { case int* b: break; } Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").WithLocation(13, 31), // (5,42): error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('var') // public static void Main(int* a, var* c, Typ* e) Diagnostic(ErrorCode.ERR_ManagedAddr, "c").WithArguments("var").WithLocation(5, 42), // (5,50): error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('Typ') // public static void Main(int* a, var* c, Typ* e) Diagnostic(ErrorCode.ERR_ManagedAddr, "e").WithArguments("Typ").WithLocation(5, 50), // (8,27): error CS0103: The name 'b' does not exist in the current context // if (a is int* b) {} Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").WithLocation(8, 27), // (9,22): error CS0119: 'var' is a type, which is not valid in the given context // if (c is var* d) {} Diagnostic(ErrorCode.ERR_BadSKunknown, "var").WithArguments("var", "type").WithLocation(9, 22), // (9,27): error CS0103: The name 'd' does not exist in the current context // if (c is var* d) {} Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").WithLocation(9, 27), // (10,22): error CS0119: 'Typ' is a type, which is not valid in the given context // if (e is Typ* f) {} Diagnostic(ErrorCode.ERR_BadSKunknown, "Typ").WithArguments("Typ", "type").WithLocation(10, 22), // (10,27): error CS0103: The name 'f' does not exist in the current context // if (e is Typ* f) {} Diagnostic(ErrorCode.ERR_NameNotInContext, "f").WithArguments("f").WithLocation(10, 27), // (13,36): error CS0103: The name 'b' does not exist in the current context // switch (a) { case int* b: break; } Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").WithLocation(13, 36), // (14,31): error CS0119: 'var' is a type, which is not valid in the given context // switch (c) { case var* d: break; } Diagnostic(ErrorCode.ERR_BadSKunknown, "var").WithArguments("var", "type").WithLocation(14, 31), // (14,36): error CS0103: The name 'd' does not exist in the current context // switch (c) { case var* d: break; } Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").WithLocation(14, 36), // (15,31): error CS0119: 'Typ' is a type, which is not valid in the given context // switch (e) { case Typ* f: break; } Diagnostic(ErrorCode.ERR_BadSKunknown, "Typ").WithArguments("Typ", "type").WithLocation(15, 31), // (15,36): error CS0103: The name 'f' does not exist in the current context // switch (e) { case Typ* f: break; } Diagnostic(ErrorCode.ERR_NameNotInContext, "f").WithArguments("f").WithLocation(15, 36) ); } [Fact] [WorkItem(16513, "https://github.com/dotnet/roslyn/issues/16513")] public void OrderOfPatternOperands() { var source = @" using System; class Program { public static void Main(string[] args) { object c = new C(); Console.WriteLine(c is 3); c = 2; Console.WriteLine(c is 3); c = 3; Console.WriteLine(c is 3); } } class C { override public bool Equals(object other) { return other is int x; } override public int GetHashCode() => 0; } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: @"False False True"); } [Fact] public void MultiplyInPattern() { // pointer types are not supported in patterns. Therefore an attempt to use // a pointer type will be interpreted by the parser as a multiplication // (i.e. an expression that is a constant pattern rather than a declaration // pattern) var source = @" public class Program { public static void Main() { const int two = 2; const int three = 3; int six = two * three; System.Console.WriteLine(six is two * three); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: "True"); } [Fact] public void ColorColorConstantPattern() { var source = @" public class Program { public static Color Color { get; } public static void M(object o) { System.Console.WriteLine(o is Color.Constant); } public static void Main() { M(Color.Constant); } } public class Color { public const string Constant = ""abc""; } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: "True"); } [Fact] [WorkItem(336030, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/336030")] public void NullOperand() { var source = @" class C { void M() { System.Console.Write(null is Missing x); System.Console.Write(null is Missing); switch(null) { case Missing: case Missing y: break; } } } "; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (6,30): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // System.Console.Write(null is Missing x); Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(6, 30), // (6,38): error CS0246: The type or namespace name 'Missing' could not be found (are you missing a using directive or an assembly reference?) // System.Console.Write(null is Missing x); Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").WithLocation(6, 38), // (7,38): error CS0246: The type or namespace name 'Missing' could not be found (are you missing a using directive or an assembly reference?) // System.Console.Write(null is Missing); Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").WithLocation(7, 38), // (8,16): error CS8119: The switch expression must be a value; found '<null>'. // switch(null) Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "null").WithArguments("<null>").WithLocation(8, 16), // (10,18): error CS0103: The name 'Missing' does not exist in the current context // case Missing: Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").WithLocation(10, 18), // (11,18): error CS0246: The type or namespace name 'Missing' could not be found (are you missing a using directive or an assembly reference?) // case Missing y: Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").WithLocation(11, 18) ); } [Fact] [WorkItem(336030, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=336030")] [WorkItem(294570, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=294570")] public void Fuzz46() { var program = @" public class Program46 { public static void Main(string[] args) { switch ((() => 1)) { case int x4: case string x9: case M: case ((int)M()): break; } } private static object M() => null; }"; CreateCompilation(program).VerifyDiagnostics( // (6,17): error CS8119: The switch expression must be a value; found 'lambda expression'. // switch ((() => 1)) Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "(() => 1)").WithArguments("lambda expression").WithLocation(6, 17), // (10,18): error CS0150: A constant value is expected // case M: Diagnostic(ErrorCode.ERR_ConstantExpected, "M").WithLocation(10, 18), // (11,19): error CS0150: A constant value is expected // case ((int)M()): Diagnostic(ErrorCode.ERR_ConstantExpected, "(int)M()").WithLocation(11, 19) ); } [Fact] [WorkItem(363714, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=363714")] public void Fuzz46b() { var program = @" public class Program46 { public static void Main(string[] args) { switch ((() => 1)) { case M: break; } } private static object M() => null; }"; CreateCompilation(program).VerifyDiagnostics( // (6,17): error CS8119: The switch expression must be a value; found 'lambda expression'. // switch ((() => 1)) Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "(() => 1)").WithArguments("lambda expression").WithLocation(6, 17), // (8,18): error CS0150: A constant value is expected // case M: Diagnostic(ErrorCode.ERR_ConstantExpected, "M").WithLocation(8, 18) ); } [Fact] [WorkItem(336030, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=336030")] public void Fuzz401() { var program = @" public class Program401 { public static void Main(string[] args) { if (null is M) {} } private static object M() => null; }"; CreateCompilation(program).VerifyDiagnostics( // (6,13): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is M) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(6, 13), // (6,21): error CS0150: A constant value is expected // if (null is M) {} Diagnostic(ErrorCode.ERR_ConstantExpected, "M").WithLocation(6, 21) ); } [Fact] [WorkItem(364165, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=364165")] [WorkItem(16296, "https://github.com/dotnet/roslyn/issues/16296")] public void Fuzz1717() { var program = @" public class Program1717 { public static void Main(string[] args) { switch (default(int?)) { case 2: break; case double.NaN: break; case var x9: case string _: break; } } private static object M() => null; }"; CreateCompilation(program).VerifyDiagnostics( // (10,18): error CS0266: Cannot implicitly convert type 'double' to 'int?'. An explicit conversion exists (are you missing a cast?) // case double.NaN: Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "double.NaN").WithArguments("double", "int?").WithLocation(10, 18), // (13,18): error CS8121: An expression of type 'int?' cannot be handled by a pattern of type 'string'. // case string _: Diagnostic(ErrorCode.ERR_PatternWrongType, "string").WithArguments("int?", "string").WithLocation(13, 18) ); } [Fact, WorkItem(16559, "https://github.com/dotnet/roslyn/issues/16559")] public void CasePatternVariableUsedInCaseExpression() { var program = @" public class Program5815 { public static void Main(object o) { switch (o) { case Color Color: case Color? Color2: break; } } private static object M() => null; }"; var compilation = CreateCompilation(program).VerifyDiagnostics( // (9,32): error CS1525: Invalid expression term 'break' // case Color? Color2: Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("break").WithLocation(9, 32), // (9,32): error CS1003: Syntax error, ':' expected // case Color? Color2: Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":", "break").WithLocation(9, 32), // (8,18): error CS0118: 'Color' is a variable but is used like a type // case Color Color: Diagnostic(ErrorCode.ERR_BadSKknown, "Color").WithArguments("Color", "variable", "type").WithLocation(8, 18), // (9,25): error CS0103: The name 'Color2' does not exist in the current context // case Color? Color2: Diagnostic(ErrorCode.ERR_NameNotInContext, "Color2").WithArguments("Color2").WithLocation(9, 25) ); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var colorDecl = GetPatternDeclarations(tree, "Color").ToArray(); var colorRef = GetReferences(tree, "Color").ToArray(); Assert.Equal(1, colorDecl.Length); Assert.Equal(2, colorRef.Length); Assert.Null(model.GetSymbolInfo(colorRef[0]).Symbol); VerifyModelForDeclarationOrVarSimplePattern(model, colorDecl[0], colorRef[1]); } [Fact, WorkItem(16559, "https://github.com/dotnet/roslyn/issues/16559")] public void Fuzz5815() { var program = @" public class Program5815 { public static void Main(string[] args) { switch ((int)M()) { case var x3: case true ? x3 : 4: break; } } private static object M() => null; }"; var compilation = CreateCompilation(program).VerifyDiagnostics( // (9,18): error CS0150: A constant value is expected // case true ? x3 : 4: Diagnostic(ErrorCode.ERR_ConstantExpected, "true ? x3 : 4").WithLocation(9, 18), // (9,25): error CS0165: Use of unassigned local variable 'x3' // case true ? x3 : 4: Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").WithLocation(9, 25) ); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x3Decl = GetPatternDeclarations(tree, "x3").ToArray(); var x3Ref = GetReferences(tree, "x3").ToArray(); Assert.Equal(1, x3Decl.Length); Assert.Equal(1, x3Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x3Decl[0], x3Ref); } [Fact] public void Fuzz_Conjunction_01() { var program = @" public class Program { public static void Main(string[] args) { if (((int?)1) is {} and 1) { } } }"; var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( ); } [Fact] public void Fuzz_738490379() { var program = @" public class Program738490379 { public static void Main(string[] args) { if (NotFound is var (M, not int _ or NotFound _) { }) {} } private static object M() => null; }"; var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( // (6,13): error CS0841: Cannot use local variable 'NotFound' before it is declared // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "NotFound").WithArguments("NotFound").WithLocation(6, 13), // (6,37): error CS1026: ) expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").WithLocation(6, 37), // (6,37): error CS1026: ) expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").WithLocation(6, 37), // (6,37): error CS1023: Embedded statement cannot be a declaration or labeled statement // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "int _ ").WithLocation(6, 37), // (6,41): warning CS0168: The variable '_' is declared but never used // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.WRN_UnreferencedVar, "_").WithArguments("_").WithLocation(6, 41), // (6,43): error CS1002: ; expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_SemicolonExpected, "or").WithLocation(6, 43), // (6,43): error CS0246: The type or namespace name 'or' could not be found (are you missing a using directive or an assembly reference?) // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "or").WithArguments("or").WithLocation(6, 43), // (6,55): error CS1002: ; expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_SemicolonExpected, "_").WithLocation(6, 55), // (6,55): error CS0103: The name '_' does not exist in the current context // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(6, 55), // (6,56): error CS1002: ; expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").WithLocation(6, 56), // (6,56): error CS1513: } expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_RbraceExpected, ")").WithLocation(6, 56), // (6,62): error CS1513: } expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_RbraceExpected, ")").WithLocation(6, 62) ); } [Fact(Skip = "https://github.com/dotnet/roslyn/issues/16721")] public void Fuzz() { const int numTests = 1200000; int dt = (int)Math.Abs(DateTime.Now.Ticks % 1000000000); for (int i = 1; i < numTests; i++) { PatternMatchingFuzz(i + dt); } } [Fact(Skip = "https://github.com/dotnet/roslyn/issues/16721")] public void MultiFuzz() { // Just like Fuzz(), but take advantage of concurrency on the test host. const int numTasks = 300; const int numTestsPerTask = 4000; int dt = (int)Math.Abs(DateTime.Now.Ticks % 1000000000); var tasks = Enumerable.Range(0, numTasks).Select(t => Task.Run(() => { int k = dt + t * numTestsPerTask; for (int i = 1; i < numTestsPerTask; i++) { PatternMatchingFuzz(i + k); } })); Task.WaitAll(tasks.ToArray()); } private static void PatternMatchingFuzz(int dt) { Random r = new Random(dt); // generate a pattern-matching switch randomly from templates string[] expressions = new[] { "M", // a method group "(() => 1)", // a lambda expression "1", // a constant "2", // a constant "null", // the null constant "default(int?)", // a null constant of type int? "((int?)1)", // a constant of type int? "M()", // a method invocation "double.NaN", // a scary constant "1.1", // a double constant "NotFound" // an unbindable expression }; string Expression() { int index = r.Next(expressions.Length + 1) - 1; return (index < 0) ? $"(({Type()})M())" : expressions[index]; } string[] types = new[] { "object", "var", "int", "int?", "double", "string", "NotFound" }; string Type() => types[r.Next(types.Length)]; string Pattern(int d = 5) { switch (r.Next(d <= 1 ? 9 : 12)) { default: return Expression(); // a "constant" pattern case 3: case 4: return Type(); case 5: return Type() + " _"; case 6: return Type() + " x" + r.Next(10); case 7: return "not " + Pattern(d - 1); case 8: return "(" + Pattern(d - 1) + ")"; case 9: return makeRecursivePattern(d); case 10: return Pattern(d - 1) + " and " + Pattern(d - 1); case 11: return Pattern(d - 1) + " or " + Pattern(d - 1); } string makeRecursivePattern(int d) { while (true) { bool haveParens = r.Next(2) == 0; bool haveCurlies = r.Next(2) == 0; if (!haveParens && !haveCurlies) continue; bool haveType = r.Next(2) == 0; bool haveIdentifier = r.Next(2) == 0; return $"{(haveType ? Type() : null)} {(haveParens ? $"({makePatternList(d - 1, false)})" : null)} {(haveCurlies ? $"{"{ "}{makePatternList(d - 1, true)}{" }"}" : null)} {(haveIdentifier ? " x" + r.Next(10) : null)}"; } } string makePatternList(int d, bool propNames) { return string.Join(", ", Enumerable.Range(0, r.Next(3)).Select(i => $"{(propNames ? $"P{r.Next(10)}: " : null)}{Pattern(d)}")); } } string body = @" public class Program{0} {{ public static void Main(string[] args) {{ {1} }} private static object M() => null; }}"; var statement = new StringBuilder(); switch (r.Next(2)) { case 0: // test the "is-pattern" expression statement.Append($"if ({Expression()} is {Pattern()}) {{}}"); break; case 1: // test the pattern switch statement statement.AppendLine($"switch ({Expression()})"); statement.AppendLine("{"); var nCases = r.Next(5); for (int i = 1; i <= nCases; i++) { statement.AppendLine($" case {Pattern()}:"); if (i == nCases || r.Next(2) == 0) { statement.AppendLine($" break;"); } } statement.AppendLine("}"); break; default: throw null; } var program = string.Format(body, dt, statement); CreateCompilation(program).GetDiagnostics(); } [Fact, WorkItem(16671, "https://github.com/dotnet/roslyn/issues/16671")] public void TypeParameterSubsumption01() { var program = @" using System; public class Program { public static void Main(string[] args) { PatternMatching<Base, Derived>(new Base()); PatternMatching<Base, Derived>(new Derived()); PatternMatching<Base, Derived>(null); PatternMatching<object, int>(new object()); PatternMatching<object, int>(2); PatternMatching<object, int>(null); PatternMatching<object, int?>(new object()); PatternMatching<object, int?>(2); PatternMatching<object, int?>(null); } static void PatternMatching<TBase, TDerived>(TBase o) where TDerived : TBase { switch (o) { case TDerived td: Console.WriteLine(nameof(TDerived)); break; case TBase tb: Console.WriteLine(nameof(TBase)); break; default: Console.WriteLine(""Neither""); break; } } } class Base { } class Derived : Base { } "; var compilation = CreateCompilation(program, options: TestOptions.DebugExe).VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"TBase TDerived Neither TBase TDerived Neither TBase TDerived Neither"); } [Fact, WorkItem(16671, "https://github.com/dotnet/roslyn/issues/16671")] public void TypeParameterSubsumption02() { var program = @" using System; public class Program { static void PatternMatching<TBase, TDerived>(TBase o) where TDerived : TBase { switch (o) { case TBase tb: Console.WriteLine(nameof(TBase)); break; case TDerived td: Console.WriteLine(nameof(TDerived)); break; default: Console.WriteLine(""Neither""); break; } } } class Base { } class Derived : Base { } "; var compilation = CreateCompilation(program).VerifyDiagnostics( // (12,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case TDerived td: Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "TDerived td").WithLocation(12, 18) ); } [Fact, WorkItem(16688, "https://github.com/dotnet/roslyn/issues/16688")] public void TypeParameterSubsumption03() { var program = @" using System.Collections.Generic; public class Program { private static void Pattern<T>(T thing) where T : class { switch (thing) { case T tThing: break; case IEnumerable<object> s: break; } } } "; var compilation = CreateCompilation(program).VerifyDiagnostics( // (11,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case IEnumerable<object> s: Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "IEnumerable<object> s").WithLocation(11, 18) ); } [Fact, WorkItem(16696, "https://github.com/dotnet/roslyn/issues/16696")] public void TypeParameterSubsumption04() { var program = @" using System; using System.Collections.Generic; public class Program { private static int Pattern1<TBase, TDerived>(object thing) where TBase : class where TDerived : TBase { switch (thing) { case IEnumerable<TBase> sequence: return 1; // IEnumerable<TBase> does not subsume IEnumerable<TDerived> because TDerived may be a value type. case IEnumerable<TDerived> derivedSequence: return 2; default: return 3; } } private static int Pattern2<TBase, TDerived>(object thing) where TBase : class where TDerived : TBase { switch (thing) { case IEnumerable<object> s: return 1; // IEnumerable<object> does not subsume IEnumerable<TDerived> because TDerived may be a value type. case IEnumerable<TDerived> derivedSequence: return 2; default: return 3; } } public static void Main(string[] args) { Console.WriteLine(Pattern1<object, int>(new List<object>())); Console.WriteLine(Pattern1<object, int>(new List<int>())); Console.WriteLine(Pattern1<object, int>(null)); Console.WriteLine(Pattern2<object, int>(new List<object>())); Console.WriteLine(Pattern2<object, int>(new List<int>())); Console.WriteLine(Pattern2<object, int>(null)); } } "; var compilation = CreateCompilation(program, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"1 2 3 1 2 3"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void TypeParameterSubsumption05() { var program = @" public class Program { static void M<T, U>(T t, U u) where T : U { switch(""test"") { case U uu: break; case T tt: // Produces a diagnostic about subsumption/unreachability break; } } } "; CreateCompilation(program, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7).VerifyDiagnostics( // (8,18): error CS8314: An expression of type 'string' cannot be handled by a pattern of type 'U' in C# 7.0. Please use language version 7.1 or greater. // case U uu: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "U").WithArguments("string", "U", "7.0", "7.1").WithLocation(8, 18), // (10,18): error CS8314: An expression of type 'string' cannot be handled by a pattern of type 'T' in C# 7.0. Please use language version 7.1 or greater. // case T tt: // Produces a diagnostic about subsumption/unreachability Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("string", "T", "7.0", "7.1").WithLocation(10, 18) ); CreateCompilation(program, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( // (10,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case T tt: // Produces a diagnostic about subsumption/unreachability Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "T tt").WithLocation(10, 18) ); } [Fact, WorkItem(17103, "https://github.com/dotnet/roslyn/issues/17103")] public void IsConstantPatternConversion_Positive() { var source = @"using System; public class Program { public static void Main() { { byte b = 12; Console.WriteLine(b is 12); // True Console.WriteLine(b is 13); // False Console.WriteLine(b is (int)12L); // True Console.WriteLine(b is (int)13L); // False } bool Is42(byte b) => b is 42; Console.WriteLine(Is42(42)); Console.WriteLine(Is42(43)); Console.WriteLine(Is42((int)42L)); Console.WriteLine(Is42((int)43L)); } }"; var expectedOutput = @"True False True False True False True False"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(17103, "https://github.com/dotnet/roslyn/issues/17103")] public void IsConstantPatternConversion_Negative() { var source = @"using System; public class Program { public static void Main() { byte b = 12; Console.WriteLine(b is 12L); Console.WriteLine(1 is null); } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (7,32): error CS0266: Cannot implicitly convert type 'long' to 'byte'. An explicit conversion exists (are you missing a cast?) // Console.WriteLine(b is 12L); Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "12L").WithArguments("long", "byte").WithLocation(7, 32), // (8,32): error CS0037: Cannot convert null to 'int' because it is a non-nullable value type // Console.WriteLine(1 is null); Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").WithLocation(8, 32) ); } [Fact] [WorkItem(9542, "https://github.com/dotnet/roslyn/issues/9542")] [WorkItem(16876, "https://github.com/dotnet/roslyn/issues/16876")] public void DecisionTreeCoverage_Positive() { // tests added to complete coverage of the decision tree and pattern-matching implementation var source = @"using System; public class X { public static void Main() { void M1(int i, bool b) { switch (i) { case 1 when b: Console.WriteLine(""M1a""); break; case 1: Console.WriteLine(""M1b""); break; case 2: Console.WriteLine(""M1c""); break; } } M1(1, true); M1(1, false); M1(2, false); M1(3, false); void M2(object o, bool b) { switch (o) { case null: Console.WriteLine(""M2a""); break; case var _ when b: Console.WriteLine(""M2b""); break; case 1: Console.WriteLine(""M2c""); break; } } M2(null, true); M2(1, true); M2(1, false); void M3(bool? b1, bool b2) { switch (b1) { case null: Console.WriteLine(""M3a""); break; case var _ when b2: Console.WriteLine(""M3b""); break; case true: Console.WriteLine(""M3c""); break; case false: Console.WriteLine(""M3d""); break; } } M3(null, true); M3(true, true); M3(true, false); M3(false, false); void M4(object o, bool b) { switch (o) { case var _ when b: Console.WriteLine(""M4a""); break; case int i: Console.WriteLine(""M4b""); break; } } M4(1, true); M4(1, false); void M5(int? i, bool b) { switch (i) { case var _ when b: Console.WriteLine(""M5a""); break; case null: Console.WriteLine(""M5b""); break; case int q: Console.WriteLine(""M5c""); break; } } M5(1, true); M5(null, false); M5(1, false); void M6(object o, bool b) { switch (o) { case var _ when b: Console.WriteLine(""M6a""); break; case object q: Console.WriteLine(""M6b""); break; case null: Console.WriteLine(""M6c""); break; } } M6(null, true); M6(1, false); M6(null, false); void M7(object o, bool b) { switch (o) { case null when b: Console.WriteLine(""M7a""); break; case object q: Console.WriteLine(""M7b""); break; case null: Console.WriteLine(""M7c""); break; } } M7(null, true); M7(1, false); M7(null, false); void M8(object o) { switch (o) { case null when false: throw null; case null: Console.WriteLine(""M8a""); break; } } M8(null); void M9(object o, bool b1, bool b2) { switch (o) { case var _ when b1: Console.WriteLine(""M9a""); break; case var _ when b2: Console.WriteLine(""M9b""); break; case var _: Console.WriteLine(""M9c""); break; } } M9(1, true, false); M9(1, false, true); M9(1, false, false); void M10(bool b) { const string nullString = null; switch (nullString) { case null when b: Console.WriteLine(""M10a""); break; case var _: Console.WriteLine(""M10b""); break; } } M10(true); M10(false); void M11() { const string s = """"; switch (s) { case string _: Console.WriteLine(""M11a""); break; } } M11(); void M12(bool cond) { const string s = """"; switch (s) { case string _ when cond: Console.WriteLine(""M12a""); break; case var _: Console.WriteLine(""M12b""); break; } } M12(true); M12(false); void M13(bool cond) { string s = """"; switch (s) { case string _ when cond: Console.WriteLine(""M13a""); break; case string _: Console.WriteLine(""M13b""); break; } } M13(true); M13(false); void M14() { const string s = """"; switch (s) { case s: Console.WriteLine(""M14a""); break; } } M14(); void M15() { const int i = 3; switch (i) { case 3: case 4: case 5: Console.WriteLine(""M15a""); break; } } M15(); } }"; var expectedOutput = @"M1a M1b M1c M2a M2b M2c M3a M3b M3c M3d M4a M4b M5a M5b M5c M6a M6b M6c M7a M7b M7c M8a M9a M9b M9c M10a M10b M11a M12a M12b M13a M13b M14a M15a "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] [WorkItem(9542, "https://github.com/dotnet/roslyn/issues/9542")] public void DecisionTreeCoverage_BadEquals() { // tests added to complete coverage of the decision tree and pattern-matching implementation var source = @"public class X { static void M1(float o) { switch (o) { case 0f/0f: break; } } } namespace System { public class Object { } public abstract class ValueType { } public struct Void { } public struct Boolean { private Boolean m_value; Boolean Use(Boolean b) { m_value = b; return m_value; } } public struct Int32 { private Int32 m_value; Int32 Use(Int32 b) { m_value = b; return m_value; } } public struct Char { } public class String { } } namespace System { public struct Single { private Single m_value; public /*note bad return type*/ void Equals(Single other) { m_value = m_value + 1; } public /*note bad return type*/ void IsNaN(Single other) { } } } "; var compilation = CreateEmptyCompilation(source); compilation.VerifyDiagnostics( ); compilation.GetEmitDiagnostics().Where(d => d.Severity != DiagnosticSeverity.Warning).Verify( // (7,18): error CS0656: Missing compiler required member 'System.Single.IsNaN' // case 0f/0f: break; Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "0f/0f").WithArguments("System.Single", "IsNaN").WithLocation(7, 18) ); } [Fact] [WorkItem(9542, "https://github.com/dotnet/roslyn/issues/9542")] public void DecisionTreeCoverage_DuplicateDefault() { // tests added to complete coverage of the decision tree and pattern-matching implementation var source = @"public class X { static void M1(object o) { switch (o) { case int x: default: default: break; } } } "; var compilation = CreateCompilation(source); compilation.VerifyDiagnostics( // (9,13): error CS0152: The switch statement contains multiple cases with the label value 'default' // default: Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "default:").WithArguments("default").WithLocation(9, 13) ); } [Fact] [WorkItem(9542, "https://github.com/dotnet/roslyn/issues/9542")] public void DecisionTreeCoverage_Negative() { // tests added to complete coverage of the decision tree and pattern-matching implementation var source = @"public class X { static void M1(object o) { switch (o) { case 1: case int _: case 2: // subsumed break; } } static void M2(object o) { switch (o) { case 1: case int _: case int _: // subsumed break; } } } "; var compilation = CreateCompilation(source); compilation.VerifyDiagnostics( // (9,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case 2: // subsumed Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "2").WithLocation(9, 18), // (19,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case int _: // subsumed Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "int _").WithLocation(19, 18) ); } [Fact] [WorkItem(17089, "https://github.com/dotnet/roslyn/issues/17089")] public void Dynamic_01() { var source = @"using System; public class X { static void M1(dynamic d) { if (d is 1) { Console.Write('r'); } else if (d is int i) { Console.Write('o'); } else if (d is var z) { long l = z; Console.Write('s'); } } static void M2(dynamic d) { switch (d) { case 1: Console.Write('l'); break; case int i: Console.Write('y'); break; case var z: long l = z; Console.Write('n'); break; } } public static void Main(string[] args) { M1(1); M1(2); M1(3L); M2(1); M2(2); M2(3L); } } "; var compilation = CreateCompilation(source, references: new MetadataReference[] { CSharpRef }, options: TestOptions.ReleaseExe); var comp = CompileAndVerify(compilation, expectedOutput: "roslyn"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_01() { var source = @"using System; public class Base { } public class Derived : Base { } public class Program { public static void Main(string[] args) { M(new Derived()); M(new Base()); } public static void M<T>(T x) where T: Base { Console.Write(x is Derived b0); switch (x) { case Derived b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (13,28): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Derived' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is Derived b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived").WithArguments("T", "Derived", "7.0", "7.1").WithLocation(13, 28), // (16,18): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Derived' in C# 7.0. Please use language version 7.1 or greater. // case Derived b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived").WithArguments("T", "Derived", "7.0", "7.1").WithLocation(16, 18) ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_02() { var source = @"using System; public class Base { } public class Derived : Base { } public class Program { public static void Main(string[] args) { M<Derived>(new Derived()); M<Derived>(new Base()); } public static void M<T>(Base x) { Console.Write(x is T b0); switch (x) { case T b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (13,28): error CS8413: An expression of type 'Base' cannot be handled by a pattern of type 'T' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is T b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("Base", "T", "7.0", "7.1").WithLocation(13, 28), // (16,18): error CS8413: An expression of type 'Base' cannot be handled by a pattern of type 'T' in C# 7.0. Please use language version 7.1 or greater. // case T b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("Base", "T", "7.0", "7.1") ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_03() { var source = @"using System; public class Base { } public class Derived<T> : Base { } public class Program { public static void Main(string[] args) { M<Base>(new Derived<Base>()); M<Base>(new Base()); } public static void M<T>(T x) where T: Base { Console.Write(x is Derived<T> b0); switch (x) { case Derived<T> b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (13,28): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Derived<T>' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is Derived<T> b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived<T>").WithArguments("T", "Derived<T>", "7.0", "7.1").WithLocation(13, 28), // (16,18): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Derived<T>' in C# 7.0. Please use language version 7.1 or greater. // case Derived<T> b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived<T>").WithArguments("T", "Derived<T>", "7.0", "7.1").WithLocation(16, 18) ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_04() { var source = @"using System; public class Base { } class Container<T> { public class Derived : Base { } } public class Program { public static void Main(string[] args) { M<Base>(new Container<Base>.Derived()); M<Base>(new Base()); } public static void M<T>(T x) where T: Base { Console.Write(x is Container<T>.Derived b0); switch (x) { case Container<T>.Derived b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (16,28): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Container<T>.Derived' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is Container<T>.Derived b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived").WithArguments("T", "Container<T>.Derived", "7.0", "7.1").WithLocation(16, 28), // (19,18): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Container<T>.Derived' in C# 7.0. Please use language version 7.1 or greater. // case Container<T>.Derived b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived").WithArguments("T", "Container<T>.Derived", "7.0", "7.1").WithLocation(19, 18) ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_05() { var source = @"using System; public class Base { } class Container<T> { public class Derived : Base { } } public class Program { public static void Main(string[] args) { M<Base>(new Container<Base>.Derived[1]); M<Base>(new Base[1]); } public static void M<T>(T[] x) where T: Base { Console.Write(x is Container<T>.Derived[] b0); switch (x) { case Container<T>.Derived[] b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (16,28): error CS8413: An expression of type 'T[]' cannot be handled by a pattern of type 'Container<T>.Derived[]' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is Container<T>.Derived[] b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived[]").WithArguments("T[]", "Container<T>.Derived[]", "7.0", "7.1").WithLocation(16, 28), // (19,18): error CS8413: An expression of type 'T[]' cannot be handled by a pattern of type 'Container<T>.Derived[]' in C# 7.0. Please use language version 7.1 or greater. // case Container<T>.Derived[] b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived[]").WithArguments("T[]", "Container<T>.Derived[]", "7.0", "7.1").WithLocation(19, 18) ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(19151, "https://github.com/dotnet/roslyn/issues/19151")] public void RefutablePatterns() { var source = @"public class Program { public static void Main(string[] args) { if (null as string is string) { } if (null as string is string s1) { } const string s = null; if (s is string) { } if (s is string s2) { } if (""goo"" is string s3) { } } void M1(int? i) { if (i is long) { } if (i is long l) { } switch (b) { case long m: break; } } } "; var compilation = CreateCompilation(source); compilation.VerifyDiagnostics( // (8,13): warning CS0184: The given expression is never of the provided ('string') type // if (s is string) { } Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "s is string").WithArguments("string").WithLocation(8, 13), // (9,13): warning CS8416: The given expression never matches the provided pattern. // if (s is string s2) { } Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string s2").WithLocation(9, 13), // (14,13): warning CS0184: The given expression is never of the provided ('long') type // if (i is long) { } Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "i is long").WithArguments("long").WithLocation(14, 13), // (15,18): error CS8121: An expression of type 'int?' cannot be handled by a pattern of type 'long'. // if (i is long l) { } Diagnostic(ErrorCode.ERR_PatternWrongType, "long").WithArguments("int?", "long").WithLocation(15, 18), // (16,17): error CS0103: The name 'b' does not exist in the current context // switch (b) { case long m: break; } Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").WithLocation(16, 17) ); } [Fact, WorkItem(19038, "https://github.com/dotnet/roslyn/issues/19038")] public void GenericDynamicIsObject() { var program = @" using System; public class Program { static void Main(string[] args) { M<dynamic>(new object()); M<dynamic>(null); M<dynamic>(""xyzzy""); } static void M<T>(object x) { switch (x) { case T t: Console.Write(""T""); break; case null: Console.Write(""n""); break; } } } "; var compilation = CreateCompilation(program, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"TnT"); } [Fact, WorkItem(19038, "https://github.com/dotnet/roslyn/issues/19038")] public void MatchNullableTypeParameter() { var program = @" using System; public class Program { static void Main(string[] args) { M<int>(1); M<int>(null); M<float>(3.14F); } static void M<T>(T? x) where T : struct { switch (x) { case T t: Console.Write(""T""); break; case null: Console.Write(""n""); break; } } } "; var compilation = CreateCompilation(program, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"TnT"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void MatchRecursiveGenerics() { var program = @"using System; class Packet { } class Packet<U> : Packet { } public class C { static void Main() { Console.Write(M<Packet>(null)); Console.Write(M<Packet>(new Packet<Packet>())); Console.Write(M<Packet>(new Packet<int>())); Console.Write(M<Packet<int>>(new Packet<int>())); } static bool M<T>(T p) where T : Packet => p is Packet<T> p1; }"; CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7).VerifyDiagnostics( // (12,52): error CS8314: An expression of type 'T' cannot be handled by a pattern of type 'Packet<T>' in C# 7.0. Please use language version 7.1 or greater. // static bool M<T>(T p) where T : Packet => p is Packet<T> p1; Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Packet<T>").WithArguments("T", "Packet<T>", "7.0", "7.1").WithLocation(12, 52) ); var compilation = CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"FalseTrueFalseFalse"); } [Fact, WorkItem(19038, "https://github.com/dotnet/roslyn/issues/19038")] public void MatchRestrictedTypes_Fail() { var program = @"using System; unsafe public class C { static bool M(TypedReference x, int* p, ref int z) { var n1 = x is TypedReference x0; // ok var p1 = p is int* p0; // syntax error 1 var r1 = z is ref int z0; // syntax error 2 var b1 = x is object o1; // not allowed 1 var b2 = p is object o2; // not allowed 2 var b3 = z is object o3; // ok return b1 && b2 && b3; } }"; var compilation = CreateCompilation(program, options: TestOptions.DebugDll.WithAllowUnsafe(true)); compilation.VerifyDiagnostics( // (6,23): error CS1525: Invalid expression term 'int' // var p1 = p is int* p0; // syntax error 1 Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").WithLocation(6, 23), // (7,23): error CS1525: Invalid expression term 'ref' // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref int").WithArguments("ref").WithLocation(7, 23), // (7,27): error CS1525: Invalid expression term 'int' // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").WithLocation(7, 27), // (7,31): error CS1002: ; expected // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_SemicolonExpected, "z0").WithLocation(7, 31), // (6,28): error CS0103: The name 'p0' does not exist in the current context // var p1 = p is int* p0; // syntax error 1 Diagnostic(ErrorCode.ERR_NameNotInContext, "p0").WithArguments("p0").WithLocation(6, 28), // (7,23): error CS1073: Unexpected token 'ref' // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").WithLocation(7, 23), // (7,31): error CS0103: The name 'z0' does not exist in the current context // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_NameNotInContext, "z0").WithArguments("z0").WithLocation(7, 31), // (7,31): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_IllegalStatement, "z0").WithLocation(7, 31), // (9,23): error CS8121: An expression of type 'TypedReference' cannot be handled by a pattern of type 'object'. // var b1 = x is object o1; // not allowed 1 Diagnostic(ErrorCode.ERR_PatternWrongType, "object").WithArguments("System.TypedReference", "object").WithLocation(9, 23), // (10,23): error CS8521: Pattern-matching is not permitted for pointer types. // var b2 = p is object o2; // not allowed 2 Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "object").WithLocation(10, 23) ); } [Fact, WorkItem(19038, "https://github.com/dotnet/roslyn/issues/19038")] public void MatchRestrictedTypes_Success() { var program = @"using System; using System.Reflection; unsafe public class C { public int Value; static void Main() { C a = new C { Value = 12 }; FieldInfo info = typeof(C).GetField(""Value""); TypedReference reference = __makeref(a); if (!(reference is TypedReference reference0)) throw new Exception(""TypedReference""); info.SetValueDirect(reference0, 34); if (a.Value != 34) throw new Exception(""SetValueDirect""); int z = 56; if (CopyRefInt(ref z) != 56) throw new Exception(""ref z""); Console.WriteLine(""ok""); } static int CopyRefInt(ref int z) { if (!(z is int z0)) throw new Exception(""CopyRefInt""); return z0; } }"; var compilation = CreateCompilation(program, options: TestOptions.DebugExe.WithAllowUnsafe(true)); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: "ok"); } [Fact] [WorkItem(406203, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=406203")] [WorkItem(406205, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=406205")] public void DoubleEvaluation() { var source = @"using System; public class X { public static void Main(string[] args) { { int? a = 0; if (a++ is int b) { Console.WriteLine(b); } Console.WriteLine(a); } { int? a = 0; if (++a is int b) { Console.WriteLine(b); } Console.WriteLine(a); } { if (Func() is int b) { Console.WriteLine(b); } } } public static int? Func() { Console.WriteLine(""Func called""); return 2; } } "; var expectedOutput = @"0 1 1 1 Func called 2"; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); CompileAndVerify(compilation, expectedOutput: expectedOutput); compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] public void TestVoidInIsOrAs_01() { // though silly, it is not forbidden to test a void value's type var source = @"using System; class Program { static void Main() { if (Console.Write(""Hello"") is object) {} } } "; var expectedOutput = @"Hello"; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,13): warning CS0184: The given expression is never of the provided ('object') type // if (Console.Write("Hello") is object) {} Diagnostic(ErrorCode.WRN_IsAlwaysFalse, @"Console.Write(""Hello"") is object").WithArguments("object").WithLocation(6, 13) ); CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] public void TestVoidInIsOrAs_02() { var source = @"using System; class Program { static void Main() { var o = Console.WriteLine(""world!"") as object; if (o != null) throw null; } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,17): error CS0039: Cannot convert type 'void' to 'object' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion // var o = Console.WriteLine("world!") as object; Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, @"Console.WriteLine(""world!"") as object").WithArguments("void", "object").WithLocation(6, 17) ); } [Fact] public void TestVoidInIsOrAs_03() { var source = @"using System; class Program { static void Main() { M<object>(); } static void M<T>() where T : class { var o = Console.WriteLine(""Hello"") as T; if (o != null) throw null; } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (10,17): error CS0039: Cannot convert type 'void' to 'T' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion // var o = Console.WriteLine("Hello") as T; Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, @"Console.WriteLine(""Hello"") as T").WithArguments("void", "T").WithLocation(10, 17) ); } [Fact] public void TestVoidInIsOrAs_04() { var source = @"using System; class Program { static void Main() { if (Console.WriteLine(""Hello"") is var x) { } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,13): error CS8117: Invalid operand for pattern match; value required, but found 'void'. // if (Console.WriteLine("Hello") is var x) { } Diagnostic(ErrorCode.ERR_BadPatternExpression, @"Console.WriteLine(""Hello"")").WithArguments("void").WithLocation(6, 13) ); } [Fact] public void TestVoidInIsOrAs_05() { var source = @"using System; class Program { static void Main() { if (Console.WriteLine(""Hello"") is var _) {} } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,13): error CS8117: Invalid operand for pattern match; value required, but found 'void'. // if (Console.WriteLine("Hello") is var _) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, @"Console.WriteLine(""Hello"")").WithArguments("void").WithLocation(6, 13) ); } [Fact] public void TestVoidInSwitch() { var source = @"using System; class Program { static void Main() { switch (Console.WriteLine(""Hello"")) { default: break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,17): error CS8119: The switch expression must be a value; found 'void'. // switch (Console.WriteLine("Hello")) Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, @"Console.WriteLine(""Hello"")").WithArguments("void").WithLocation(6, 17) ); } [Fact, WorkItem(20103, "https://github.com/dotnet/roslyn/issues/20103")] public void TestNullInIsPattern() { var source = @"using System; class Program { static void Main() { const string s = null; if (s is string) {} else { Console.Write(""Hello ""); } if (s is string t) {} else { Console.WriteLine(""World""); } } } "; var expectedOutput = @"Hello World"; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (7,13): warning CS0184: The given expression is never of the provided ('string') type // if (s is string) {} else { Console.Write("Hello "); } Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "s is string").WithArguments("string").WithLocation(7, 13), // (8,13): warning CS8416: The given expression never matches the provided pattern. // if (s is string t) {} else { Console.WriteLine("World"); } Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string t").WithLocation(8, 13) ); CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(22619, "https://github.com/dotnet/roslyn/issues/22619")] public void MissingSideEffect() { var source = @"using System; internal class Program { private static void Main() { try { var test = new Program(); var result = test.IsVarMethod(); Console.WriteLine($""Result = {result}""); Console.Read(); } catch (Exception) { Console.WriteLine(""Exception""); } } private int IsVarMethod() => ThrowingMethod() is var _ ? 1 : 0; private bool ThrowingMethod() => throw new Exception(""Oh""); } "; var expectedOutput = @"Exception"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(23100, "https://github.com/dotnet/roslyn/issues/23100")] public void TestArrayOfPointer() { var source = @"using System; class Program { unsafe static void Main() { object o = new byte*[10]; Console.WriteLine(o is byte*[]); // True Console.WriteLine(o is byte*[] _); // True Console.WriteLine(o is byte*[] x1); // True Console.WriteLine(o is byte**[]); // False Console.WriteLine(o is byte**[] _); // False Console.WriteLine(o is byte**[] x2); // False o = new byte**[10]; Console.WriteLine(o is byte**[]); // True Console.WriteLine(o is byte**[] _); // True Console.WriteLine(o is byte**[] x3); // True Console.WriteLine(o is byte*[]); // False Console.WriteLine(o is byte*[] _); // False Console.WriteLine(o is byte*[] x4); // False } } "; var expectedOutput = @"True True True False False False True True True False False False"; var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Fails); } [Fact] public void DefaultPattern() { var source = @"class Program { public static void Main() { int i = 12; if (i is default) {} // error 1 if (i is (default)) {} // error 2 if (i is (((default)))) {} // error 3 switch (i) { case default: break; } // error 4 switch (i) { case (default): break; } // error 5 switch (i) { case default when true: break; } // error 6 switch (i) { case (default) when true: break; } // error 7 } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (6,18): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // if (i is default) {} // error 1 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(6, 18), // (7,19): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // if (i is (default)) {} // error 2 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(7, 19), // (8,21): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // if (i is (((default)))) {} // error 3 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(8, 21), // (9,27): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // switch (i) { case default: break; } // error 4 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(9, 27), // (10,28): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // switch (i) { case (default): break; } // error 5 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(10, 28), // (11,27): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // switch (i) { case default when true: break; } // error 6 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(11, 27), // (12,28): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // switch (i) { case (default) when true: break; } // error 7 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(12, 28) ); var tree = compilation.SyntaxTrees.Single(); var caseDefault = tree.GetRoot().DescendantNodes().OfType<CasePatternSwitchLabelSyntax>().First(); var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); Assert.Equal("System.Int32", model.GetTypeInfo(caseDefault.Pattern).Type.ToTestDisplayString()); Assert.Equal("System.Int32", model.GetTypeInfo(caseDefault.Pattern).ConvertedType.ToTestDisplayString()); Assert.False(model.GetConstantValue(caseDefault.Pattern).HasValue); } [Fact] public void EventInitializers_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static event System.Func<bool> Test1 = GetDelegate(1 is int x1 && Dummy(x1)); static System.Func<bool> GetDelegate(bool value) => () => value; static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( // (9,65): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // static event System.Func<bool> Test1 = GetDelegate(1 is int x1 && Dummy(x1)); Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(9, 65) ); } [Fact] public void ExhaustiveBoolSwitch00() { // Note that the switches in this code are exhaustive. The idea of a switch // being exhaustive is new with the addition of pattern-matching; this code // used to give errors that are no longer applicable due to the spec change. var source = @" using System; public class C { public static void Main() { M(true); M(false); Console.WriteLine(M2(true)); Console.WriteLine(M2(false)); } public static void M(bool e) { bool b; switch (e) { case true: b = true; break; case false: b = false; break; } Console.WriteLine(b); // no more error CS0165: Use of unassigned local variable 'b' } public static bool M2(bool e) // no more error CS0161: not all code paths return a value { switch (e) { case true: return true; case false: return false; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"True False True False"); } [Fact, WorkItem(24865, "https://github.com/dotnet/roslyn/issues/24865")] public void ExhaustiveBoolSwitch01() { var source = @" using System; public class C { public static void Main() { M(true); M(false); Console.WriteLine(M2(true)); Console.WriteLine(M2(false)); } public static void M(bool e) { bool b; switch (e) { case true when true: b = true; break; case false: b = false; break; } Console.WriteLine(b); } public static bool M2(bool e) { switch (e) { case true when true: return true; case false: return false; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"True False True False"); } [Fact] [WorkItem(27218, "https://github.com/dotnet/roslyn/issues/27218")] public void IsPatternMatchingDoesNotCopyEscapeScopes_01() { CreateCompilationWithMscorlibAndSpan(@" using System; public class C { public ref int M() { Span<int> outer = stackalloc int[100]; if (outer is Span<int> inner) { return ref inner[5]; } throw null; } }").VerifyDiagnostics( // (10,24): error CS8352: Cannot use local 'inner' in this context because it may expose referenced variables outside of their declaration scope // return ref inner[5]; Diagnostic(ErrorCode.ERR_EscapeLocal, "inner").WithArguments("inner").WithLocation(10, 24)); } [Fact] [WorkItem(27218, "https://github.com/dotnet/roslyn/issues/27218")] public void IsPatternMatchingDoesNotCopyEscapeScopes_03() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" using System; public class C { public ref int M() { Span<int> outer = stackalloc int[100]; if (outer is ({} and var x) and Span<int> inner) { return ref inner[5]; } throw null; } }").VerifyDiagnostics( // (8,13): warning CS8794: An expression of type 'Span<int>' always matches the provided pattern. // if (outer is ({} and var x) and Span<int> inner) Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is ({} and var x) and Span<int> inner").WithArguments("System.Span<int>").WithLocation(8, 13), // (10,24): error CS8352: Cannot use local 'inner' in this context because it may expose referenced variables outside of their declaration scope // return ref inner[5]; Diagnostic(ErrorCode.ERR_EscapeLocal, "inner").WithArguments("inner").WithLocation(10, 24) ); } [Fact] [WorkItem(27218, "https://github.com/dotnet/roslyn/issues/27218")] public void CasePatternMatchingDoesNotCopyEscapeScopes_01() { CreateCompilationWithMscorlibAndSpan(@" using System; public class C { public ref int M() { Span<int> outer = stackalloc int[100]; switch (outer) { case Span<int> inner: { return ref inner[5]; } } throw null; } }").VerifyDiagnostics( // (12,28): error CS8352: Cannot use local 'inner' in this context because it may expose referenced variables outside of their declaration scope // return ref inner[5]; Diagnostic(ErrorCode.ERR_EscapeLocal, "inner").WithArguments("inner").WithLocation(12, 28)); } [Fact] [WorkItem(27218, "https://github.com/dotnet/roslyn/issues/27218")] public void CasePatternMatchingDoesNotCopyEscapeScopes_03() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" using System; public class C { public ref int M() { Span<int> outer = stackalloc int[100]; switch (outer) { case {} and Span<int> inner: { return ref inner[5]; } } throw null; } }").VerifyDiagnostics( // (12,28): error CS8352: Cannot use local 'inner' in this context because it may expose referenced variables outside of their declaration scope // return ref inner[5]; Diagnostic(ErrorCode.ERR_EscapeLocal, "inner").WithArguments("inner").WithLocation(12, 28)); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void CasePatternMatchingDoesNotCopyEscapeScopes_02() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" using System; public ref struct R { public R Prop => this; public void Deconstruct(out R X, out R Y) => X = Y = this; public static implicit operator R(Span<int> span) => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; switch (outer) { case { Prop: var x }: return x; // error 1 } } public R M2() { R outer = stackalloc int[100]; switch (outer) { case { Prop: R x }: return x; // error 2 } } public R M3() { R outer = stackalloc int[100]; switch (outer) { case (var x, var y): return x; // error 3 } } public R M4() { R outer = stackalloc int[100]; switch (outer) { case (R x, R y): return x; // error 4 } } public R M5() { R outer = stackalloc int[100]; switch (outer) { case var (x, y): return x; // error 5 } } public R M6() { R outer = stackalloc int[100]; switch (outer) { case { } x: return x; // error 6 } } public R M7() { R outer = stackalloc int[100]; switch (outer) { case (_, _) x: return x; // error 7 } } } ").VerifyDiagnostics( // (16,42): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case { Prop: var x }: return x; // error 1 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(16, 42), // (24,40): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case { Prop: R x }: return x; // error 2 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(24, 40), // (32,41): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case (var x, var y): return x; // error 3 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(32, 41), // (40,37): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case (R x, R y): return x; // error 4 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(40, 37), // (48,37): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var (x, y): return x; // error 5 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(48, 37), // (56,32): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case { } x: return x; // error 6 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(56, 32), // (64,35): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case (_, _) x: return x; // error 7 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(64, 35) ); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void CasePatternMatchingDoesNotCopyEscapeScopes_04() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" using System; public ref struct R { public R Prop => this; public void Deconstruct(out R X, out R Y) => X = Y = this; public static implicit operator R(Span<int> span) => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and { Prop: var _ and {} and var x }: return x; // error 1 } } public R M2() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and { Prop: var _ and {} and R x }: return x; // error 2 } } public R M3() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and (var _ and {} and var x, var _ and {} and var y): return x; // error 3 } } public R M4() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and (var _ and {} and R x, var _ and {} and R y): return x; // error 4 } } public R M5() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and var (x, y): return x; // error 5 } } public R M6() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and { } x: return x; // error 6 } } public R M7() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and (var _ and {} and _, var _ and {} and _) x: return x; // error 7 } } } ").VerifyDiagnostics( // (16,76): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and { Prop: var _ and {} and var x }: return x; // error 1 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(16, 76), // (24,74): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and { Prop: var _ and {} and R x }: return x; // error 2 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(24, 74), // (32,92): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and (var _ and {} and var x, var _ and {} and var y): return x; // error 3 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(32, 92), // (40,88): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and (var _ and {} and R x, var _ and {} and R y): return x; // error 4 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(40, 88), // (48,54): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and var (x, y): return x; // error 5 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(48, 54), // (56,49): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and { } x: return x; // error 6 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(56, 49), // (64,86): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and (var _ and {} and _, var _ and {} and _) x: return x; // error 7 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(64, 86) ); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void IsPatternMatchingDoesNotCopyEscapeScopes_02() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" using System; public ref struct R { public R Prop => this; public void Deconstruct(out R X, out R Y) => X = Y = this; public static implicit operator R(Span<int> span) => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; if (outer is { Prop: var x }) return x; // error 1 throw null; } public R M2() { R outer = stackalloc int[100]; if (outer is { Prop: R x }) return x; // error 2 throw null; } public R M3() { R outer = stackalloc int[100]; if (outer is (var x, var y)) return x; // error 3 throw null; } public R M4() { R outer = stackalloc int[100]; if (outer is (R x, R y)) return x; // error 4 throw null; } public R M5() { R outer = stackalloc int[100]; if (outer is var (x, y)) return x; // error 5 throw null; } public R M6() { R outer = stackalloc int[100]; if (outer is { } x) return x; // error 6 throw null; } public R M7() { R outer = stackalloc int[100]; if (outer is (_, _) x) return x; // error 7 throw null; } } ").VerifyDiagnostics( // (14,46): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is { Prop: var x }) return x; // error 1 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(14, 46), // (20,44): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is { Prop: R x }) return x; // error 2 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(20, 44), // (26,45): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is (var x, var y)) return x; // error 3 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(26, 45), // (32,41): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is (R x, R y)) return x; // error 4 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(32, 41), // (38,41): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var (x, y)) return x; // error 5 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(38, 41), // (44,36): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is { } x) return x; // error 6 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(44, 36), // (50,39): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is (_, _) x) return x; // error 7 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(50, 39) ); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void IsPatternMatchingDoesNotCopyEscapeScopes_04() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" using System; public ref struct R { public R Prop => this; public void Deconstruct(out R X, out R Y) => X = Y = this; public static implicit operator R(Span<int> span) => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; if (outer is var _ and {} and { Prop: var _ and {} and var x }) return x; // error 1 throw null; } public R M2() { R outer = stackalloc int[100]; if (outer is var _ and {} and { Prop: var _ and {} and R x }) return x; // error 2 throw null; } public R M3() { R outer = stackalloc int[100]; if (outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)) return x; // error 3 throw null; } public R M4() { R outer = stackalloc int[100]; if (outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)) return x; // error 4 throw null; } public R M5() { R outer = stackalloc int[100]; if (outer is var _ and {} and var (x, y)) return x; // error 5 throw null; } public R M6() { R outer = stackalloc int[100]; if (outer is var _ and {} and { } x) return x; // error 6 throw null; } public R M7() { R outer = stackalloc int[100]; if (outer is var _ and {} and (_, _) x) return x; // error 7 throw null; } } ").VerifyDiagnostics( // if (outer is var _ and {} and { Prop: var _ and {} and var x }) return x; // error 1 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { Prop: var _ and {} and var x }").WithArguments("R").WithLocation(14, 13), // (14,80): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and { Prop: var _ and {} and var x }) return x; // error 1 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(14, 80), // (20,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and { Prop: var _ and {} and R x }) return x; // error 2 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { Prop: var _ and {} and R x }").WithArguments("R").WithLocation(20, 13), // (20,78): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and { Prop: var _ and {} and R x }) return x; // error 2 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(20, 78), // (26,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)) return x; // error 3 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)").WithArguments("R").WithLocation(26, 13), // (26,96): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)) return x; // error 3 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(26, 96), // (32,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)) return x; // error 4 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)").WithArguments("R").WithLocation(32, 13), // (32,92): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)) return x; // error 4 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(32, 92), // (38,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and var (x, y)) return x; // error 5 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and var (x, y)").WithArguments("R").WithLocation(38, 13), // (38,58): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and var (x, y)) return x; // error 5 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(38, 58), // (44,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and { } x) return x; // error 6 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { } x").WithArguments("R").WithLocation(44, 13), // (44,53): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and { } x) return x; // error 6 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(44, 53), // (50,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and (_, _) x) return x; // error 7 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (_, _) x").WithArguments("R").WithLocation(50, 13), // (50,56): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and (_, _) x) return x; // error 7 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(50, 56) ); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void EscapeScopeInSubpatternOfNonRefType() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" using System; public ref struct R { public R RProp => this; public S SProp => new S(); public void Deconstruct(out S X, out S Y) => X = Y = new S(); public static implicit operator R(Span<int> span) => new R(); } public struct S { public R RProp => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; if (outer is { SProp: { RProp: var x }}) return x; // OK throw null; } public R M2() { R outer = stackalloc int[100]; switch (outer) { case { SProp: { RProp: var x }}: return x; // OK } } public R M3() { R outer = stackalloc int[100]; if (outer is ({ RProp: var x }, _)) return x; // OK throw null; } public R M4() { R outer = stackalloc int[100]; switch (outer) { case ({ RProp: var x }, _): return x; // OK } } } ").VerifyDiagnostics( ); } [Fact] [WorkItem(39960, "https://github.com/dotnet/roslyn/issues/39960")] public void MissingExceptionType() { var source = @" class C { void M(bool b, dynamic d) { _ = b ? throw new System.NullReferenceException() : throw null; L(); throw null; void L() => throw d; } } "; var comp = CreateCompilation(source); comp.MakeTypeMissing(WellKnownType.System_Exception); comp.VerifyDiagnostics( // (7,21): error CS0518: Predefined type 'System.Exception' is not defined or imported // ? throw new System.NullReferenceException() Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "new System.NullReferenceException()").WithArguments("System.Exception").WithLocation(7, 21), // (8,21): error CS0518: Predefined type 'System.Exception' is not defined or imported // : throw null; Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "null").WithArguments("System.Exception").WithLocation(8, 21), // (10,15): error CS0518: Predefined type 'System.Exception' is not defined or imported // throw null; Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "null").WithArguments("System.Exception").WithLocation(10, 15), // (11,27): error CS0518: Predefined type 'System.Exception' is not defined or imported // void L() => throw d; Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "d").WithArguments("System.Exception").WithLocation(11, 27) ); comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); comp.MakeTypeMissing(WellKnownType.System_Exception); comp.VerifyDiagnostics( // (7,21): error CS0155: The type caught or thrown must be derived from System.Exception // ? throw new System.NullReferenceException() Diagnostic(ErrorCode.ERR_BadExceptionType, "new System.NullReferenceException()").WithLocation(7, 21), // (11,27): error CS0155: The type caught or thrown must be derived from System.Exception // void L() => throw d; Diagnostic(ErrorCode.ERR_BadExceptionType, "d").WithLocation(11, 27) ); } [Fact] public void MissingExceptionType_In7() { var source = @" class C { static void Main() { try { Test(); } catch { System.Console.WriteLine(""in catch""); } } static void Test() { throw null; } }"; var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); comp.MakeTypeMissing(WellKnownType.System_Exception); comp.VerifyDiagnostics( ); CompileAndVerify(comp, expectedOutput: "in catch"); } [Fact, WorkItem(50301, "https://github.com/dotnet/roslyn/issues/50301")] public void SymbolsForSwitchExpressionLocals() { var source = @" class C { static string M(object o) { return o switch { int i => $""Number: {i}"", _ => ""Don't know"" }; } }"; var comp = CreateCompilation(source); comp.VerifyDiagnostics(); comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""9"" endLine=""10"" endColumn=""11"" document=""1"" /> <entry offset=""0xf"" startLine=""8"" startColumn=""22"" endLine=""8"" endColumn=""36"" document=""1"" /> <entry offset=""0x22"" startLine=""9"" startColumn=""18"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0x28"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2a""> <scope startOffset=""0xf"" endOffset=""0x22""> <local name=""i"" il_index=""0"" il_start=""0xf"" il_end=""0x22"" attributes=""0"" /> </scope> </scope> </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; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { [CompilerTrait(CompilerFeature.Patterns)] public class PatternMatchingTests : PatternMatchingTestBase { [Fact] public void DemoModes() { var source = @" public class Vec { public static void Main() { object o = ""Pass""; int i1 = 0b001010; // binary literals int i2 = 23_554; // digit separators // local functions // Note: due to complexity and cost of parsing local functions we // don't try to parse if the feature isn't enabled int f() => 2; ref int i3 = ref i1; // ref locals string s = o is string k ? k : null; // pattern matching //let var i4 = 3; // let //int i5 = o match (case * : 7); // match //object q = (o is null) ? o : throw null; // throw expressions //if (q is Vec(3)) {} // recursive pattern } public int X => 4; public Vec(int x) {} } "; CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( // (7,18): error CS8059: Feature 'binary literals' is not available in C# 6. Please use language version 7.0 or greater. // int i1 = 0b001010; // binary literals Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "").WithArguments("binary literals", "7.0").WithLocation(7, 18), // (8,18): error CS8059: Feature 'digit separators' is not available in C# 6. Please use language version 7.0 or greater. // int i2 = 23_554; // digit separators Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "").WithArguments("digit separators", "7.0").WithLocation(8, 18), // (12,13): error CS8059: Feature 'local functions' is not available in C# 6. Please use language version 7.0 or greater. // int f() => 2; Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "f").WithArguments("local functions", "7.0").WithLocation(12, 13), // (13,9): error CS8059: Feature 'byref locals and returns' is not available in C# 6. Please use language version 7.0 or greater. // ref int i3 = ref i1; // ref locals Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").WithLocation(13, 9), // (13,22): error CS8059: Feature 'byref locals and returns' is not available in C# 6. Please use language version 7.0 or greater. // ref int i3 = ref i1; // ref locals Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").WithLocation(13, 22), // (14,20): error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. // string s = o is string k ? k : null; // pattern matching Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "o is string k").WithArguments("pattern matching", "7.0").WithLocation(14, 20), // (12,13): warning CS8321: The local function 'f' is declared but never used // int f() => 2; Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").WithLocation(12, 13) ); // enables binary literals, digit separators, local functions, ref locals, pattern matching CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( // (8,13): warning CS0219: The variable 'i2' is assigned but its value is never used // int i2 = 23_554; // digit separators Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i2").WithArguments("i2").WithLocation(8, 13), // (12,13): warning CS8321: The local function 'f' is declared but never used // int f() => 2; Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").WithLocation(12, 13) ); } [Fact] public void SimplePatternTest() { var source = @"using System; public class X { public static void Main() { var s = nameof(Main); if (s is string t) Console.WriteLine(""1. {0}"", t); s = null; Console.WriteLine(""2. {0}"", s is string w ? w : nameof(X)); int? x = 12; {if (x is var y) Console.WriteLine(""3. {0}"", y);} {if (x is int y) Console.WriteLine(""4. {0}"", y);} x = null; {if (x is var y) Console.WriteLine(""5. {0}"", y);} {if (x is int y) Console.WriteLine(""6. {0}"", y);} Console.WriteLine(""7. {0}"", (x is bool is bool)); } }"; var expectedOutput = @"1. Main 2. X 3. 12 4. 12 5. 7. True"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // warning CS0184: The given expression is never of the provided ('bool') type // Console.WriteLine("7. {0}", (x is bool is bool)); Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "x is bool").WithArguments("bool"), // warning CS0183: The given expression is always of the provided ('bool') type // Console.WriteLine("7. {0}", (x is bool is bool)); Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "x is bool is bool").WithArguments("bool") ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] public void NullablePatternTest() { var source = @"using System; public class X { public static void Main() { T(null); T(1); } public static void T(object x) { if (x is Nullable<int> y) Console.WriteLine($""expression {x} is Nullable<int> y""); } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (11,18): error CS8116: It is not legal to use nullable type 'int?' in a pattern; use the underlying type 'int' instead. // if (x is Nullable<int> y) Console.WriteLine($"expression {x} is Nullable<int> y"); Diagnostic(ErrorCode.ERR_PatternNullableType, "Nullable<int>").WithArguments("int").WithLocation(11, 18) ); } [Fact] public void UnconstrainedPatternTest() { var source = @"using System; public class X { public static void Main() { Test<string>(1); Test<int>(""goo""); Test<int>(1); Test<int>(1.2); Test<double>(1.2); Test<int?>(1); Test<int?>(null); Test<string>(null); } public static void Test<T>(object x) { if (x is T y) Console.WriteLine($""expression {x} is {typeof(T).Name} {y}""); else Console.WriteLine($""expression {x} is not {typeof(T).Name}""); } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); using (new EnsureInvariantCulture()) { var expectedOutput = @"expression 1 is not String expression goo is not Int32 expression 1 is Int32 1 expression 1.2 is not Int32 expression 1.2 is Double 1.2 expression 1 is Nullable`1 1 expression is not Nullable`1 expression is not String"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact, WorkItem(10932, "https://github.com/dotnet/roslyn/issues/10932")] public void PatternErrors() { var source = @"using System; using NullableInt = System.Nullable<int>; public class X { public static void Main() { var s = nameof(Main); byte b = 1; if (s is string t) { } else Console.WriteLine(t); if (null is dynamic t2) { } // null not allowed if (s is NullableInt x) { } // error: cannot use nullable type if (s is long l) { } // error: cannot convert string to long if (b is 1000) { } // error: cannot convert 1000 to byte } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (10,13): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is dynamic t2) { } // null not allowed Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(10, 13), // (11,18): error CS8116: It is not legal to use nullable type 'int?' in a pattern; use the underlying type 'int' instead. // if (s is NullableInt x) { } // error: cannot use nullable type Diagnostic(ErrorCode.ERR_PatternNullableType, "NullableInt").WithArguments("int").WithLocation(11, 18), // (12,18): error CS8121: An expression of type 'string' cannot be handled by a pattern of type 'long'. // if (s is long l) { } // error: cannot convert string to long Diagnostic(ErrorCode.ERR_PatternWrongType, "long").WithArguments("string", "long").WithLocation(12, 18), // (13,18): error CS0031: Constant value '1000' cannot be converted to a 'byte' // if (b is 1000) { } // error: cannot convert 1000 to byte Diagnostic(ErrorCode.ERR_ConstOutOfRange, "1000").WithArguments("1000", "byte").WithLocation(13, 18), // (9,55): error CS0165: Use of unassigned local variable 't' // if (s is string t) { } else Console.WriteLine(t); Diagnostic(ErrorCode.ERR_UseDefViolation, "t").WithArguments("t").WithLocation(9, 55) ); } [Fact] public void PatternInCtorInitializer() { var source = @"using System; public class X { public static void Main() { new D(1); new D(10); new D(1.2); } } class D { public D(object o) : this(o is int x && x >= 5) {} public D(bool b) { Console.WriteLine(b); } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var expectedOutput = @"False True False"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] public void PatternInCatchFilter() { var source = @"using System; public class X { public static void Main() { M(1); M(10); M(1.2); } private static void M(object o) { try { throw new Exception(); } catch (Exception) when (o is int x && x >= 5) { Console.WriteLine($""Yes for {o}""); } catch (Exception) { Console.WriteLine($""No for {o}""); } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"No for 1 Yes for 10 No for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [ConditionalFact(typeof(DesktopOnly), Reason = "https://github.com/dotnet/roslyn/issues/28026")] public void PatternInFieldInitializer() { var source = @"using System; public class X { static object o1 = 1; static object o2 = 10; static object o3 = 1.2; static bool b1 = M(o1, (o1 is int x && x >= 5)), b2 = M(o2, (o2 is int x && x >= 5)), b3 = M(o3, (o3 is int x && x >= 5)); public static void Main() { } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact] public void PatternInExpressionBodiedMethod() { var source = @"using System; public class X { static object o1 = 1; static object o2 = 10; static object o3 = 1.2; static bool B1() => M(o1, (o1 is int x && x >= 5)); static bool B2 => M(o2, (o2 is int x && x >= 5)); static bool B3 => M(o3, (o3 is int x && x >= 5)); public static void Main() { var r = B1() | B2 | B3; } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact, WorkItem(8778, "https://github.com/dotnet/roslyn/issues/8778")] public void PatternInExpressionBodiedLocalFunction() { var source = @"using System; public class X { static object o1 = 1; static object o2 = 10; static object o3 = 1.2; public static void Main() { bool B1() => M(o1, (o1 is int x && x >= 5)); bool B2() => M(o2, (o2 is int x && x >= 5)); bool B3() => M(o3, (o3 is int x && x >= 5)); var r = B1() | B2() | B3(); } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact, WorkItem(8778, "https://github.com/dotnet/roslyn/issues/8778")] public void PatternInExpressionBodiedLambda() { var source = @"using System; public class X { public static void Main() { object o1 = 1; object o2 = 10; object o3 = 1.2; Func<object, bool> B1 = o => M(o, (o is int x && x >= 5)); B1(o1); Func<bool> B2 = () => M(o2, (o2 is int x && x >= 5)); B2(); Func<bool> B3 = () => M(o3, (o3 is int x && x >= 5)); B3(); } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact] public void PatternInBadPlaces() { var source = @"using System; [Obsolete("""" is string s ? s : """")] public class X { public static void Main() { } private static void M(string p = """" is object o ? o.ToString() : """") { } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (2,11): error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type // [Obsolete("" is string s ? s : "")] Diagnostic(ErrorCode.ERR_BadAttributeArgument, @""""" is string s ? s : """"").WithLocation(2, 11), // (8,38): error CS1736: Default parameter value for 'p' must be a compile-time constant // private static void M(string p = "" is object o ? o.ToString() : "") Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @""""" is object o ? o.ToString() : """"").WithArguments("p").WithLocation(8, 38) ); } [Fact] public void PatternInSwitchAndForeach() { var source = @"using System; public class X { public static void Main() { object o1 = 1; object o2 = 10; object o3 = 1.2; object oa = new object[] { 1, 10, 1.2 }; foreach (var o in oa is object[] z ? z : new object[0]) { switch (o is int x && x >= 5) { case true: M(o, true); break; case false: M(o, false); break; default: throw null; } } } private static bool M(object o, bool result) { Console.WriteLine($""{result} for {o}""); return result; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"False for 1 True for 10 False for 1.2"; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact] public void GeneralizedSwitchStatement() { Uri u = new Uri("http://www.microsoft.com"); var source = @"using System; public struct X { public static void Main() { var oa = new object[] { 1, 10, 20L, 1.2, ""goo"", true, null, new X(), new Exception(""boo"") }; foreach (var o in oa) { switch (o) { default: Console.WriteLine($""class {o.GetType().Name} {o}""); break; case 1: Console.WriteLine(""one""); break; case int i: Console.WriteLine($""int {i}""); break; case long i: Console.WriteLine($""long {i}""); break; case double d: Console.WriteLine($""double {d}""); break; case null: Console.WriteLine($""null""); break; case ValueType z: Console.WriteLine($""struct {z.GetType().Name} {z}""); break; } } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); using (new EnsureInvariantCulture()) { var expectedOutput = @"one int 10 long 20 double 1.2 class String goo struct Boolean True null struct X X class Exception System.Exception: boo "; var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } } [Fact] public void PatternVariableDefiniteAssignment() { var source = @"using System; public class X { public static void Main() { object o = new X(); if (o is X x1) Console.WriteLine(x1); // OK if (!(o is X x2)) Console.WriteLine(x2); // error if (o is X x3 || true) Console.WriteLine(x3); // error switch (o) { case X x4: default: Console.WriteLine(x4); // error break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (8,45): error CS0165: Use of unassigned local variable 'x2' // if (!(o is X x2)) Console.WriteLine(x2); Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").WithLocation(8, 45), // (9,50): error CS0165: Use of unassigned local variable 'x3' // if (o is X x3 || true) Console.WriteLine(x3); Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").WithLocation(9, 50), // (14,35): error CS0165: Use of unassigned local variable 'x4' // Console.WriteLine(x4); // error Diagnostic(ErrorCode.ERR_UseDefViolation, "x4").WithArguments("x4").WithLocation(14, 35) ); } [Fact] public void PatternVariablesAreMutable() { var source = @" public class X { public static void Main() { if (12 is var x) { x = x + 1; x++; M1(ref x); M2(out x); } } public static void M1(ref int x) {} public static void M2(out int x) { x = 1; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); } [Fact] public void If_01() { var source = @" public class X { public static void Main() { Test(1); Test(2); } public static void Test(int val) { if (Dummy(val == 1, val is var x1, x1)) { System.Console.WriteLine(""true""); System.Console.WriteLine(x1); } else { System.Console.WriteLine(""false""); System.Console.WriteLine(x1); } System.Console.WriteLine(x1); } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 true 1 1 2 false 2 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(4, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void If_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) if (Dummy(f, (f ? 1 : 2) is var x1, x1)) ; if (f) { if (Dummy(f, (f ? 3 : 4) is var x1, x1)) ; } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Lambda_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static bool Test1() { System.Func<bool> l = () => 1 is int x1 && Dummy(x1); return l(); } static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclaration(tree, "x1"); var x1Ref = GetReferences(tree, "x1").Single(); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); } [ConditionalFact(typeof(WindowsDesktopOnly), Reason = "https://github.com/dotnet/roslyn/issues/28026")] public void Query_01() { var source = @" using System.Linq; public class X { public static void Main() { Test1(); } static void Test1() { var res = from x1 in new[] { 1 is var y1 && Print(y1) ? 1 : 0} from x2 in new[] { 2 is var y2 && Print(y2) ? 1 : 0} join x3 in new[] { 3 is var y3 && Print(y3) ? 1 : 0} on 4 is var y4 && Print(y4) ? 1 : 0 equals 5 is var y5 && Print(y5) ? 1 : 0 where 6 is var y6 && Print(y6) orderby 7 is var y7 && Print(y7), 8 is var y8 && Print(y8) group 9 is var y9 && Print(y9) by 10 is var y10 && Print(y10) into g let x11 = 11 is var y11 && Print(y11) select 12 is var y12 && Print(y12); res.ToArray(); } static bool Print(object x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: @"1 3 5 2 4 6 7 8 10 9 11 12 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); for (int i = 1; i < 13; i++) { var id = "y" + i; var yDecl = GetPatternDeclarations(tree, id).Single(); var yRef = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(name => name.Identifier.ValueText == id).Single(); VerifyModelForDeclarationOrVarSimplePattern(model, yDecl, yRef); } } [Fact] public void Query_02() { var source = @" using System.Linq; public class X { public static void Main() { Test1(); } static void Test1() { var res = from x1 in new[] { 1 is var y1 && Print(y1) ? 2 : 0} select Print(x1); res.ToArray(); } static bool Print(object x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"1 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var yDecl = GetPatternDeclaration(tree, "y1"); var yRef = GetReferences(tree, "y1").Single(); VerifyModelForDeclarationOrVarSimplePattern(model, yDecl, yRef); } [Fact] public void ExpressionBodiedFunctions_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static bool Test1() => 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); } [Fact] public void ExpressionBodiedProperties_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1); System.Console.WriteLine(new X()[0]); } static bool Test1 => 2 is int x1 && Dummy(x1); bool this[object x] => 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"2 True 1 True"); } [Fact] public void FieldInitializers_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1); } static bool Test1 = 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( // (9,34): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // static bool Test1 = 1 is int x1 && Dummy(x1); Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(9, 34) ); } [Fact, WorkItem(10487, "https://github.com/dotnet/roslyn/issues/10487")] public void FieldInitializers_03() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1); new X().M(); } void M() { System.Console.WriteLine(Test2); } static bool Test1 = 1 is int x1 && Dummy(() => x1); bool Test2 = 2 is int x1 && Dummy(() => x1); static bool Dummy(System.Func<int> x) { System.Console.WriteLine(x()); return true; } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True 2 True"); } [Fact] [WorkItem(16935, "https://github.com/dotnet/roslyn/issues/16935")] public void FieldInitializers_04() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static System.Func<bool> Test1 = () => 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); } [Fact] public void PropertyInitializers_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1); } static bool Test1 {get;} = 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( // (9,41): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // static bool Test1 {get;} = 1 is int x1 && Dummy(x1); Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(9, 41) ); } [Fact] [WorkItem(16935, "https://github.com/dotnet/roslyn/issues/16935")] public void PropertyInitializers_02() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static System.Func<bool> Test1 {get;} = () => 1 is int x1 && Dummy(x1); static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); } [Fact] public void ConstructorInitializers_01() { var source = @" public class X { public static void Main() { var x = new D(); } } class D : C { public D(object o) : base(2 is var x1 && Dummy(x1)) { System.Console.WriteLine(o); } public D() : this(1 is int x1 && Dummy(x1)) { } static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } class C { public C(object b) { System.Console.WriteLine(b); } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 2 True True"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); Assert.Equal("System.Int32", ((ILocalSymbol)compilation.GetSemanticModel(tree).GetDeclaredSymbol(x1Decl[0])).Type.ToTestDisplayString()); CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( // (12,40): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // public D(object o) : base(2 is var x1 && Dummy(x1)) Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(12, 40), // (17,32): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // public D() : this(1 is int x1 && Dummy(x1)) Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(17, 32) ); } [Fact] [WorkItem(16935, "https://github.com/dotnet/roslyn/issues/16935")] public void ConstructorInitializers_02() { var source = @" public class X { public static void Main() { var x = new D(); } } class D : C { public D(System.Func<bool> o) : base(() => 2 is int x1 && Dummy(x1)) { System.Console.WriteLine(o()); } public D() : this(() => 1 is int x1 && Dummy(x1)) { } static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } class C { public C(System.Func<bool> b) { System.Console.WriteLine(b()); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"2 True 1 True"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Switch_01() { var source = @" public class X { public static void Main() { Test1(0); Test1(1); } static bool Dummy1(bool val, params object[] x) {return val;} static T Dummy2<T>(T val, params object[] x) {return val;} static void Test1(int val) { switch (Dummy2(val, ""Test1 {0}"" is var x1)) { case 0 when Dummy1(true, ""case 0"" is var y1): System.Console.WriteLine(x1, y1); break; case int z1: System.Console.WriteLine(x1, z1); break; } System.Console.WriteLine(x1); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"Test1 case 0 Test1 {0} Test1 1 Test1 {0}"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(3, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Switch_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) switch (Dummy(f, (f ? 1 : 2) is var x1, x1)) {} if (f) { switch (Dummy(f, (f ? 3 : 4) is var x1, x1)) {} } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Using_01() { var source = @" public class X { public static void Main() { using (System.IDisposable d1 = Dummy(new C(""a""), new C(""b"") is var x1), d2 = Dummy(new C(""c""), new C(""d"") is var x2)) { System.Console.WriteLine(d1); System.Console.WriteLine(x1); System.Console.WriteLine(d2); System.Console.WriteLine(x2); } using (Dummy(new C(""e""), new C(""f"") is var x1)) { System.Console.WriteLine(x1); } } static System.IDisposable Dummy(System.IDisposable x, params object[] y) {return x;} } class C : System.IDisposable { private readonly string _val; public C(string val) { _val = val; } public void Dispose() { System.Console.WriteLine(""Disposing {0}"", _val); } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"a b c d Disposing c Disposing a f Disposing e"); } [Fact] public void LocalDeclarationStmt_01() { var source = @" public class X { public static void Main() { object d1 = Dummy(new C(""a""), new C(""b"") is var x1, x1), d2 = Dummy(new C(""c""), new C(""d"") is var x2, x2); System.Console.WriteLine(d1); System.Console.WriteLine(d2); System.Console.WriteLine(x1); } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"b d a c b"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void LocalDeclarationStmt_02() { var source = @" public class X { public static void Main() { if (true) { object d1 = Dummy(new C(""a""), new C(""b"") is var x1, x1); } } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"b"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] [CompilerTrait(CompilerFeature.Tuples)] public void DeconstructionDeclarationStmt_01() { var source = @" public class X { public static void Main() { (object d1, object d2) = (Dummy(new C(""a""), (new C(""b"") is var x1), x1), Dummy(new C(""c""), (new C(""d"") is var x2), x2)); System.Console.WriteLine(d1); System.Console.WriteLine(d2); System.Console.WriteLine(x1); } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"b d a c b"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] [CompilerTrait(CompilerFeature.Tuples)] public void DeconstructionDeclarationStmt_02() { var source = @" public class X { public static void Main() { if (true) { (object d1, object d2) = (Dummy(new C(""a""), (new C(""b"") is var x1), x1), x1); } } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"b"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] [CompilerTrait(CompilerFeature.Tuples)] public void DeconstructionDeclarationStmt_03() { var source = @" public class X { public static void Main() { var (d1, (d2, d3)) = (Dummy(new C(""a""), (new C(""b"") is var x1), x1), (Dummy(new C(""c""), (new C(""d"") is var x2), x2), Dummy(new C(""e""), (new C(""f"") is var x3), x3))); System.Console.WriteLine(d1); System.Console.WriteLine(d2); System.Console.WriteLine(d3); System.Console.WriteLine(x1); System.Console.WriteLine(x2); System.Console.WriteLine(x3); } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"b d f a c e b d f"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); var x2Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x2").ToArray(); var x2Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x2").ToArray(); Assert.Equal(1, x2Decl.Length); Assert.Equal(2, x2Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl[0], x2Ref); var x3Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x3").ToArray(); var x3Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x3").ToArray(); Assert.Equal(1, x3Decl.Length); Assert.Equal(2, x3Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x3Decl[0], x3Ref); } [Fact] [CompilerTrait(CompilerFeature.Tuples)] public void DeconstructionDeclarationStmt_04() { var source = @" public class X { public static void Main() { (var d1, (var d2, var d3)) = (Dummy(new C(""a""), (new C(""b"") is var x1), x1), (Dummy(new C(""c""), (new C(""d"") is var x2), x2), Dummy(new C(""e""), (new C(""f"") is var x3), x3))); System.Console.WriteLine(d1); System.Console.WriteLine(d2); System.Console.WriteLine(d3); System.Console.WriteLine(x1); System.Console.WriteLine(x2); System.Console.WriteLine(x3); } static object Dummy(object x, object y, object z) { System.Console.WriteLine(z); return x; } } class C { private readonly string _val; public C(string val) { _val = val; } public override string ToString() { return _val; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"b d f a c e b d f"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); var x2Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x2").ToArray(); var x2Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x2").ToArray(); Assert.Equal(1, x2Decl.Length); Assert.Equal(2, x2Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl[0], x2Ref); var x3Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x3").ToArray(); var x3Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x3").ToArray(); Assert.Equal(1, x3Decl.Length); Assert.Equal(2, x3Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x3Decl[0], x3Ref); } [Fact] public void While_01() { var source = @" public class X { public static void Main() { bool f = true; while (Dummy(f, (f ? 1 : 2) is var x1, x1)) { System.Console.WriteLine(x1); f = false; } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 1 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void While_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) while (Dummy(f, (f ? 1 : 2) is var x1, x1)) break; if (f) { while (Dummy(f, (f ? 3 : 4) is var x1, x1)) break; } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void While_03() { var source = @" public class X { public static void Main() { int f = 1; var l = new System.Collections.Generic.List<System.Action>(); while (Dummy(f < 3, f is var x1, x1)) { l.Add(() => System.Console.WriteLine(x1)); f++; } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"1 2 3 -- 1 2 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void While_04() { var source = @" public class X { public static void Main() { int f = 1; var l = new System.Collections.Generic.List<System.Action>(); while (Dummy(f < 3, f is var x1, x1, l, () => System.Console.WriteLine(x1))) { f++; } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"1 2 3 -- 1 2 3 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void While_05() { var source = @" public class X { public static void Main() { int f = 1; var l = new System.Collections.Generic.List<System.Action>(); while (Dummy(f < 3, f is var x1, x1, l, () => System.Console.WriteLine(x1))) { l.Add(() => System.Console.WriteLine(x1)); f++; } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"1 2 3 -- 1 1 2 2 3 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(3, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Do_01() { var source = @" public class X { public static void Main() { bool f; do { f = false; } while (Dummy(f, (f ? 1 : 2) is var x1, x1)); } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Do_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) do ; while (Dummy(f, (f ? 1 : 2) is var x1, x1) && false); if (f) { do ; while (Dummy(f, (f ? 3 : 4) is var x1, x1) && false); } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Do_03() { var source = @" public class X { public static void Main() { int f = 1; var l = new System.Collections.Generic.List<System.Action>(); do { ; } while (Dummy(f < 3, (f++) is var x1, x1, l, () => System.Console.WriteLine(x1))); System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 2 3 -- 1 2 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void For_01() { var source = @" public class X { public static void Main() { bool f = true; for (Dummy(f, (f ? 10 : 20) is var x0, x0); Dummy(f, (f ? 1 : 2) is var x1, x1); Dummy(f, (f ? 100 : 200) is var x2, x2), Dummy(true, null, x2)) { System.Console.WriteLine(x0); System.Console.WriteLine(x1); f = false; } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"10 1 10 1 200 200 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").Single(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(2, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl, x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").Single(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); var x2Decl = GetPatternDeclarations(tree, "x2").Single(); var x2Ref = GetReferences(tree, "x2").ToArray(); Assert.Equal(2, x2Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl, x2Ref); } [Fact] public void For_02() { var source = @" public class X { public static void Main() { bool f = true; for (Dummy(f, (f ? 10 : 20) is var x0, x0); Dummy(f, (f ? 1 : 2) is var x1, x1); f = false, Dummy(f, (f ? 100 : 200) is var x2, x2), Dummy(true, null, x2)) { System.Console.WriteLine(x0); System.Console.WriteLine(x1); } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"10 1 10 1 200 200 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").Single(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(2, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl, x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").Single(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); var x2Decl = GetPatternDeclarations(tree, "x2").Single(); var x2Ref = GetReferences(tree, "x2").ToArray(); Assert.Equal(2, x2Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl, x2Ref); } [Fact] public void For_03() { var source = @" public class X { public static void Main() { var l = new System.Collections.Generic.List<System.Action>(); for (bool f = 1 is var x0; Dummy(x0 < 3, x0*10 is var x1, x1); x0++) { l.Add(() => System.Console.WriteLine(""{0} {1}"", x0, x1)); } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"10 20 30 -- 3 10 3 20 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(1, x0Decl.Length); Assert.Equal(4, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl[0], x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void For_04() { var source = @" public class X { public static void Main() { var l = new System.Collections.Generic.List<System.Action>(); for (bool f = 1 is var x0; Dummy(x0 < 3, x0*10 is var x1, x1, l, () => System.Console.WriteLine(""{0} {1}"", x0, x1)); x0++) { } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"10 20 30 -- 3 10 3 20 3 30 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(1, x0Decl.Length); Assert.Equal(4, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl[0], x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void For_05() { var source = @" public class X { public static void Main() { var l = new System.Collections.Generic.List<System.Action>(); for (bool f = 1 is var x0; Dummy(x0 < 3, x0*10 is var x1, x1, l, () => System.Console.WriteLine(""{0} {1}"", x0, x1)); x0++) { l.Add(() => System.Console.WriteLine(""{0} {1}"", x0, x1)); } System.Console.WriteLine(""--""); foreach (var d in l) { d(); } } static bool Dummy(bool x, object y, object z, System.Collections.Generic.List<System.Action> l, System.Action d) { l.Add(d); System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: @"10 20 30 -- 3 10 3 10 3 20 3 20 3 30 "); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); var x0Ref = GetReferences(tree, "x0").ToArray(); Assert.Equal(1, x0Decl.Length); Assert.Equal(5, x0Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x0Decl[0], x0Ref); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(3, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Foreach_01() { var source = @" public class X { public static void Main() { bool f = true; foreach (var i in Dummy(3 is var x1, x1)) { System.Console.WriteLine(x1); } } static System.Collections.IEnumerable Dummy(object y, object z) { System.Console.WriteLine(z); return ""a""; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"3 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclaration(tree, "x1"); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); } [Fact] public void Lock_01() { var source = @" public class X { public static void Main() { lock (Dummy(""lock"" is var x1, x1)) { System.Console.WriteLine(x1); } System.Console.WriteLine(x1); } static object Dummy(object y, object z) { System.Console.WriteLine(z); return new object(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"lock lock lock"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(3, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Lock_02() { var source = @" public class X { public static void Main() { bool f = true; if (f) lock (Dummy(f, (f ? 1 : 2) is var x1, x1)) {} if (f) { lock (Dummy(f, (f ? 3 : 4) is var x1, x1)) {} } } static object Dummy(bool x, object y, object z) { System.Console.WriteLine(z); return x; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 3"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Fixed_01() { var source = @" public unsafe class X { public static void Main() { fixed (int* p = Dummy(""fixed"" is var x1, x1)) { System.Console.WriteLine(x1); } } static int[] Dummy(object y, object z) { System.Console.WriteLine(z); return new int[1]; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); CompileAndVerify(compilation, verify: Verification.Fails, expectedOutput: @"fixed fixed"); } [Fact] public void Yield_01() { var source = @" public class X { public static void Main() { foreach (var o in Test()) {} } static System.Collections.IEnumerable Test() { yield return Dummy(""yield1"" is var x1, x1); yield return Dummy(""yield2"" is var x2, x2); System.Console.WriteLine(x1); } static object Dummy(object y, object z) { System.Console.WriteLine(z); return new object(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"yield1 yield2 yield1"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Yield_02() { var source = @" public class X { public static void Main() { foreach (var o in Test()) {} } static System.Collections.IEnumerable Test() { bool f = true; if (f) yield return Dummy(""yield1"" is var x1, x1); if (f) { yield return Dummy(""yield2"" is var x1, x1); } } static object Dummy(object y, object z) { System.Console.WriteLine(z); return new object(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"yield1 yield2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Return_01() { var source = @" public class X { public static void Main() { Test(); } static object Test() { return Dummy(""return"" is var x1, x1); } static object Dummy(object y, object z) { System.Console.WriteLine(z); return new object(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"return"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Return_02() { var text = @" public class Cls { public static void Main() { Test0(true); Test0(false); } static object Test0(bool val) { if (val) return Test2(1 is var x1, x1); if (!val) { return Test2(2 is var x1, x1); } return null; } static object Test2(object x, object y) { System.Console.Write(y); return x; } }"; var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: "12").VerifyDiagnostics(); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Throw_01() { var source = @" public class X { public static void Main() { Test(); } static void Test() { try { throw Dummy(""throw"" is var x1, x1); } catch { } } static System.Exception Dummy(object y, object z) { System.Console.WriteLine(z); return new System.ArgumentException(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"throw"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Throw_02() { var source = @" public class X { public static void Main() { Test(true); Test(false); } static void Test(bool val) { try { if (val) throw Dummy(""throw 1"" is var x1, x1); if (!val) { throw Dummy(""throw 2"" is var x1, x1); } } catch { } } static System.Exception Dummy(object y, object z) { System.Console.WriteLine(z); return new System.ArgumentException(); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"throw 1 throw 2"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(2, x1Decl.Length); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref[0]); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[1], x1Ref[1]); } [Fact] public void Catch_01() { var source = @" public class X { public static void Main() { try { throw new System.InvalidOperationException(); } catch (System.Exception e) when (Dummy(e is var x1, x1)) { System.Console.WriteLine(x1.GetType()); } } static bool Dummy(object y, object z) { System.Console.WriteLine(z.GetType()); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"System.InvalidOperationException System.InvalidOperationException"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclaration(tree, "x1"); var x1Ref = GetReferences(tree, "x1").ToArray(); Assert.Equal(2, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl, x1Ref); } [Fact] public void Catch_02() { var source = @" public class X { public static void Main() { try { throw new System.InvalidOperationException(); } catch (System.Exception e) when (Dummy(e is var x1, x1)) { System.Action d = () => { System.Console.WriteLine(x1.GetType()); }; System.Console.WriteLine(x1.GetType()); d(); } } static bool Dummy(object y, object z) { System.Console.WriteLine(z.GetType()); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"System.InvalidOperationException System.InvalidOperationException System.InvalidOperationException"); } [Fact] public void Catch_03() { var source = @" public class X { public static void Main() { try { throw new System.InvalidOperationException(); } catch (System.Exception e) when (Dummy(e is var x1, x1)) { System.Action d = () => { e = new System.NullReferenceException(); System.Console.WriteLine(x1.GetType()); }; System.Console.WriteLine(x1.GetType()); d(); System.Console.WriteLine(e.GetType()); } } static bool Dummy(object y, object z) { System.Console.WriteLine(z.GetType()); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"System.InvalidOperationException System.InvalidOperationException System.InvalidOperationException System.NullReferenceException"); } [Fact] public void Catch_04() { var source = @" public class X { public static void Main() { try { throw new System.InvalidOperationException(); } catch (System.Exception e) when (Dummy(e is var x1, x1)) { System.Action d = () => { e = new System.NullReferenceException(); }; System.Console.WriteLine(x1.GetType()); d(); System.Console.WriteLine(e.GetType()); } } static bool Dummy(object y, object z) { System.Console.WriteLine(z.GetType()); return true; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"System.InvalidOperationException System.InvalidOperationException System.NullReferenceException"); } [Fact] public void Labeled_01() { var text = @" public class Cls { public static void Main() { a: Test1(2 is var x1); System.Console.WriteLine(x1); } static object Test1(bool x) { return null; } }"; var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: "2").VerifyDiagnostics( // (6,1): warning CS0164: This label has not been referenced // a: Test1(2 is var x1); Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(6, 1) ); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact] public void Labeled_02() { var text = @" public class Cls { public static void Main() { Test0(); } static object Test0() { bool test = true; if (test) { a: Test2(2 is var x1, x1); } return null; } static object Test2(object x, object y) { System.Console.Write(y); return x; } }"; var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); CompileAndVerify(compilation, expectedOutput: "2").VerifyDiagnostics( // (15,1): warning CS0164: This label has not been referenced // a: Test2(2 is var x1, x1); Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(15, 1) ); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); Assert.Equal(1, x1Decl.Length); Assert.Equal(1, x1Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x1Decl[0], x1Ref); } [Fact, WorkItem(10465, "https://github.com/dotnet/roslyn/issues/10465")] public void Constants_Fail() { var source = @" using System; public class X { public static void Main() { Console.WriteLine(1L is string); // warning: type mismatch Console.WriteLine(1 is int[]); // warning: expression is never of the provided type Console.WriteLine(1L is string s); // error: type mismatch Console.WriteLine(1 is int[] a); // error: expression is never of the provided type } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (7,27): warning CS0184: The given expression is never of the provided ('string') type // Console.WriteLine(1L is string); // warning: type mismatch Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "1L is string").WithArguments("string").WithLocation(7, 27), // (8,27): warning CS0184: The given expression is never of the provided ('int[]') type // Console.WriteLine(1 is int[]); // warning: expression is never of the provided type Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "1 is int[]").WithArguments("int[]").WithLocation(8, 27), // (10,33): error CS8121: An expression of type 'long' cannot be handled by a pattern of type 'string'. // Console.WriteLine(1L is string s); // error: type mismatch Diagnostic(ErrorCode.ERR_PatternWrongType, "string").WithArguments("long", "string").WithLocation(10, 33), // (11,32): error CS8121: An expression of type 'int' cannot be handled by a pattern of type 'int[]'. // Console.WriteLine(1 is int[] a); // error: expression is never of the provided type Diagnostic(ErrorCode.ERR_PatternWrongType, "int[]").WithArguments("int", "int[]").WithLocation(11, 32) ); } [Fact, WorkItem(10465, "https://github.com/dotnet/roslyn/issues/10465")] public void Types_Pass() { var source = @" using System; public class X { public static void Main() { Console.WriteLine(1 is 1); // true Console.WriteLine(1L is int.MaxValue); // OK, but false Console.WriteLine(1 is int.MaxValue); // false Console.WriteLine(int.MaxValue is int.MaxValue); // true Console.WriteLine(""goo"" is System.String); // true Console.WriteLine(Int32.MaxValue is Int32.MaxValue); // true Console.WriteLine(new int[] {1, 2} is int[] a); // true object o = null; switch (o) { case int[] b: break; case int.MaxValue: // constant, not a type break; case int i: break; case null: Console.WriteLine(""null""); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (7,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(1 is 1); // true Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "1 is 1").WithLocation(7, 27), // (8,27): warning CS8416: The given expression never matches the provided pattern. // Console.WriteLine(1L is int.MaxValue); // OK, but false Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1L is int.MaxValue").WithLocation(8, 27), // (9,27): warning CS8416: The given expression never matches the provided pattern. // Console.WriteLine(1 is int.MaxValue); // false Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is int.MaxValue").WithLocation(9, 27), // (10,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(int.MaxValue is int.MaxValue); // true Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "int.MaxValue is int.MaxValue").WithLocation(10, 27), // (11,27): warning CS0183: The given expression is always of the provided ('string') type // Console.WriteLine("goo" is System.String); // true Diagnostic(ErrorCode.WRN_IsAlwaysTrue, @"""goo"" is System.String").WithArguments("string").WithLocation(11, 27), // (12,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(Int32.MaxValue is Int32.MaxValue); // true Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "Int32.MaxValue is Int32.MaxValue").WithLocation(12, 27) ); CompileAndVerify(compilation, expectedOutput: @"True False False True True True True null"); } [Fact, WorkItem(10459, "https://github.com/dotnet/roslyn/issues/10459")] public void Typeswitch_01() { var source = @" using System; public class X { public static void Main(string[] args) { switch (args.GetType()) { case typeof(string): Console.WriteLine(""string""); break; case typeof(string[]): Console.WriteLine(""string[]""); break; case null: Console.WriteLine(""null""); break; default: Console.WriteLine(""default""); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (9,18): error CS0150: A constant value is expected // case typeof(string): Diagnostic(ErrorCode.ERR_ConstantExpected, "typeof(string)").WithLocation(9, 18), // (12,18): error CS0150: A constant value is expected // case typeof(string[]): Diagnostic(ErrorCode.ERR_ConstantExpected, "typeof(string[])").WithLocation(12, 18) ); // If we support switching on System.Type as proposed, the expectation would be // something like CompileAndVerify(compilation, expectedOutput: @"string[]"); } [Fact, WorkItem(10529, "https://github.com/dotnet/roslyn/issues/10529")] public void MissingTypeAndProperty() { var source = @" class Program { public static void Main(string[] args) { { if (obj.Property is var o) { } // `obj` doesn't exist. } { var obj = new object(); if (obj. is var o) { } } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (11,22): error CS1001: Identifier expected // if (obj. is var o) { } Diagnostic(ErrorCode.ERR_IdentifierExpected, "is").WithLocation(11, 22), // (7,17): error CS0103: The name 'obj' does not exist in the current context // if (obj.Property is var o) { } // `obj` doesn't exist. Diagnostic(ErrorCode.ERR_NameNotInContext, "obj").WithArguments("obj").WithLocation(7, 17) ); var tree = compilation.SyntaxTrees[0]; var model = compilation.GetSemanticModel(tree); foreach (var isExpression in tree.GetRoot().DescendantNodes().OfType<IsPatternExpressionSyntax>()) { var symbolInfo = model.GetSymbolInfo(isExpression.Expression); Assert.Null(symbolInfo.Symbol); Assert.True(symbolInfo.CandidateSymbols.IsDefaultOrEmpty); Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); } } [Fact] public void MixedDecisionTree() { var source = @" using System; public class X { public static void Main() { M(null); M(1); M((byte)1); M((short)1); M(2); M((byte)2); M((short)2); M(""hmm""); M(""bar""); M(""baz""); M(6); } public static void M(object o) { switch (o) { case ""hmm"": Console.WriteLine(""hmm""); break; case null: Console.WriteLine(""null""); break; case 1: Console.WriteLine(""int 1""); break; case ((byte)1): Console.WriteLine(""byte 1""); break; case ((short)1): Console.WriteLine(""short 1""); break; case ""bar"": Console.WriteLine(""bar""); break; case object t when t != o: Console.WriteLine(""impossible""); break; case 2: Console.WriteLine(""int 2""); break; case ((byte)2): Console.WriteLine(""byte 2""); break; case ((short)2): Console.WriteLine(""short 2""); break; case ""baz"": Console.WriteLine(""baz""); break; default: Console.WriteLine(""other "" + o); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: @"null int 1 byte 1 short 1 int 2 byte 2 short 2 hmm bar baz other 6"); } [Fact] public void SemanticAnalysisWithPatternInCsharp6() { var source = @"class Program { public static void Main(string[] args) { switch (args.Length) { case 1 when true: break; } } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6); compilation.VerifyDiagnostics( // (7,13): error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. // case 1 when true: Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case 1 when true:").WithArguments("pattern matching", "7.0").WithLocation(7, 13) ); } [Fact, WorkItem(11379, "https://github.com/dotnet/roslyn/issues/11379")] public void DeclarationPatternWithStaticClass() { var source = @"class Program { public static void Main(string[] args) { object o = args; switch (o) { case StaticType t: break; } } } public static class StaticType { } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (8,18): error CS0723: Cannot declare a variable of static type 'StaticType' // case StaticType t: Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "StaticType").WithArguments("StaticType").WithLocation(8, 18) ); } [Fact] public void PatternVariablesAreMutable02() { var source = @"class Program { public static void Main(string[] args) { object o = "" whatever ""; if (o is string s) { s = s.Trim(); System.Console.WriteLine(s); } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: "whatever"); } [Fact, WorkItem(12996, "https://github.com/dotnet/roslyn/issues/12996")] public void TypeOfAVarPatternVariable() { var source = @" class Program { public static void Main(string[] args) { } public static void Test(int val) { if (val is var o1) { System.Console.WriteLine(o1); } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var tree = compilation.SyntaxTrees[0]; var model1 = compilation.GetSemanticModel(tree); var declaration = tree.GetRoot().DescendantNodes().OfType<IsPatternExpressionSyntax>().Single(); var o1 = GetReferences(tree, "o1").Single(); var typeInfo1 = model1.GetTypeInfo(declaration); Assert.Equal(SymbolKind.NamedType, typeInfo1.Type.Kind); Assert.Equal("System.Boolean", typeInfo1.Type.ToTestDisplayString()); typeInfo1 = model1.GetTypeInfo(o1); Assert.Equal(SymbolKind.NamedType, typeInfo1.Type.Kind); Assert.Equal("System.Int32", typeInfo1.Type.ToTestDisplayString()); var model2 = compilation.GetSemanticModel(tree); var typeInfo2 = model2.GetTypeInfo(o1); Assert.Equal(SymbolKind.NamedType, typeInfo2.Type.Kind); Assert.Equal("System.Int32", typeInfo2.Type.ToTestDisplayString()); } [Fact] [WorkItem(13417, "https://github.com/dotnet/roslyn/issues/13417")] public void FixedFieldSize() { var text = @" unsafe struct S { fixed int F1[3 is var x1 ? x1 : 3]; fixed int F2[3 is var x2 ? 3 : 3, x2]; } "; var compilation = CreateCompilation(text, options: TestOptions.ReleaseDebugDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x1Decl = GetPatternDeclarations(tree, "x1").Single(); var x1Ref = GetReferences(tree, "x1").Single(); Assert.True(((ITypeSymbol)compilation.GetSemanticModel(tree).GetTypeInfo(x1Ref).Type).IsErrorType()); VerifyModelNotSupported(model, x1Decl, x1Ref); var x2Decl = GetPatternDeclarations(tree, "x2").Single(); var x2Ref = GetReferences(tree, "x2").Single(); VerifyModelNotSupported(model, x2Decl, x2Ref); Assert.True(((ITypeSymbol)compilation.GetSemanticModel(tree).GetTypeInfo(x2Ref).Type).IsErrorType()); compilation.VerifyDiagnostics( // (5,17): error CS7092: A fixed buffer may only have one dimension. // fixed int F2[3 is var x2 ? 3 : 3, x2]; Diagnostic(ErrorCode.ERR_FixedBufferTooManyDimensions, "[3 is var x2 ? 3 : 3, x2]").WithLocation(5, 17), // (5,18): error CS0133: The expression being assigned to 'S.F2' must be constant // fixed int F2[3 is var x2 ? 3 : 3, x2]; Diagnostic(ErrorCode.ERR_NotConstantExpression, "3 is var x2 ? 3 : 3").WithArguments("S.F2").WithLocation(5, 18), // (4,18): error CS0133: The expression being assigned to 'S.F1' must be constant // fixed int F1[3 is var x1 ? x1 : 3]; Diagnostic(ErrorCode.ERR_NotConstantExpression, "3 is var x1 ? x1 : 3").WithArguments("S.F1").WithLocation(4, 18) ); } [Fact, WorkItem(13316, "https://github.com/dotnet/roslyn/issues/13316")] public void TypeAsExpressionInIsPattern() { var source = @"namespace CS7 { class T1 { public int a = 2; } class Program { static void Main(string[] args) { if (T1 is object i) { } } } }"; CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( // (8,17): error CS0119: 'T1' is a type, which is not valid in the given context // if (T1 is object i) Diagnostic(ErrorCode.ERR_BadSKunknown, "T1").WithArguments("CS7.T1", "type").WithLocation(8, 17) ); } [Fact, WorkItem(13316, "https://github.com/dotnet/roslyn/issues/13316")] public void MethodGroupAsExpressionInIsPattern() { var source = @"namespace CS7 { class Program { const int T = 2; static void M(object o) { if (M is T) { } } } }"; CreateCompilation(source).VerifyDiagnostics( // (8,17): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (M is T) Diagnostic(ErrorCode.ERR_LambdaInIsAs, "M is T").WithLocation(8, 17) ); } [CompilerTrait(CompilerFeature.IOperation)] [Fact, WorkItem(13383, "https://github.com/dotnet/roslyn/issues/13383")] public void MethodGroupAsExpressionInIsPatternBrokenCode() { var source = @"namespace CS7 { class Program { static void M(object o) { if (o.Equals is()) {} if (object.Equals is()) {} } } }"; var compilation = CreateCompilation(source).VerifyDiagnostics( // (7,17): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (o.Equals is()) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "o.Equals is()").WithLocation(7, 17), // (8,17): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (object.Equals is()) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "object.Equals is()").WithLocation(8, 17) ); var tree = compilation.SyntaxTrees.Single(); var node = tree.GetRoot().DescendantNodes().OfType<IsPatternExpressionSyntax>().First(); Assert.Equal("o.Equals is()", node.ToString()); // https://github.com/dotnet/roslyn/issues/27749 : This syntax corresponds to a deconstruction pattern with zero elements, which is not yet supported in IOperation. // compilation.VerifyOperationTree(node, expectedOperationTree: //@" //IIsPatternOperation (OperationKind.IsPattern, Type: System.Boolean, IsInvalid) (Syntax: 'o.Equals is()') // Expression: // IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid, IsImplicit) (Syntax: 'o.Equals is()') // Children(1): // IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'o.Equals') // Children(1): // IParameterReferenceOperation: o (OperationKind.ParameterReference, Type: System.Object, IsInvalid) (Syntax: 'o') // Pattern: //"); } [Fact, WorkItem(13383, "https://github.com/dotnet/roslyn/issues/13383")] public void MethodGroupAsExpressionInIsPatternBrokenCode2() { var source = @"namespace CS7 { class Program { static void M(object o) { if (null is()) {} if ((1, object.Equals) is()) {} } } }"; CreateCompilation(source).VerifyDiagnostics( // (7,17): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is()) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(7, 17), // (8,17): error CS0023: Operator 'is' cannot be applied to operand of type '(int, method group)' // if ((1, object.Equals) is()) {} Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, object.Equals) is()").WithArguments("is", "(int, method group)").WithLocation(8, 17) ); } [Fact, WorkItem(13723, "https://github.com/dotnet/roslyn/issues/13723")] [CompilerTrait(CompilerFeature.Tuples)] public void ExpressionWithoutAType() { var source = @" public class Vec { public static void Main() { if (null is 1) {} if (Main is 2) {} if (delegate {} is 3) {} if ((1, null) is 4) {} if (null is var x1) {} if (Main is var x2) {} if (delegate {} is var x3) {} if ((1, null) is var x4) {} } } "; CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( // (6,13): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is 1) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(6, 13), // (7,13): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (Main is 2) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Main is 2").WithLocation(7, 13), // (8,13): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (delegate {} is 3) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate {} is 3").WithLocation(8, 13), // (8,25): warning CS8848: Operator 'is' cannot be used here due to precedence. Use parentheses to disambiguate. // if (delegate {} is 3) {} Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").WithLocation(8, 25), // (9,13): error CS0023: Operator 'is' cannot be applied to operand of type '(int, <null>)' // if ((1, null) is 4) {} Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is 4").WithArguments("is", "(int, <null>)").WithLocation(9, 13), // (10,13): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is var x1) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(10, 13), // (11,13): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (Main is var x2) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Main is var x2").WithLocation(11, 13), // (12,13): error CS0837: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. // if (delegate {} is var x3) {} Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate {} is var x3").WithLocation(12, 13), // (12,25): warning CS8848: Operator 'is' cannot be used here due to precedence. Use parentheses to disambiguate. // if (delegate {} is var x3) {} Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").WithLocation(12, 25), // (13,13): error CS0023: Operator 'is' cannot be applied to operand of type '(int, <null>)' // if ((1, null) is var x4) {} Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is var x4").WithArguments("is", "(int, <null>)").WithLocation(13, 13) ); } [Fact, WorkItem(13746, "https://github.com/dotnet/roslyn/issues/13746")] [CompilerTrait(CompilerFeature.Tuples)] public void ExpressionWithoutAType02() { var source = @" public class Program { public static void Main() { if ((1, null) is Program) {} } } "; CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( // (6,13): error CS0023: Operator 'is' cannot be applied to operand of type '(int, <null>)' // if ((1, null) is Program) {} Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is Program").WithArguments("is", "(int, <null>)").WithLocation(6, 13) ); } [Fact, WorkItem(15956, "https://github.com/dotnet/roslyn/issues/15956")] public void ThrowExpressionWithNullableDecimal() { var source = @" using System; public class ITest { public decimal Test() => 1m; } public class TestClass { public void Test(ITest test) { var result = test?.Test() ?? throw new Exception(); } }"; // DEBUG var compilation = CreateCompilation(source, options: TestOptions.DebugDll); compilation.VerifyDiagnostics(); compilation.VerifyEmitDiagnostics(); var verifier = CompileAndVerify(compilation); verifier.VerifyIL("TestClass.Test", @"{ // Code size 18 (0x12) .maxstack 1 .locals init (decimal V_0, //result decimal V_1) IL_0000: nop IL_0001: ldarg.1 IL_0002: brtrue.s IL_000a IL_0004: newobj ""System.Exception..ctor()"" IL_0009: throw IL_000a: ldarg.1 IL_000b: call ""decimal ITest.Test()"" IL_0010: stloc.0 IL_0011: ret }"); // RELEASE compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); compilation.VerifyDiagnostics(); compilation.VerifyEmitDiagnostics(); verifier = CompileAndVerify(compilation); verifier.VerifyIL("TestClass.Test", @"{ // Code size 17 (0x11) .maxstack 1 IL_0000: ldarg.1 IL_0001: brtrue.s IL_0009 IL_0003: newobj ""System.Exception..ctor()"" IL_0008: throw IL_0009: ldarg.1 IL_000a: call ""decimal ITest.Test()"" IL_000f: pop IL_0010: ret }"); } [Fact, WorkItem(15956, "https://github.com/dotnet/roslyn/issues/15956")] public void ThrowExpressionWithNullableDateTime() { var source = @" using System; public class ITest { public DateTime Test() => new DateTime(2008, 5, 1, 8, 30, 52); } public class TestClass { public void Test(ITest test) { var result = test?.Test() ?? throw new Exception(); } }"; // DEBUG var compilation = CreateCompilation(source, options: TestOptions.DebugDll); compilation.VerifyDiagnostics(); compilation.VerifyEmitDiagnostics(); var verifier = CompileAndVerify(compilation); verifier.VerifyIL("TestClass.Test", @"{ // Code size 18 (0x12) .maxstack 1 .locals init (System.DateTime V_0, //result System.DateTime V_1) IL_0000: nop IL_0001: ldarg.1 IL_0002: brtrue.s IL_000a IL_0004: newobj ""System.Exception..ctor()"" IL_0009: throw IL_000a: ldarg.1 IL_000b: call ""System.DateTime ITest.Test()"" IL_0010: stloc.0 IL_0011: ret }"); // RELEASE compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); compilation.VerifyDiagnostics(); compilation.VerifyEmitDiagnostics(); verifier = CompileAndVerify(compilation); verifier.VerifyIL("TestClass.Test", @"{ // Code size 17 (0x11) .maxstack 1 IL_0000: ldarg.1 IL_0001: brtrue.s IL_0009 IL_0003: newobj ""System.Exception..ctor()"" IL_0008: throw IL_0009: ldarg.1 IL_000a: call ""System.DateTime ITest.Test()"" IL_000f: pop IL_0010: ret }"); } [Fact] public void ThrowExpressionForParameterValidation() { var source = @"using System; class Program { public static void Main(string[] args) { foreach (var s in new[] { ""0123"", ""goo"" }) { Console.Write(s + "" ""); try { Console.WriteLine(Ver(s)); } catch (ArgumentException) { Console.WriteLine(""throws""); } } } static int Ver(string s) { var result = int.TryParse(s, out int k) ? k : throw new ArgumentException(nameof(s)); return k; // definitely assigned! } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"0123 123 goo throws"); } [Fact] public void ThrowExpressionWithNullable01() { var source = @"using System; class Program { public static void Main(string[] args) { Console.WriteLine(M(1)); try { Console.WriteLine(M(null)); } catch (Exception) { Console.WriteLine(""thrown""); } } static int M(int? data) { return data ?? throw null; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"1 thrown"); } [Fact] public void ThrowExpressionWithNullable02() { var source = @"using System; class Program { public static void Main(string[] args) { Console.WriteLine(M(1)); try { Console.WriteLine(M(null)); } catch (Exception) { Console.WriteLine(""thrown""); } } static string M(object data) { return data?.ToString() ?? throw null; } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"1 thrown"); } [Fact] public void ThrowExpressionWithNullable03() { var source = @"using System; using System.Threading.Tasks; class Program { public static void Main(string[] args) { MainAsync().Wait(); } static async Task MainAsync() { foreach (var i in new[] { 1, 2 }) { try { var used = (await Goo(i))?.ToString() ?? throw await Bar(i); } catch (Exception ex) { Console.WriteLine(""thrown "" + ex.Message); } } } static async Task<object> Goo(int i) { await Task.Yield(); return (i == 1) ? i : (object)null; } static async Task<Exception> Bar(int i) { await Task.Yield(); Console.WriteLine(""making exception "" + i); return new Exception(i.ToString()); } } "; var compilation = CreateEmptyCompilation(source, options: TestOptions.DebugExe, references: new[] { MscorlibRef_v4_0_30316_17626, SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929 }); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"making exception 2 thrown 2"); } [Fact] public void ThrowExpressionPrecedence01() { var source = @"using System; class Program { public static void Main(string[] args) { Exception ex = null; try { // The ?? operator is right-associative, even under 'throw' ex = ex ?? throw ex ?? throw new ArgumentException(""blue""); } catch (ArgumentException x) { Console.WriteLine(x.Message); } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"blue"); } [Fact] public void ThrowExpressionPrecedence02() { var source = @"using System; class Program { public static void Main(string[] args) { MyException ex = null; try { // Throw expression binds looser than + ex = ex ?? throw ex + 1; } catch (MyException x) { Console.WriteLine(x.Message); } } } class MyException : Exception { public MyException(string message) : base(message) {} public static MyException operator +(MyException left, int right) { return new MyException(""green""); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"green"); } [Fact, WorkItem(10492, "https://github.com/dotnet/roslyn/issues/10492")] public void IsPatternPrecedence() { var source = @"using System; class Program { const bool B = true; const int One = 1; public static void Main(string[] args) { object a = null; B c = null; Console.WriteLine(a is B & c); // prints 5 (correct) Console.WriteLine(a is B > c); // prints 6 (correct) Console.WriteLine(a is B < c); // was syntax error but should print 7 Console.WriteLine(3 is One + 2); // should print True Console.WriteLine(One + 2 is 3); // should print True } } class B { public static int operator &(bool left, B right) => 5; public static int operator >(bool left, B right) => 6; public static int operator <(bool left, B right) => 7; public static int operator +(bool left, B right) => 8; } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( // (15,27): error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. // Console.WriteLine(3 is One + 2); // should print True Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "3 is One + 2").WithArguments("pattern matching", "7.0").WithLocation(15, 27), // (16,27): error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. // Console.WriteLine(One + 2 is 3); // should print True Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "One + 2 is 3").WithArguments("pattern matching", "7.0").WithLocation(16, 27), // (15,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(3 is One + 2); // should print True Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "3 is One + 2").WithLocation(15, 27), // (16,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(One + 2 is 3); // should print True Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "One + 2 is 3").WithLocation(16, 27) ); var expectedOutput = @"5 6 7 True True"; compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (15,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(3 is One + 2); // should print True Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "3 is One + 2").WithLocation(15, 27), // (16,27): warning CS8417: The given expression always matches the provided constant. // Console.WriteLine(One + 2 is 3); // should print True Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "One + 2 is 3").WithLocation(16, 27) ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(10492, "https://github.com/dotnet/roslyn/issues/10492")] public void IsPatternPrecedence02() { var source = @"using System; class Program { public static void Main(string[] args) { foreach (object A in new[] { null, new B<C,D>() }) { // pass one argument, a pattern-matching operation M(A is B < C, D > E); switch (A) { case B < C, D > F: Console.WriteLine(""yes""); break; default: Console.WriteLine(""no""); break; } } } static void M(object o) { Console.WriteLine(o); } } class B<C,D> { } class C {} class D {} "; var expectedOutput = @"False no True yes"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(10492, "https://github.com/dotnet/roslyn/issues/10492")] public void IsPatternPrecedence03() { var source = @"using System; class Program { public static void Main(string[] args) { object A = new B<C, D>(); Console.WriteLine(A is B < C, D > E); Console.WriteLine(A as B < C, D > ?? string.Empty); } } class B<C,D> { public static implicit operator string(B<C,D> b) => nameof(B<C,D>); } class C {} class D {} "; var expectedOutput = @"True B"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); SyntaxFactory.ParseExpression("A is B < C, D > E").GetDiagnostics().Verify(); SyntaxFactory.ParseExpression("A as B < C, D > E").GetDiagnostics().Verify( // (1,1): error CS1073: Unexpected token 'E' // A as B < C, D > E Diagnostic(ErrorCode.ERR_UnexpectedToken, "A as B < C, D >").WithArguments("E").WithLocation(1, 1) ); SyntaxFactory.ParseExpression("A as B < C, D > ?? string.Empty").GetDiagnostics().Verify(); SyntaxFactory.ParseExpression("A is B < C, D > ?? string.Empty").GetDiagnostics().Verify( // (1,1): error CS1073: Unexpected token ',' // A is B < C, D > ?? string.Empty Diagnostic(ErrorCode.ERR_UnexpectedToken, "A is B < C").WithArguments(",").WithLocation(1, 1) ); } [Fact, WorkItem(14636, "https://github.com/dotnet/roslyn/issues/14636")] public void NameofPattern() { var source = @"using System; class Program { public static void Main(string[] args) { M(""a""); M(""b""); M(null); M(new nameof()); } public static void M(object a) { Console.WriteLine(a is nameof(a)); Console.WriteLine(a is nameof); } } class nameof { } "; var expectedOutput = @"True False False False False False False True"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(14825, "https://github.com/dotnet/roslyn/issues/14825")] public void PatternVarDeclaredInReceiverUsedInArgument() { var source = @"using System.Linq; public class C { public string[] Goo2(out string x) { x = """"; return null; } public string[] Goo3(bool b) { return null; } public string[] Goo5(string u) { return null; } public void Test() { var t1 = Goo2(out var x1).Concat(Goo5(x1)); var t2 = Goo3(t1 is var x2).Concat(Goo5(x2.First())); } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); compilation.VerifyDiagnostics(); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x2Decl = GetPatternDeclarations(tree, "x2").Single(); var x2Ref = GetReferences(tree, "x2").Single(); VerifyModelForDeclarationOrVarSimplePattern(model, x2Decl, x2Ref); Assert.Equal("System.Collections.Generic.IEnumerable<System.String>", model.GetTypeInfo(x2Ref).Type.ToTestDisplayString()); } [Fact] public void DiscardInPattern() { var source = @" using static System.Console; public class C { public static void Main() { int i = 3; Write($""is int _: {i is int _}, ""); Write($""is var _: {i is var _}, ""); switch (3) { case int _: Write(""case int _, ""); break; } switch (3L) { case var _: Write(""case var _""); break; } } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); CompileAndVerify(compilation, expectedOutput: "is int _: True, is var _: True, case int _, case var _"); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var discard1 = GetDiscardDesignations(tree).First(); Assert.Null(model.GetDeclaredSymbol(discard1)); var declaration1 = (DeclarationPatternSyntax)discard1.Parent; Assert.Equal("int _", declaration1.ToString()); Assert.Equal("System.Int32", model.GetTypeInfo(declaration1).Type.ToTestDisplayString()); Assert.Equal("System.Int32", model.GetTypeInfo(declaration1.Type).Type.ToTestDisplayString()); var discard2 = GetDiscardDesignations(tree).Skip(1).First(); Assert.Null(model.GetDeclaredSymbol(discard2)); Assert.Null(model.GetSymbolInfo(discard2).Symbol); var declaration2 = (VarPatternSyntax)discard2.Parent; Assert.Equal("var _", declaration2.ToString()); Assert.Null(model.GetSymbolInfo(declaration2).Symbol); var discard3 = GetDiscardDesignations(tree).Skip(2).First(); Assert.Null(model.GetDeclaredSymbol(discard3)); var declaration3 = (DeclarationPatternSyntax)discard3.Parent; Assert.Equal("int _", declaration3.ToString()); Assert.Equal("System.Int32", model.GetTypeInfo(declaration3).Type.ToTestDisplayString()); Assert.Equal("System.Int32", model.GetTypeInfo(declaration3.Type).Type.ToTestDisplayString()); var discard4 = GetDiscardDesignations(tree).Skip(3).First(); Assert.Null(model.GetDeclaredSymbol(discard4)); var declaration4 = (VarPatternSyntax)discard4.Parent; Assert.Equal("var _", declaration4.ToString()); } [Fact] public void ShortDiscardInPattern() { var source = @" using static System.Console; public class C { public static void Main() { int i = 3; Write($""is _: {i is _}, ""); switch (3) { case _: Write(""case _""); break; } } } "; CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( // (8,29): error CS0246: The type or namespace name '_' could not be found (are you missing a using directive or an assembly reference?) // Write($"is _: {i is _}, "); Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").WithLocation(8, 29), // (11,18): error CS0103: The name '_' does not exist in the current context // case _: Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(11, 18) ); CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( // (8,29): error CS0246: The type or namespace name '_' could not be found (are you missing a using directive or an assembly reference?) // Write($"is _: {i is _}, "); Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").WithLocation(8, 29), // (11,18): error CS0103: The name '_' does not exist in the current context // case _: Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(11, 18) ); } [Fact] public void UnderscoreInPattern2() { var source = @" using static System.Console; public class C { public static void Main() { int i = 3; int _ = 4; Write($""is _: {i is _}, ""); switch (3) { case _: Write(""case _""); break; } } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); compilation.VerifyDiagnostics( // (9,29): error CS0118: '_' is a variable but is used like a type // Write($"is _: {i is _}, "); Diagnostic(ErrorCode.ERR_BadSKknown, "_").WithArguments("_", "variable", "type").WithLocation(9, 29), // (12,18): error CS0150: A constant value is expected // case _: Diagnostic(ErrorCode.ERR_ConstantExpected, "_").WithLocation(12, 18) ); } [Fact] public void UnderscoreInPattern() { var source = @" using static System.Console; public class C { public static void Main() { int i = 3; if (i is int _) { Write(_); } if (i is var _) { Write(_); } switch (3) { case int _: Write(_); break; } switch (3) { case var _: Write(_); break; } } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (8,33): error CS0103: The name '_' does not exist in the current context // if (i is int _) { Write(_); } Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(8, 33), // (9,33): error CS0103: The name '_' does not exist in the current context // if (i is var _) { Write(_); } Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(9, 33), // (13,23): error CS0103: The name '_' does not exist in the current context // Write(_); Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(13, 23), // (19,23): error CS0103: The name '_' does not exist in the current context // Write(_); Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(19, 23) ); } [Fact] public void PointerTypeInPattern() { // pointer types are not supported in patterns. Therefore an attempt to use // a pointer type will be interpreted by the parser as a multiplication // (i.e. an expression that is a constant pattern rather than a declaration // pattern) var source = @" public class var {} unsafe public class Typ { public static void Main(int* a, var* c, Typ* e) { { if (a is int* b) {} if (c is var* d) {} if (e is Typ* f) {} } { switch (a) { case int* b: break; } switch (c) { case var* d: break; } switch (e) { case Typ* f: break; } } } } "; var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); compilation.VerifyDiagnostics( // (8,22): error CS1525: Invalid expression term 'int' // if (a is int* b) {} Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").WithLocation(8, 22), // (13,31): error CS1525: Invalid expression term 'int' // switch (a) { case int* b: break; } Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").WithLocation(13, 31), // (5,42): error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('var') // public static void Main(int* a, var* c, Typ* e) Diagnostic(ErrorCode.ERR_ManagedAddr, "c").WithArguments("var").WithLocation(5, 42), // (5,50): error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('Typ') // public static void Main(int* a, var* c, Typ* e) Diagnostic(ErrorCode.ERR_ManagedAddr, "e").WithArguments("Typ").WithLocation(5, 50), // (8,27): error CS0103: The name 'b' does not exist in the current context // if (a is int* b) {} Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").WithLocation(8, 27), // (9,22): error CS0119: 'var' is a type, which is not valid in the given context // if (c is var* d) {} Diagnostic(ErrorCode.ERR_BadSKunknown, "var").WithArguments("var", "type").WithLocation(9, 22), // (9,27): error CS0103: The name 'd' does not exist in the current context // if (c is var* d) {} Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").WithLocation(9, 27), // (10,22): error CS0119: 'Typ' is a type, which is not valid in the given context // if (e is Typ* f) {} Diagnostic(ErrorCode.ERR_BadSKunknown, "Typ").WithArguments("Typ", "type").WithLocation(10, 22), // (10,27): error CS0103: The name 'f' does not exist in the current context // if (e is Typ* f) {} Diagnostic(ErrorCode.ERR_NameNotInContext, "f").WithArguments("f").WithLocation(10, 27), // (13,36): error CS0103: The name 'b' does not exist in the current context // switch (a) { case int* b: break; } Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").WithLocation(13, 36), // (14,31): error CS0119: 'var' is a type, which is not valid in the given context // switch (c) { case var* d: break; } Diagnostic(ErrorCode.ERR_BadSKunknown, "var").WithArguments("var", "type").WithLocation(14, 31), // (14,36): error CS0103: The name 'd' does not exist in the current context // switch (c) { case var* d: break; } Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").WithLocation(14, 36), // (15,31): error CS0119: 'Typ' is a type, which is not valid in the given context // switch (e) { case Typ* f: break; } Diagnostic(ErrorCode.ERR_BadSKunknown, "Typ").WithArguments("Typ", "type").WithLocation(15, 31), // (15,36): error CS0103: The name 'f' does not exist in the current context // switch (e) { case Typ* f: break; } Diagnostic(ErrorCode.ERR_NameNotInContext, "f").WithArguments("f").WithLocation(15, 36) ); } [Fact] [WorkItem(16513, "https://github.com/dotnet/roslyn/issues/16513")] public void OrderOfPatternOperands() { var source = @" using System; class Program { public static void Main(string[] args) { object c = new C(); Console.WriteLine(c is 3); c = 2; Console.WriteLine(c is 3); c = 3; Console.WriteLine(c is 3); } } class C { override public bool Equals(object other) { return other is int x; } override public int GetHashCode() => 0; } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: @"False False True"); } [Fact] public void MultiplyInPattern() { // pointer types are not supported in patterns. Therefore an attempt to use // a pointer type will be interpreted by the parser as a multiplication // (i.e. an expression that is a constant pattern rather than a declaration // pattern) var source = @" public class Program { public static void Main() { const int two = 2; const int three = 3; int six = two * three; System.Console.WriteLine(six is two * three); } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: "True"); } [Fact] public void ColorColorConstantPattern() { var source = @" public class Program { public static Color Color { get; } public static void M(object o) { System.Console.WriteLine(o is Color.Constant); } public static void Main() { M(Color.Constant); } } public class Color { public const string Constant = ""abc""; } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics(); var comp = CompileAndVerify(compilation, expectedOutput: "True"); } [Fact] [WorkItem(336030, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/336030")] public void NullOperand() { var source = @" class C { void M() { System.Console.Write(null is Missing x); System.Console.Write(null is Missing); switch(null) { case Missing: case Missing y: break; } } } "; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (6,30): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // System.Console.Write(null is Missing x); Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(6, 30), // (6,38): error CS0246: The type or namespace name 'Missing' could not be found (are you missing a using directive or an assembly reference?) // System.Console.Write(null is Missing x); Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").WithLocation(6, 38), // (7,38): error CS0246: The type or namespace name 'Missing' could not be found (are you missing a using directive or an assembly reference?) // System.Console.Write(null is Missing); Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").WithLocation(7, 38), // (8,16): error CS8119: The switch expression must be a value; found '<null>'. // switch(null) Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "null").WithArguments("<null>").WithLocation(8, 16), // (10,18): error CS0103: The name 'Missing' does not exist in the current context // case Missing: Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").WithLocation(10, 18), // (11,18): error CS0246: The type or namespace name 'Missing' could not be found (are you missing a using directive or an assembly reference?) // case Missing y: Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").WithLocation(11, 18) ); } [Fact] [WorkItem(336030, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=336030")] [WorkItem(294570, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=294570")] public void Fuzz46() { var program = @" public class Program46 { public static void Main(string[] args) { switch ((() => 1)) { case int x4: case string x9: case M: case ((int)M()): break; } } private static object M() => null; }"; CreateCompilation(program).VerifyDiagnostics( // (6,17): error CS8119: The switch expression must be a value; found 'lambda expression'. // switch ((() => 1)) Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "(() => 1)").WithArguments("lambda expression").WithLocation(6, 17), // (10,18): error CS0150: A constant value is expected // case M: Diagnostic(ErrorCode.ERR_ConstantExpected, "M").WithLocation(10, 18), // (11,19): error CS0150: A constant value is expected // case ((int)M()): Diagnostic(ErrorCode.ERR_ConstantExpected, "(int)M()").WithLocation(11, 19) ); } [Fact] [WorkItem(363714, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=363714")] public void Fuzz46b() { var program = @" public class Program46 { public static void Main(string[] args) { switch ((() => 1)) { case M: break; } } private static object M() => null; }"; CreateCompilation(program).VerifyDiagnostics( // (6,17): error CS8119: The switch expression must be a value; found 'lambda expression'. // switch ((() => 1)) Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "(() => 1)").WithArguments("lambda expression").WithLocation(6, 17), // (8,18): error CS0150: A constant value is expected // case M: Diagnostic(ErrorCode.ERR_ConstantExpected, "M").WithLocation(8, 18) ); } [Fact] [WorkItem(336030, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=336030")] public void Fuzz401() { var program = @" public class Program401 { public static void Main(string[] args) { if (null is M) {} } private static object M() => null; }"; CreateCompilation(program).VerifyDiagnostics( // (6,13): error CS8117: Invalid operand for pattern match; value required, but found '<null>'. // if (null is M) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").WithLocation(6, 13), // (6,21): error CS0150: A constant value is expected // if (null is M) {} Diagnostic(ErrorCode.ERR_ConstantExpected, "M").WithLocation(6, 21) ); } [Fact] [WorkItem(364165, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=364165")] [WorkItem(16296, "https://github.com/dotnet/roslyn/issues/16296")] public void Fuzz1717() { var program = @" public class Program1717 { public static void Main(string[] args) { switch (default(int?)) { case 2: break; case double.NaN: break; case var x9: case string _: break; } } private static object M() => null; }"; CreateCompilation(program).VerifyDiagnostics( // (10,18): error CS0266: Cannot implicitly convert type 'double' to 'int?'. An explicit conversion exists (are you missing a cast?) // case double.NaN: Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "double.NaN").WithArguments("double", "int?").WithLocation(10, 18), // (13,18): error CS8121: An expression of type 'int?' cannot be handled by a pattern of type 'string'. // case string _: Diagnostic(ErrorCode.ERR_PatternWrongType, "string").WithArguments("int?", "string").WithLocation(13, 18) ); } [Fact, WorkItem(16559, "https://github.com/dotnet/roslyn/issues/16559")] public void CasePatternVariableUsedInCaseExpression() { var program = @" public class Program5815 { public static void Main(object o) { switch (o) { case Color Color: case Color? Color2: break; } } private static object M() => null; }"; var compilation = CreateCompilation(program).VerifyDiagnostics( // (9,32): error CS1525: Invalid expression term 'break' // case Color? Color2: Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("break").WithLocation(9, 32), // (9,32): error CS1003: Syntax error, ':' expected // case Color? Color2: Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":", "break").WithLocation(9, 32), // (8,18): error CS0118: 'Color' is a variable but is used like a type // case Color Color: Diagnostic(ErrorCode.ERR_BadSKknown, "Color").WithArguments("Color", "variable", "type").WithLocation(8, 18), // (9,25): error CS0103: The name 'Color2' does not exist in the current context // case Color? Color2: Diagnostic(ErrorCode.ERR_NameNotInContext, "Color2").WithArguments("Color2").WithLocation(9, 25) ); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var colorDecl = GetPatternDeclarations(tree, "Color").ToArray(); var colorRef = GetReferences(tree, "Color").ToArray(); Assert.Equal(1, colorDecl.Length); Assert.Equal(2, colorRef.Length); Assert.Null(model.GetSymbolInfo(colorRef[0]).Symbol); VerifyModelForDeclarationOrVarSimplePattern(model, colorDecl[0], colorRef[1]); } [Fact, WorkItem(16559, "https://github.com/dotnet/roslyn/issues/16559")] public void Fuzz5815() { var program = @" public class Program5815 { public static void Main(string[] args) { switch ((int)M()) { case var x3: case true ? x3 : 4: break; } } private static object M() => null; }"; var compilation = CreateCompilation(program).VerifyDiagnostics( // (9,18): error CS0150: A constant value is expected // case true ? x3 : 4: Diagnostic(ErrorCode.ERR_ConstantExpected, "true ? x3 : 4").WithLocation(9, 18), // (9,25): error CS0165: Use of unassigned local variable 'x3' // case true ? x3 : 4: Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").WithLocation(9, 25) ); var tree = compilation.SyntaxTrees.Single(); var model = compilation.GetSemanticModel(tree); var x3Decl = GetPatternDeclarations(tree, "x3").ToArray(); var x3Ref = GetReferences(tree, "x3").ToArray(); Assert.Equal(1, x3Decl.Length); Assert.Equal(1, x3Ref.Length); VerifyModelForDeclarationOrVarSimplePattern(model, x3Decl[0], x3Ref); } [Fact] public void Fuzz_Conjunction_01() { var program = @" public class Program { public static void Main(string[] args) { if (((int?)1) is {} and 1) { } } }"; var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( ); } [Fact] public void Fuzz_738490379() { var program = @" public class Program738490379 { public static void Main(string[] args) { if (NotFound is var (M, not int _ or NotFound _) { }) {} } private static object M() => null; }"; var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( // (6,13): error CS0841: Cannot use local variable 'NotFound' before it is declared // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "NotFound").WithArguments("NotFound").WithLocation(6, 13), // (6,37): error CS1026: ) expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").WithLocation(6, 37), // (6,37): error CS1026: ) expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").WithLocation(6, 37), // (6,37): error CS1023: Embedded statement cannot be a declaration or labeled statement // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "int _ ").WithLocation(6, 37), // (6,41): warning CS0168: The variable '_' is declared but never used // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.WRN_UnreferencedVar, "_").WithArguments("_").WithLocation(6, 41), // (6,43): error CS1002: ; expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_SemicolonExpected, "or").WithLocation(6, 43), // (6,43): error CS0246: The type or namespace name 'or' could not be found (are you missing a using directive or an assembly reference?) // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "or").WithArguments("or").WithLocation(6, 43), // (6,55): error CS1002: ; expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_SemicolonExpected, "_").WithLocation(6, 55), // (6,55): error CS0103: The name '_' does not exist in the current context // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").WithLocation(6, 55), // (6,56): error CS1002: ; expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").WithLocation(6, 56), // (6,56): error CS1513: } expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_RbraceExpected, ")").WithLocation(6, 56), // (6,62): error CS1513: } expected // if (NotFound is var (M, not int _ or NotFound _) { }) {} Diagnostic(ErrorCode.ERR_RbraceExpected, ")").WithLocation(6, 62) ); } [Fact(Skip = "https://github.com/dotnet/roslyn/issues/16721")] public void Fuzz() { const int numTests = 1200000; int dt = (int)Math.Abs(DateTime.Now.Ticks % 1000000000); for (int i = 1; i < numTests; i++) { PatternMatchingFuzz(i + dt); } } [Fact(Skip = "https://github.com/dotnet/roslyn/issues/16721")] public void MultiFuzz() { // Just like Fuzz(), but take advantage of concurrency on the test host. const int numTasks = 300; const int numTestsPerTask = 4000; int dt = (int)Math.Abs(DateTime.Now.Ticks % 1000000000); var tasks = Enumerable.Range(0, numTasks).Select(t => Task.Run(() => { int k = dt + t * numTestsPerTask; for (int i = 1; i < numTestsPerTask; i++) { PatternMatchingFuzz(i + k); } })); Task.WaitAll(tasks.ToArray()); } private static void PatternMatchingFuzz(int dt) { Random r = new Random(dt); // generate a pattern-matching switch randomly from templates string[] expressions = new[] { "M", // a method group "(() => 1)", // a lambda expression "1", // a constant "2", // a constant "null", // the null constant "default(int?)", // a null constant of type int? "((int?)1)", // a constant of type int? "M()", // a method invocation "double.NaN", // a scary constant "1.1", // a double constant "NotFound" // an unbindable expression }; string Expression() { int index = r.Next(expressions.Length + 1) - 1; return (index < 0) ? $"(({Type()})M())" : expressions[index]; } string[] types = new[] { "object", "var", "int", "int?", "double", "string", "NotFound" }; string Type() => types[r.Next(types.Length)]; string Pattern(int d = 5) { switch (r.Next(d <= 1 ? 9 : 12)) { default: return Expression(); // a "constant" pattern case 3: case 4: return Type(); case 5: return Type() + " _"; case 6: return Type() + " x" + r.Next(10); case 7: return "not " + Pattern(d - 1); case 8: return "(" + Pattern(d - 1) + ")"; case 9: return makeRecursivePattern(d); case 10: return Pattern(d - 1) + " and " + Pattern(d - 1); case 11: return Pattern(d - 1) + " or " + Pattern(d - 1); } string makeRecursivePattern(int d) { while (true) { bool haveParens = r.Next(2) == 0; bool haveCurlies = r.Next(2) == 0; if (!haveParens && !haveCurlies) continue; bool haveType = r.Next(2) == 0; bool haveIdentifier = r.Next(2) == 0; return $"{(haveType ? Type() : null)} {(haveParens ? $"({makePatternList(d - 1, false)})" : null)} {(haveCurlies ? $"{"{ "}{makePatternList(d - 1, true)}{" }"}" : null)} {(haveIdentifier ? " x" + r.Next(10) : null)}"; } } string makePatternList(int d, bool propNames) { return string.Join(", ", Enumerable.Range(0, r.Next(3)).Select(i => $"{(propNames ? $"P{r.Next(10)}: " : null)}{Pattern(d)}")); } } string body = @" public class Program{0} {{ public static void Main(string[] args) {{ {1} }} private static object M() => null; }}"; var statement = new StringBuilder(); switch (r.Next(2)) { case 0: // test the "is-pattern" expression statement.Append($"if ({Expression()} is {Pattern()}) {{}}"); break; case 1: // test the pattern switch statement statement.AppendLine($"switch ({Expression()})"); statement.AppendLine("{"); var nCases = r.Next(5); for (int i = 1; i <= nCases; i++) { statement.AppendLine($" case {Pattern()}:"); if (i == nCases || r.Next(2) == 0) { statement.AppendLine($" break;"); } } statement.AppendLine("}"); break; default: throw null; } var program = string.Format(body, dt, statement); CreateCompilation(program).GetDiagnostics(); } [Fact, WorkItem(16671, "https://github.com/dotnet/roslyn/issues/16671")] public void TypeParameterSubsumption01() { var program = @" using System; public class Program { public static void Main(string[] args) { PatternMatching<Base, Derived>(new Base()); PatternMatching<Base, Derived>(new Derived()); PatternMatching<Base, Derived>(null); PatternMatching<object, int>(new object()); PatternMatching<object, int>(2); PatternMatching<object, int>(null); PatternMatching<object, int?>(new object()); PatternMatching<object, int?>(2); PatternMatching<object, int?>(null); } static void PatternMatching<TBase, TDerived>(TBase o) where TDerived : TBase { switch (o) { case TDerived td: Console.WriteLine(nameof(TDerived)); break; case TBase tb: Console.WriteLine(nameof(TBase)); break; default: Console.WriteLine(""Neither""); break; } } } class Base { } class Derived : Base { } "; var compilation = CreateCompilation(program, options: TestOptions.DebugExe).VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"TBase TDerived Neither TBase TDerived Neither TBase TDerived Neither"); } [Fact, WorkItem(16671, "https://github.com/dotnet/roslyn/issues/16671")] public void TypeParameterSubsumption02() { var program = @" using System; public class Program { static void PatternMatching<TBase, TDerived>(TBase o) where TDerived : TBase { switch (o) { case TBase tb: Console.WriteLine(nameof(TBase)); break; case TDerived td: Console.WriteLine(nameof(TDerived)); break; default: Console.WriteLine(""Neither""); break; } } } class Base { } class Derived : Base { } "; var compilation = CreateCompilation(program).VerifyDiagnostics( // (12,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case TDerived td: Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "TDerived td").WithLocation(12, 18) ); } [Fact, WorkItem(16688, "https://github.com/dotnet/roslyn/issues/16688")] public void TypeParameterSubsumption03() { var program = @" using System.Collections.Generic; public class Program { private static void Pattern<T>(T thing) where T : class { switch (thing) { case T tThing: break; case IEnumerable<object> s: break; } } } "; var compilation = CreateCompilation(program).VerifyDiagnostics( // (11,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case IEnumerable<object> s: Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "IEnumerable<object> s").WithLocation(11, 18) ); } [Fact, WorkItem(16696, "https://github.com/dotnet/roslyn/issues/16696")] public void TypeParameterSubsumption04() { var program = @" using System; using System.Collections.Generic; public class Program { private static int Pattern1<TBase, TDerived>(object thing) where TBase : class where TDerived : TBase { switch (thing) { case IEnumerable<TBase> sequence: return 1; // IEnumerable<TBase> does not subsume IEnumerable<TDerived> because TDerived may be a value type. case IEnumerable<TDerived> derivedSequence: return 2; default: return 3; } } private static int Pattern2<TBase, TDerived>(object thing) where TBase : class where TDerived : TBase { switch (thing) { case IEnumerable<object> s: return 1; // IEnumerable<object> does not subsume IEnumerable<TDerived> because TDerived may be a value type. case IEnumerable<TDerived> derivedSequence: return 2; default: return 3; } } public static void Main(string[] args) { Console.WriteLine(Pattern1<object, int>(new List<object>())); Console.WriteLine(Pattern1<object, int>(new List<int>())); Console.WriteLine(Pattern1<object, int>(null)); Console.WriteLine(Pattern2<object, int>(new List<object>())); Console.WriteLine(Pattern2<object, int>(new List<int>())); Console.WriteLine(Pattern2<object, int>(null)); } } "; var compilation = CreateCompilation(program, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"1 2 3 1 2 3"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void TypeParameterSubsumption05() { var program = @" public class Program { static void M<T, U>(T t, U u) where T : U { switch(""test"") { case U uu: break; case T tt: // Produces a diagnostic about subsumption/unreachability break; } } } "; CreateCompilation(program, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7).VerifyDiagnostics( // (8,18): error CS8314: An expression of type 'string' cannot be handled by a pattern of type 'U' in C# 7.0. Please use language version 7.1 or greater. // case U uu: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "U").WithArguments("string", "U", "7.0", "7.1").WithLocation(8, 18), // (10,18): error CS8314: An expression of type 'string' cannot be handled by a pattern of type 'T' in C# 7.0. Please use language version 7.1 or greater. // case T tt: // Produces a diagnostic about subsumption/unreachability Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("string", "T", "7.0", "7.1").WithLocation(10, 18) ); CreateCompilation(program, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( // (10,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case T tt: // Produces a diagnostic about subsumption/unreachability Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "T tt").WithLocation(10, 18) ); } [Fact, WorkItem(17103, "https://github.com/dotnet/roslyn/issues/17103")] public void IsConstantPatternConversion_Positive() { var source = @"using System; public class Program { public static void Main() { { byte b = 12; Console.WriteLine(b is 12); // True Console.WriteLine(b is 13); // False Console.WriteLine(b is (int)12L); // True Console.WriteLine(b is (int)13L); // False } bool Is42(byte b) => b is 42; Console.WriteLine(Is42(42)); Console.WriteLine(Is42(43)); Console.WriteLine(Is42((int)42L)); Console.WriteLine(Is42((int)43L)); } }"; var expectedOutput = @"True False True False True False True False"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(17103, "https://github.com/dotnet/roslyn/issues/17103")] public void IsConstantPatternConversion_Negative() { var source = @"using System; public class Program { public static void Main() { byte b = 12; Console.WriteLine(b is 12L); Console.WriteLine(1 is null); } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (7,32): error CS0266: Cannot implicitly convert type 'long' to 'byte'. An explicit conversion exists (are you missing a cast?) // Console.WriteLine(b is 12L); Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "12L").WithArguments("long", "byte").WithLocation(7, 32), // (8,32): error CS0037: Cannot convert null to 'int' because it is a non-nullable value type // Console.WriteLine(1 is null); Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").WithLocation(8, 32) ); } [Fact] [WorkItem(9542, "https://github.com/dotnet/roslyn/issues/9542")] [WorkItem(16876, "https://github.com/dotnet/roslyn/issues/16876")] public void DecisionTreeCoverage_Positive() { // tests added to complete coverage of the decision tree and pattern-matching implementation var source = @"using System; public class X { public static void Main() { void M1(int i, bool b) { switch (i) { case 1 when b: Console.WriteLine(""M1a""); break; case 1: Console.WriteLine(""M1b""); break; case 2: Console.WriteLine(""M1c""); break; } } M1(1, true); M1(1, false); M1(2, false); M1(3, false); void M2(object o, bool b) { switch (o) { case null: Console.WriteLine(""M2a""); break; case var _ when b: Console.WriteLine(""M2b""); break; case 1: Console.WriteLine(""M2c""); break; } } M2(null, true); M2(1, true); M2(1, false); void M3(bool? b1, bool b2) { switch (b1) { case null: Console.WriteLine(""M3a""); break; case var _ when b2: Console.WriteLine(""M3b""); break; case true: Console.WriteLine(""M3c""); break; case false: Console.WriteLine(""M3d""); break; } } M3(null, true); M3(true, true); M3(true, false); M3(false, false); void M4(object o, bool b) { switch (o) { case var _ when b: Console.WriteLine(""M4a""); break; case int i: Console.WriteLine(""M4b""); break; } } M4(1, true); M4(1, false); void M5(int? i, bool b) { switch (i) { case var _ when b: Console.WriteLine(""M5a""); break; case null: Console.WriteLine(""M5b""); break; case int q: Console.WriteLine(""M5c""); break; } } M5(1, true); M5(null, false); M5(1, false); void M6(object o, bool b) { switch (o) { case var _ when b: Console.WriteLine(""M6a""); break; case object q: Console.WriteLine(""M6b""); break; case null: Console.WriteLine(""M6c""); break; } } M6(null, true); M6(1, false); M6(null, false); void M7(object o, bool b) { switch (o) { case null when b: Console.WriteLine(""M7a""); break; case object q: Console.WriteLine(""M7b""); break; case null: Console.WriteLine(""M7c""); break; } } M7(null, true); M7(1, false); M7(null, false); void M8(object o) { switch (o) { case null when false: throw null; case null: Console.WriteLine(""M8a""); break; } } M8(null); void M9(object o, bool b1, bool b2) { switch (o) { case var _ when b1: Console.WriteLine(""M9a""); break; case var _ when b2: Console.WriteLine(""M9b""); break; case var _: Console.WriteLine(""M9c""); break; } } M9(1, true, false); M9(1, false, true); M9(1, false, false); void M10(bool b) { const string nullString = null; switch (nullString) { case null when b: Console.WriteLine(""M10a""); break; case var _: Console.WriteLine(""M10b""); break; } } M10(true); M10(false); void M11() { const string s = """"; switch (s) { case string _: Console.WriteLine(""M11a""); break; } } M11(); void M12(bool cond) { const string s = """"; switch (s) { case string _ when cond: Console.WriteLine(""M12a""); break; case var _: Console.WriteLine(""M12b""); break; } } M12(true); M12(false); void M13(bool cond) { string s = """"; switch (s) { case string _ when cond: Console.WriteLine(""M13a""); break; case string _: Console.WriteLine(""M13b""); break; } } M13(true); M13(false); void M14() { const string s = """"; switch (s) { case s: Console.WriteLine(""M14a""); break; } } M14(); void M15() { const int i = 3; switch (i) { case 3: case 4: case 5: Console.WriteLine(""M15a""); break; } } M15(); } }"; var expectedOutput = @"M1a M1b M1c M2a M2b M2c M3a M3b M3c M3d M4a M4b M5a M5b M5c M6a M6b M6c M7a M7b M7c M8a M9a M9b M9c M10a M10b M11a M12a M12b M13a M13b M14a M15a "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] [WorkItem(9542, "https://github.com/dotnet/roslyn/issues/9542")] public void DecisionTreeCoverage_BadEquals() { // tests added to complete coverage of the decision tree and pattern-matching implementation var source = @"public class X { static void M1(float o) { switch (o) { case 0f/0f: break; } } } namespace System { public class Object { } public abstract class ValueType { } public struct Void { } public struct Boolean { private Boolean m_value; Boolean Use(Boolean b) { m_value = b; return m_value; } } public struct Int32 { private Int32 m_value; Int32 Use(Int32 b) { m_value = b; return m_value; } } public struct Char { } public class String { } } namespace System { public struct Single { private Single m_value; public /*note bad return type*/ void Equals(Single other) { m_value = m_value + 1; } public /*note bad return type*/ void IsNaN(Single other) { } } } "; var compilation = CreateEmptyCompilation(source); compilation.VerifyDiagnostics( ); compilation.GetEmitDiagnostics().Where(d => d.Severity != DiagnosticSeverity.Warning).Verify( // (7,18): error CS0656: Missing compiler required member 'System.Single.IsNaN' // case 0f/0f: break; Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "0f/0f").WithArguments("System.Single", "IsNaN").WithLocation(7, 18) ); } [Fact] [WorkItem(9542, "https://github.com/dotnet/roslyn/issues/9542")] public void DecisionTreeCoverage_DuplicateDefault() { // tests added to complete coverage of the decision tree and pattern-matching implementation var source = @"public class X { static void M1(object o) { switch (o) { case int x: default: default: break; } } } "; var compilation = CreateCompilation(source); compilation.VerifyDiagnostics( // (9,13): error CS0152: The switch statement contains multiple cases with the label value 'default' // default: Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "default:").WithArguments("default").WithLocation(9, 13) ); } [Fact] [WorkItem(9542, "https://github.com/dotnet/roslyn/issues/9542")] public void DecisionTreeCoverage_Negative() { // tests added to complete coverage of the decision tree and pattern-matching implementation var source = @"public class X { static void M1(object o) { switch (o) { case 1: case int _: case 2: // subsumed break; } } static void M2(object o) { switch (o) { case 1: case int _: case int _: // subsumed break; } } } "; var compilation = CreateCompilation(source); compilation.VerifyDiagnostics( // (9,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case 2: // subsumed Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "2").WithLocation(9, 18), // (19,18): error CS8120: The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. // case int _: // subsumed Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "int _").WithLocation(19, 18) ); } [Fact] [WorkItem(17089, "https://github.com/dotnet/roslyn/issues/17089")] public void Dynamic_01() { var source = @"using System; public class X { static void M1(dynamic d) { if (d is 1) { Console.Write('r'); } else if (d is int i) { Console.Write('o'); } else if (d is var z) { long l = z; Console.Write('s'); } } static void M2(dynamic d) { switch (d) { case 1: Console.Write('l'); break; case int i: Console.Write('y'); break; case var z: long l = z; Console.Write('n'); break; } } public static void Main(string[] args) { M1(1); M1(2); M1(3L); M2(1); M2(2); M2(3L); } } "; var compilation = CreateCompilation(source, references: new MetadataReference[] { CSharpRef }, options: TestOptions.ReleaseExe); var comp = CompileAndVerify(compilation, expectedOutput: "roslyn"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_01() { var source = @"using System; public class Base { } public class Derived : Base { } public class Program { public static void Main(string[] args) { M(new Derived()); M(new Base()); } public static void M<T>(T x) where T: Base { Console.Write(x is Derived b0); switch (x) { case Derived b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (13,28): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Derived' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is Derived b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived").WithArguments("T", "Derived", "7.0", "7.1").WithLocation(13, 28), // (16,18): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Derived' in C# 7.0. Please use language version 7.1 or greater. // case Derived b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived").WithArguments("T", "Derived", "7.0", "7.1").WithLocation(16, 18) ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_02() { var source = @"using System; public class Base { } public class Derived : Base { } public class Program { public static void Main(string[] args) { M<Derived>(new Derived()); M<Derived>(new Base()); } public static void M<T>(Base x) { Console.Write(x is T b0); switch (x) { case T b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (13,28): error CS8413: An expression of type 'Base' cannot be handled by a pattern of type 'T' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is T b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("Base", "T", "7.0", "7.1").WithLocation(13, 28), // (16,18): error CS8413: An expression of type 'Base' cannot be handled by a pattern of type 'T' in C# 7.0. Please use language version 7.1 or greater. // case T b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("Base", "T", "7.0", "7.1") ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_03() { var source = @"using System; public class Base { } public class Derived<T> : Base { } public class Program { public static void Main(string[] args) { M<Base>(new Derived<Base>()); M<Base>(new Base()); } public static void M<T>(T x) where T: Base { Console.Write(x is Derived<T> b0); switch (x) { case Derived<T> b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (13,28): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Derived<T>' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is Derived<T> b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived<T>").WithArguments("T", "Derived<T>", "7.0", "7.1").WithLocation(13, 28), // (16,18): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Derived<T>' in C# 7.0. Please use language version 7.1 or greater. // case Derived<T> b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived<T>").WithArguments("T", "Derived<T>", "7.0", "7.1").WithLocation(16, 18) ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_04() { var source = @"using System; public class Base { } class Container<T> { public class Derived : Base { } } public class Program { public static void Main(string[] args) { M<Base>(new Container<Base>.Derived()); M<Base>(new Base()); } public static void M<T>(T x) where T: Base { Console.Write(x is Container<T>.Derived b0); switch (x) { case Container<T>.Derived b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (16,28): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Container<T>.Derived' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is Container<T>.Derived b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived").WithArguments("T", "Container<T>.Derived", "7.0", "7.1").WithLocation(16, 28), // (19,18): error CS8413: An expression of type 'T' cannot be handled by a pattern of type 'Container<T>.Derived' in C# 7.0. Please use language version 7.1 or greater. // case Container<T>.Derived b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived").WithArguments("T", "Container<T>.Derived", "7.0", "7.1").WithLocation(19, 18) ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void OpenTypeMatch_05() { var source = @"using System; public class Base { } class Container<T> { public class Derived : Base { } } public class Program { public static void Main(string[] args) { M<Base>(new Container<Base>.Derived[1]); M<Base>(new Base[1]); } public static void M<T>(T[] x) where T: Base { Console.Write(x is Container<T>.Derived[] b0); switch (x) { case Container<T>.Derived[] b1: Console.Write(1); break; default: Console.Write(0); break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); compilation.VerifyDiagnostics( // (16,28): error CS8413: An expression of type 'T[]' cannot be handled by a pattern of type 'Container<T>.Derived[]' in C# 7.0. Please use language version 7.1 or greater. // Console.Write(x is Container<T>.Derived[] b0); Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived[]").WithArguments("T[]", "Container<T>.Derived[]", "7.0", "7.1").WithLocation(16, 28), // (19,18): error CS8413: An expression of type 'T[]' cannot be handled by a pattern of type 'Container<T>.Derived[]' in C# 7.0. Please use language version 7.1 or greater. // case Container<T>.Derived[] b1: Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived[]").WithArguments("T[]", "Container<T>.Derived[]", "7.0", "7.1").WithLocation(19, 18) ); compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: "True1False0"); } [Fact, WorkItem(19151, "https://github.com/dotnet/roslyn/issues/19151")] public void RefutablePatterns() { var source = @"public class Program { public static void Main(string[] args) { if (null as string is string) { } if (null as string is string s1) { } const string s = null; if (s is string) { } if (s is string s2) { } if (""goo"" is string s3) { } } void M1(int? i) { if (i is long) { } if (i is long l) { } switch (b) { case long m: break; } } } "; var compilation = CreateCompilation(source); compilation.VerifyDiagnostics( // (8,13): warning CS0184: The given expression is never of the provided ('string') type // if (s is string) { } Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "s is string").WithArguments("string").WithLocation(8, 13), // (9,13): warning CS8416: The given expression never matches the provided pattern. // if (s is string s2) { } Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string s2").WithLocation(9, 13), // (14,13): warning CS0184: The given expression is never of the provided ('long') type // if (i is long) { } Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "i is long").WithArguments("long").WithLocation(14, 13), // (15,18): error CS8121: An expression of type 'int?' cannot be handled by a pattern of type 'long'. // if (i is long l) { } Diagnostic(ErrorCode.ERR_PatternWrongType, "long").WithArguments("int?", "long").WithLocation(15, 18), // (16,17): error CS0103: The name 'b' does not exist in the current context // switch (b) { case long m: break; } Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").WithLocation(16, 17) ); } [Fact, WorkItem(19038, "https://github.com/dotnet/roslyn/issues/19038")] public void GenericDynamicIsObject() { var program = @" using System; public class Program { static void Main(string[] args) { M<dynamic>(new object()); M<dynamic>(null); M<dynamic>(""xyzzy""); } static void M<T>(object x) { switch (x) { case T t: Console.Write(""T""); break; case null: Console.Write(""n""); break; } } } "; var compilation = CreateCompilation(program, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"TnT"); } [Fact, WorkItem(19038, "https://github.com/dotnet/roslyn/issues/19038")] public void MatchNullableTypeParameter() { var program = @" using System; public class Program { static void Main(string[] args) { M<int>(1); M<int>(null); M<float>(3.14F); } static void M<T>(T? x) where T : struct { switch (x) { case T t: Console.Write(""T""); break; case null: Console.Write(""n""); break; } } } "; var compilation = CreateCompilation(program, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"TnT"); } [Fact, WorkItem(16195, "https://github.com/dotnet/roslyn/issues/16195")] public void MatchRecursiveGenerics() { var program = @"using System; class Packet { } class Packet<U> : Packet { } public class C { static void Main() { Console.Write(M<Packet>(null)); Console.Write(M<Packet>(new Packet<Packet>())); Console.Write(M<Packet>(new Packet<int>())); Console.Write(M<Packet<int>>(new Packet<int>())); } static bool M<T>(T p) where T : Packet => p is Packet<T> p1; }"; CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7).VerifyDiagnostics( // (12,52): error CS8314: An expression of type 'T' cannot be handled by a pattern of type 'Packet<T>' in C# 7.0. Please use language version 7.1 or greater. // static bool M<T>(T p) where T : Packet => p is Packet<T> p1; Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Packet<T>").WithArguments("T", "Packet<T>", "7.0", "7.1").WithLocation(12, 52) ); var compilation = CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"FalseTrueFalseFalse"); } [Fact, WorkItem(19038, "https://github.com/dotnet/roslyn/issues/19038")] public void MatchRestrictedTypes_Fail() { var program = @"using System; unsafe public class C { static bool M(TypedReference x, int* p, ref int z) { var n1 = x is TypedReference x0; // ok var p1 = p is int* p0; // syntax error 1 var r1 = z is ref int z0; // syntax error 2 var b1 = x is object o1; // not allowed 1 var b2 = p is object o2; // not allowed 2 var b3 = z is object o3; // ok return b1 && b2 && b3; } }"; var compilation = CreateCompilation(program, options: TestOptions.DebugDll.WithAllowUnsafe(true)); compilation.VerifyDiagnostics( // (6,23): error CS1525: Invalid expression term 'int' // var p1 = p is int* p0; // syntax error 1 Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").WithLocation(6, 23), // (7,23): error CS1525: Invalid expression term 'ref' // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref int").WithArguments("ref").WithLocation(7, 23), // (7,27): error CS1525: Invalid expression term 'int' // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").WithLocation(7, 27), // (7,31): error CS1002: ; expected // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_SemicolonExpected, "z0").WithLocation(7, 31), // (6,28): error CS0103: The name 'p0' does not exist in the current context // var p1 = p is int* p0; // syntax error 1 Diagnostic(ErrorCode.ERR_NameNotInContext, "p0").WithArguments("p0").WithLocation(6, 28), // (7,23): error CS1073: Unexpected token 'ref' // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").WithLocation(7, 23), // (7,31): error CS0103: The name 'z0' does not exist in the current context // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_NameNotInContext, "z0").WithArguments("z0").WithLocation(7, 31), // (7,31): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // var r1 = z is ref int z0; // syntax error 2 Diagnostic(ErrorCode.ERR_IllegalStatement, "z0").WithLocation(7, 31), // (9,23): error CS8121: An expression of type 'TypedReference' cannot be handled by a pattern of type 'object'. // var b1 = x is object o1; // not allowed 1 Diagnostic(ErrorCode.ERR_PatternWrongType, "object").WithArguments("System.TypedReference", "object").WithLocation(9, 23), // (10,23): error CS8521: Pattern-matching is not permitted for pointer types. // var b2 = p is object o2; // not allowed 2 Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "object").WithLocation(10, 23) ); } [Fact, WorkItem(19038, "https://github.com/dotnet/roslyn/issues/19038")] public void MatchRestrictedTypes_Success() { var program = @"using System; using System.Reflection; unsafe public class C { public int Value; static void Main() { C a = new C { Value = 12 }; FieldInfo info = typeof(C).GetField(""Value""); TypedReference reference = __makeref(a); if (!(reference is TypedReference reference0)) throw new Exception(""TypedReference""); info.SetValueDirect(reference0, 34); if (a.Value != 34) throw new Exception(""SetValueDirect""); int z = 56; if (CopyRefInt(ref z) != 56) throw new Exception(""ref z""); Console.WriteLine(""ok""); } static int CopyRefInt(ref int z) { if (!(z is int z0)) throw new Exception(""CopyRefInt""); return z0; } }"; var compilation = CreateCompilation(program, options: TestOptions.DebugExe.WithAllowUnsafe(true)); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: "ok"); } [Fact] [WorkItem(406203, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=406203")] [WorkItem(406205, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=406205")] public void DoubleEvaluation() { var source = @"using System; public class X { public static void Main(string[] args) { { int? a = 0; if (a++ is int b) { Console.WriteLine(b); } Console.WriteLine(a); } { int? a = 0; if (++a is int b) { Console.WriteLine(b); } Console.WriteLine(a); } { if (Func() is int b) { Console.WriteLine(b); } } } public static int? Func() { Console.WriteLine(""Func called""); return 2; } } "; var expectedOutput = @"0 1 1 1 Func called 2"; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); CompileAndVerify(compilation, expectedOutput: expectedOutput); compilation = CreateCompilation(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] public void TestVoidInIsOrAs_01() { // though silly, it is not forbidden to test a void value's type var source = @"using System; class Program { static void Main() { if (Console.Write(""Hello"") is object) {} } } "; var expectedOutput = @"Hello"; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,13): warning CS0184: The given expression is never of the provided ('object') type // if (Console.Write("Hello") is object) {} Diagnostic(ErrorCode.WRN_IsAlwaysFalse, @"Console.Write(""Hello"") is object").WithArguments("object").WithLocation(6, 13) ); CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact] public void TestVoidInIsOrAs_02() { var source = @"using System; class Program { static void Main() { var o = Console.WriteLine(""world!"") as object; if (o != null) throw null; } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,17): error CS0039: Cannot convert type 'void' to 'object' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion // var o = Console.WriteLine("world!") as object; Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, @"Console.WriteLine(""world!"") as object").WithArguments("void", "object").WithLocation(6, 17) ); } [Fact] public void TestVoidInIsOrAs_03() { var source = @"using System; class Program { static void Main() { M<object>(); } static void M<T>() where T : class { var o = Console.WriteLine(""Hello"") as T; if (o != null) throw null; } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (10,17): error CS0039: Cannot convert type 'void' to 'T' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion // var o = Console.WriteLine("Hello") as T; Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, @"Console.WriteLine(""Hello"") as T").WithArguments("void", "T").WithLocation(10, 17) ); } [Fact] public void TestVoidInIsOrAs_04() { var source = @"using System; class Program { static void Main() { if (Console.WriteLine(""Hello"") is var x) { } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,13): error CS8117: Invalid operand for pattern match; value required, but found 'void'. // if (Console.WriteLine("Hello") is var x) { } Diagnostic(ErrorCode.ERR_BadPatternExpression, @"Console.WriteLine(""Hello"")").WithArguments("void").WithLocation(6, 13) ); } [Fact] public void TestVoidInIsOrAs_05() { var source = @"using System; class Program { static void Main() { if (Console.WriteLine(""Hello"") is var _) {} } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,13): error CS8117: Invalid operand for pattern match; value required, but found 'void'. // if (Console.WriteLine("Hello") is var _) {} Diagnostic(ErrorCode.ERR_BadPatternExpression, @"Console.WriteLine(""Hello"")").WithArguments("void").WithLocation(6, 13) ); } [Fact] public void TestVoidInSwitch() { var source = @"using System; class Program { static void Main() { switch (Console.WriteLine(""Hello"")) { default: break; } } } "; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (6,17): error CS8119: The switch expression must be a value; found 'void'. // switch (Console.WriteLine("Hello")) Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, @"Console.WriteLine(""Hello"")").WithArguments("void").WithLocation(6, 17) ); } [Fact, WorkItem(20103, "https://github.com/dotnet/roslyn/issues/20103")] public void TestNullInIsPattern() { var source = @"using System; class Program { static void Main() { const string s = null; if (s is string) {} else { Console.Write(""Hello ""); } if (s is string t) {} else { Console.WriteLine(""World""); } } } "; var expectedOutput = @"Hello World"; var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); compilation.VerifyDiagnostics( // (7,13): warning CS0184: The given expression is never of the provided ('string') type // if (s is string) {} else { Console.Write("Hello "); } Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "s is string").WithArguments("string").WithLocation(7, 13), // (8,13): warning CS8416: The given expression never matches the provided pattern. // if (s is string t) {} else { Console.WriteLine("World"); } Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string t").WithLocation(8, 13) ); CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(22619, "https://github.com/dotnet/roslyn/issues/22619")] public void MissingSideEffect() { var source = @"using System; internal class Program { private static void Main() { try { var test = new Program(); var result = test.IsVarMethod(); Console.WriteLine($""Result = {result}""); Console.Read(); } catch (Exception) { Console.WriteLine(""Exception""); } } private int IsVarMethod() => ThrowingMethod() is var _ ? 1 : 0; private bool ThrowingMethod() => throw new Exception(""Oh""); } "; var expectedOutput = @"Exception"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); } [Fact, WorkItem(23100, "https://github.com/dotnet/roslyn/issues/23100")] public void TestArrayOfPointer() { var source = @"using System; class Program { unsafe static void Main() { object o = new byte*[10]; Console.WriteLine(o is byte*[]); // True Console.WriteLine(o is byte*[] _); // True Console.WriteLine(o is byte*[] x1); // True Console.WriteLine(o is byte**[]); // False Console.WriteLine(o is byte**[] _); // False Console.WriteLine(o is byte**[] x2); // False o = new byte**[10]; Console.WriteLine(o is byte**[]); // True Console.WriteLine(o is byte**[] _); // True Console.WriteLine(o is byte**[] x3); // True Console.WriteLine(o is byte*[]); // False Console.WriteLine(o is byte*[] _); // False Console.WriteLine(o is byte*[] x4); // False } } "; var expectedOutput = @"True True True False False False True True True False False False"; var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); compilation.VerifyDiagnostics(); CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Fails); } [Fact] public void DefaultPattern() { var source = @"class Program { public static void Main() { int i = 12; if (i is default) {} // error 1 if (i is (default)) {} // error 2 if (i is (((default)))) {} // error 3 switch (i) { case default: break; } // error 4 switch (i) { case (default): break; } // error 5 switch (i) { case default when true: break; } // error 6 switch (i) { case (default) when true: break; } // error 7 } }"; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( // (6,18): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // if (i is default) {} // error 1 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(6, 18), // (7,19): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // if (i is (default)) {} // error 2 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(7, 19), // (8,21): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // if (i is (((default)))) {} // error 3 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(8, 21), // (9,27): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // switch (i) { case default: break; } // error 4 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(9, 27), // (10,28): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // switch (i) { case (default): break; } // error 5 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(10, 28), // (11,27): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // switch (i) { case default when true: break; } // error 6 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(11, 27), // (12,28): error CS8505: A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'. // switch (i) { case (default) when true: break; } // error 7 Diagnostic(ErrorCode.ERR_DefaultPattern, "default").WithLocation(12, 28) ); var tree = compilation.SyntaxTrees.Single(); var caseDefault = tree.GetRoot().DescendantNodes().OfType<CasePatternSwitchLabelSyntax>().First(); var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); Assert.Equal("System.Int32", model.GetTypeInfo(caseDefault.Pattern).Type.ToTestDisplayString()); Assert.Equal("System.Int32", model.GetTypeInfo(caseDefault.Pattern).ConvertedType.ToTestDisplayString()); Assert.False(model.GetConstantValue(caseDefault.Pattern).HasValue); } [Fact] public void EventInitializers_01() { var source = @" public class X { public static void Main() { System.Console.WriteLine(Test1()); } static event System.Func<bool> Test1 = GetDelegate(1 is int x1 && Dummy(x1)); static System.Func<bool> GetDelegate(bool value) => () => value; static bool Dummy(int x) { System.Console.WriteLine(x); return true; } } "; var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe); CompileAndVerify(compilation, expectedOutput: @"1 True"); CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( // (9,65): error CS8320: Feature 'declaration of expression variables in member initializers and queries' is not available in C# 7.2. Please use language version 7.3 or greater. // static event System.Func<bool> Test1 = GetDelegate(1 is int x1 && Dummy(x1)); Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").WithLocation(9, 65) ); } [Fact] public void ExhaustiveBoolSwitch00() { // Note that the switches in this code are exhaustive. The idea of a switch // being exhaustive is new with the addition of pattern-matching; this code // used to give errors that are no longer applicable due to the spec change. var source = @" using System; public class C { public static void Main() { M(true); M(false); Console.WriteLine(M2(true)); Console.WriteLine(M2(false)); } public static void M(bool e) { bool b; switch (e) { case true: b = true; break; case false: b = false; break; } Console.WriteLine(b); // no more error CS0165: Use of unassigned local variable 'b' } public static bool M2(bool e) // no more error CS0161: not all code paths return a value { switch (e) { case true: return true; case false: return false; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"True False True False"); } [Fact, WorkItem(24865, "https://github.com/dotnet/roslyn/issues/24865")] public void ExhaustiveBoolSwitch01() { var source = @" using System; public class C { public static void Main() { M(true); M(false); Console.WriteLine(M2(true)); Console.WriteLine(M2(false)); } public static void M(bool e) { bool b; switch (e) { case true when true: b = true; break; case false: b = false; break; } Console.WriteLine(b); } public static bool M2(bool e) { switch (e) { case true when true: return true; case false: return false; } } } "; var compilation = CreateCompilation(source, options: TestOptions.DebugExe); compilation.VerifyDiagnostics( ); var comp = CompileAndVerify(compilation, expectedOutput: @"True False True False"); } [Fact] [WorkItem(27218, "https://github.com/dotnet/roslyn/issues/27218")] public void IsPatternMatchingDoesNotCopyEscapeScopes_01() { CreateCompilationWithMscorlibAndSpan(@" using System; public class C { public ref int M() { Span<int> outer = stackalloc int[100]; if (outer is Span<int> inner) { return ref inner[5]; } throw null; } }").VerifyDiagnostics( // (10,24): error CS8352: Cannot use local 'inner' in this context because it may expose referenced variables outside of their declaration scope // return ref inner[5]; Diagnostic(ErrorCode.ERR_EscapeLocal, "inner").WithArguments("inner").WithLocation(10, 24)); } [Fact] [WorkItem(27218, "https://github.com/dotnet/roslyn/issues/27218")] public void IsPatternMatchingDoesNotCopyEscapeScopes_03() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" using System; public class C { public ref int M() { Span<int> outer = stackalloc int[100]; if (outer is ({} and var x) and Span<int> inner) { return ref inner[5]; } throw null; } }").VerifyDiagnostics( // (8,13): warning CS8794: An expression of type 'Span<int>' always matches the provided pattern. // if (outer is ({} and var x) and Span<int> inner) Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is ({} and var x) and Span<int> inner").WithArguments("System.Span<int>").WithLocation(8, 13), // (10,24): error CS8352: Cannot use local 'inner' in this context because it may expose referenced variables outside of their declaration scope // return ref inner[5]; Diagnostic(ErrorCode.ERR_EscapeLocal, "inner").WithArguments("inner").WithLocation(10, 24) ); } [Fact] [WorkItem(27218, "https://github.com/dotnet/roslyn/issues/27218")] public void CasePatternMatchingDoesNotCopyEscapeScopes_01() { CreateCompilationWithMscorlibAndSpan(@" using System; public class C { public ref int M() { Span<int> outer = stackalloc int[100]; switch (outer) { case Span<int> inner: { return ref inner[5]; } } throw null; } }").VerifyDiagnostics( // (12,28): error CS8352: Cannot use local 'inner' in this context because it may expose referenced variables outside of their declaration scope // return ref inner[5]; Diagnostic(ErrorCode.ERR_EscapeLocal, "inner").WithArguments("inner").WithLocation(12, 28)); } [Fact] [WorkItem(27218, "https://github.com/dotnet/roslyn/issues/27218")] public void CasePatternMatchingDoesNotCopyEscapeScopes_03() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" using System; public class C { public ref int M() { Span<int> outer = stackalloc int[100]; switch (outer) { case {} and Span<int> inner: { return ref inner[5]; } } throw null; } }").VerifyDiagnostics( // (12,28): error CS8352: Cannot use local 'inner' in this context because it may expose referenced variables outside of their declaration scope // return ref inner[5]; Diagnostic(ErrorCode.ERR_EscapeLocal, "inner").WithArguments("inner").WithLocation(12, 28)); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void CasePatternMatchingDoesNotCopyEscapeScopes_02() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" using System; public ref struct R { public R Prop => this; public void Deconstruct(out R X, out R Y) => X = Y = this; public static implicit operator R(Span<int> span) => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; switch (outer) { case { Prop: var x }: return x; // error 1 } } public R M2() { R outer = stackalloc int[100]; switch (outer) { case { Prop: R x }: return x; // error 2 } } public R M3() { R outer = stackalloc int[100]; switch (outer) { case (var x, var y): return x; // error 3 } } public R M4() { R outer = stackalloc int[100]; switch (outer) { case (R x, R y): return x; // error 4 } } public R M5() { R outer = stackalloc int[100]; switch (outer) { case var (x, y): return x; // error 5 } } public R M6() { R outer = stackalloc int[100]; switch (outer) { case { } x: return x; // error 6 } } public R M7() { R outer = stackalloc int[100]; switch (outer) { case (_, _) x: return x; // error 7 } } } ").VerifyDiagnostics( // (16,42): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case { Prop: var x }: return x; // error 1 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(16, 42), // (24,40): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case { Prop: R x }: return x; // error 2 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(24, 40), // (32,41): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case (var x, var y): return x; // error 3 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(32, 41), // (40,37): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case (R x, R y): return x; // error 4 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(40, 37), // (48,37): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var (x, y): return x; // error 5 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(48, 37), // (56,32): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case { } x: return x; // error 6 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(56, 32), // (64,35): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case (_, _) x: return x; // error 7 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(64, 35) ); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void CasePatternMatchingDoesNotCopyEscapeScopes_04() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" using System; public ref struct R { public R Prop => this; public void Deconstruct(out R X, out R Y) => X = Y = this; public static implicit operator R(Span<int> span) => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and { Prop: var _ and {} and var x }: return x; // error 1 } } public R M2() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and { Prop: var _ and {} and R x }: return x; // error 2 } } public R M3() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and (var _ and {} and var x, var _ and {} and var y): return x; // error 3 } } public R M4() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and (var _ and {} and R x, var _ and {} and R y): return x; // error 4 } } public R M5() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and var (x, y): return x; // error 5 } } public R M6() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and { } x: return x; // error 6 } } public R M7() { R outer = stackalloc int[100]; switch (outer) { case var _ and {} and (var _ and {} and _, var _ and {} and _) x: return x; // error 7 } } } ").VerifyDiagnostics( // (16,76): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and { Prop: var _ and {} and var x }: return x; // error 1 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(16, 76), // (24,74): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and { Prop: var _ and {} and R x }: return x; // error 2 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(24, 74), // (32,92): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and (var _ and {} and var x, var _ and {} and var y): return x; // error 3 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(32, 92), // (40,88): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and (var _ and {} and R x, var _ and {} and R y): return x; // error 4 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(40, 88), // (48,54): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and var (x, y): return x; // error 5 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(48, 54), // (56,49): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and { } x: return x; // error 6 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(56, 49), // (64,86): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // case var _ and {} and (var _ and {} and _, var _ and {} and _) x: return x; // error 7 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(64, 86) ); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void IsPatternMatchingDoesNotCopyEscapeScopes_02() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" using System; public ref struct R { public R Prop => this; public void Deconstruct(out R X, out R Y) => X = Y = this; public static implicit operator R(Span<int> span) => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; if (outer is { Prop: var x }) return x; // error 1 throw null; } public R M2() { R outer = stackalloc int[100]; if (outer is { Prop: R x }) return x; // error 2 throw null; } public R M3() { R outer = stackalloc int[100]; if (outer is (var x, var y)) return x; // error 3 throw null; } public R M4() { R outer = stackalloc int[100]; if (outer is (R x, R y)) return x; // error 4 throw null; } public R M5() { R outer = stackalloc int[100]; if (outer is var (x, y)) return x; // error 5 throw null; } public R M6() { R outer = stackalloc int[100]; if (outer is { } x) return x; // error 6 throw null; } public R M7() { R outer = stackalloc int[100]; if (outer is (_, _) x) return x; // error 7 throw null; } } ").VerifyDiagnostics( // (14,46): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is { Prop: var x }) return x; // error 1 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(14, 46), // (20,44): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is { Prop: R x }) return x; // error 2 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(20, 44), // (26,45): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is (var x, var y)) return x; // error 3 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(26, 45), // (32,41): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is (R x, R y)) return x; // error 4 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(32, 41), // (38,41): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var (x, y)) return x; // error 5 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(38, 41), // (44,36): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is { } x) return x; // error 6 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(44, 36), // (50,39): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is (_, _) x) return x; // error 7 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(50, 39) ); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void IsPatternMatchingDoesNotCopyEscapeScopes_04() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" using System; public ref struct R { public R Prop => this; public void Deconstruct(out R X, out R Y) => X = Y = this; public static implicit operator R(Span<int> span) => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; if (outer is var _ and {} and { Prop: var _ and {} and var x }) return x; // error 1 throw null; } public R M2() { R outer = stackalloc int[100]; if (outer is var _ and {} and { Prop: var _ and {} and R x }) return x; // error 2 throw null; } public R M3() { R outer = stackalloc int[100]; if (outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)) return x; // error 3 throw null; } public R M4() { R outer = stackalloc int[100]; if (outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)) return x; // error 4 throw null; } public R M5() { R outer = stackalloc int[100]; if (outer is var _ and {} and var (x, y)) return x; // error 5 throw null; } public R M6() { R outer = stackalloc int[100]; if (outer is var _ and {} and { } x) return x; // error 6 throw null; } public R M7() { R outer = stackalloc int[100]; if (outer is var _ and {} and (_, _) x) return x; // error 7 throw null; } } ").VerifyDiagnostics( // if (outer is var _ and {} and { Prop: var _ and {} and var x }) return x; // error 1 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { Prop: var _ and {} and var x }").WithArguments("R").WithLocation(14, 13), // (14,80): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and { Prop: var _ and {} and var x }) return x; // error 1 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(14, 80), // (20,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and { Prop: var _ and {} and R x }) return x; // error 2 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { Prop: var _ and {} and R x }").WithArguments("R").WithLocation(20, 13), // (20,78): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and { Prop: var _ and {} and R x }) return x; // error 2 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(20, 78), // (26,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)) return x; // error 3 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)").WithArguments("R").WithLocation(26, 13), // (26,96): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)) return x; // error 3 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(26, 96), // (32,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)) return x; // error 4 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)").WithArguments("R").WithLocation(32, 13), // (32,92): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)) return x; // error 4 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(32, 92), // (38,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and var (x, y)) return x; // error 5 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and var (x, y)").WithArguments("R").WithLocation(38, 13), // (38,58): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and var (x, y)) return x; // error 5 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(38, 58), // (44,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and { } x) return x; // error 6 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { } x").WithArguments("R").WithLocation(44, 13), // (44,53): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and { } x) return x; // error 6 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(44, 53), // (50,13): warning CS8794: An expression of type 'R' always matches the provided pattern. // if (outer is var _ and {} and (_, _) x) return x; // error 7 Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (_, _) x").WithArguments("R").WithLocation(50, 13), // (50,56): error CS8352: Cannot use local 'x' in this context because it may expose referenced variables outside of their declaration scope // if (outer is var _ and {} and (_, _) x) return x; // error 7 Diagnostic(ErrorCode.ERR_EscapeLocal, "x").WithArguments("x").WithLocation(50, 56) ); } [Fact] [WorkItem(28633, "https://github.com/dotnet/roslyn/issues/28633")] public void EscapeScopeInSubpatternOfNonRefType() { CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" using System; public ref struct R { public R RProp => this; public S SProp => new S(); public void Deconstruct(out S X, out S Y) => X = Y = new S(); public static implicit operator R(Span<int> span) => new R(); } public struct S { public R RProp => new R(); } public class C { public R M1() { R outer = stackalloc int[100]; if (outer is { SProp: { RProp: var x }}) return x; // OK throw null; } public R M2() { R outer = stackalloc int[100]; switch (outer) { case { SProp: { RProp: var x }}: return x; // OK } } public R M3() { R outer = stackalloc int[100]; if (outer is ({ RProp: var x }, _)) return x; // OK throw null; } public R M4() { R outer = stackalloc int[100]; switch (outer) { case ({ RProp: var x }, _): return x; // OK } } } ").VerifyDiagnostics( ); } [Fact] [WorkItem(39960, "https://github.com/dotnet/roslyn/issues/39960")] public void MissingExceptionType() { var source = @" class C { void M(bool b, dynamic d) { _ = b ? throw new System.NullReferenceException() : throw null; L(); throw null; void L() => throw d; } } "; var comp = CreateCompilation(source); comp.MakeTypeMissing(WellKnownType.System_Exception); comp.VerifyDiagnostics( // (7,21): error CS0518: Predefined type 'System.Exception' is not defined or imported // ? throw new System.NullReferenceException() Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "new System.NullReferenceException()").WithArguments("System.Exception").WithLocation(7, 21), // (8,21): error CS0518: Predefined type 'System.Exception' is not defined or imported // : throw null; Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "null").WithArguments("System.Exception").WithLocation(8, 21), // (10,15): error CS0518: Predefined type 'System.Exception' is not defined or imported // throw null; Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "null").WithArguments("System.Exception").WithLocation(10, 15), // (11,27): error CS0518: Predefined type 'System.Exception' is not defined or imported // void L() => throw d; Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "d").WithArguments("System.Exception").WithLocation(11, 27) ); comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); comp.MakeTypeMissing(WellKnownType.System_Exception); comp.VerifyDiagnostics( // (7,21): error CS0155: The type caught or thrown must be derived from System.Exception // ? throw new System.NullReferenceException() Diagnostic(ErrorCode.ERR_BadExceptionType, "new System.NullReferenceException()").WithLocation(7, 21), // (11,27): error CS0155: The type caught or thrown must be derived from System.Exception // void L() => throw d; Diagnostic(ErrorCode.ERR_BadExceptionType, "d").WithLocation(11, 27) ); } [Fact] public void MissingExceptionType_In7() { var source = @" class C { static void Main() { try { Test(); } catch { System.Console.WriteLine(""in catch""); } } static void Test() { throw null; } }"; var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); comp.MakeTypeMissing(WellKnownType.System_Exception); comp.VerifyDiagnostics( ); CompileAndVerify(comp, expectedOutput: "in catch"); } [Fact, WorkItem(50301, "https://github.com/dotnet/roslyn/issues/50301")] public void SymbolsForSwitchExpressionLocals() { var source = @" class C { static string M(object o) { return o switch { int i => $""Number: {i}"", _ => ""Don't know"" }; } }"; var comp = CreateCompilation(source); comp.VerifyDiagnostics(); comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""9"" endLine=""10"" endColumn=""11"" document=""1"" /> <entry offset=""0xf"" startLine=""8"" startColumn=""22"" endLine=""8"" endColumn=""36"" document=""1"" /> <entry offset=""0x22"" startLine=""9"" startColumn=""18"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0x28"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2a""> <scope startOffset=""0xf"" endOffset=""0x22""> <local name=""i"" il_index=""0"" il_start=""0xf"" il_end=""0x22"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/SharedUtilitiesAndExtensions/Workspace/VisualBasic/Extensions/ContextQuery/VisualBasicSyntaxContextExtensions.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Runtime.CompilerServices Imports System.Threading Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions.ContextQuery Friend Module VisualBasicSyntaxTreeExtensions <Extension> Friend Function IsAccessibleEventContext(context As VisualBasicSyntaxContext, startAtEnclosingBaseType As Boolean, cancellationToken As CancellationToken) As Boolean If context.FollowsEndOfStatement Then Return False End If Dim targetToken = context.TargetToken If targetToken.IsChildToken(Of HandlesClauseSyntax)(Function(hc) hc.HandlesKeyword) OrElse targetToken.IsChildSeparatorToken(Function(hc As HandlesClauseSyntax) hc.Events) Then Dim container = context.EnclosingNamedType.GetValue(cancellationToken) If container Is Nothing Then Return False End If If startAtEnclosingBaseType Then Return container.BaseType.GetAccessibleMembersInThisAndBaseTypes(Of IEventSymbol)(container).Any() End If Return container.GetAccessibleMembersInThisAndBaseTypes(Of IEventSymbol)(container).Any() End If Return False End Function <Extension()> Friend Function IsFollowingCompleteStatement(Of TParent As SyntaxNode)(context As VisualBasicSyntaxContext, childGetter As Func(Of TParent, StatementSyntax)) As Boolean Dim targetToken = context.TargetToken Dim parent = targetToken.GetAncestor(Of TParent)() If parent Is Nothing Then Return False End If Dim statement = childGetter(parent) If statement Is Nothing Then Return False End If Dim visitor As New IsStatementTerminatingTokenVisitor(targetToken) Return visitor.Visit(statement) End Function ''' <summary> ''' The specified position is immediately following a statement of one of the given kinds. ''' </summary> <Extension()> Friend Function IsAfterStatementOfKind(context As VisualBasicSyntaxContext, ParamArray kinds As SyntaxKind()) As Boolean If Not context.FollowsEndOfStatement Then Return False End If Dim targetToken = context.TargetToken If targetToken.Kind = SyntaxKind.None OrElse targetToken.Parent Is Nothing Then Return False End If Return targetToken.GetAncestor(Of StatementSyntax).IsKind(kinds) End Function <Extension()> Friend Function IsInStatementBlockOfKind(context As VisualBasicSyntaxContext, kind As SyntaxKind) As Boolean Return IsInStatementBlockHelper(context, Function(n, k) n.IsKind(k), kind) End Function <Extension()> Friend Function IsInStatementBlockOfKind(context As VisualBasicSyntaxContext, ParamArray kinds As SyntaxKind()) As Boolean Return IsInStatementBlockHelper(context, Function(n, k) n.IsKind(k), kinds) End Function Private Function IsInStatementBlockHelper(Of TArg)(context As VisualBasicSyntaxContext, predicate As Func(Of SyntaxNode, TArg, Boolean), arg As TArg) As Boolean Dim ancestor = context.TargetToken.Parent Do While ancestor IsNot Nothing If TypeOf ancestor Is EndBlockStatementSyntax Then ' If we're within the End Block, skip the block itself ancestor = ancestor.Parent.Parent If ancestor Is Nothing Then Return False End If End If If predicate(ancestor, arg) Then Return True End If If TypeOf ancestor Is LambdaExpressionSyntax Then If Not (context.FollowsEndOfStatement AndAlso context.TargetToken = ancestor.GetLastToken()) Then ' We should not look past lambdas Return False End If End If ancestor = ancestor.Parent Loop Return False End Function <Extension()> Public Function IsDelegateCreationContext(context As VisualBasicSyntaxContext) As Boolean If context.FollowsEndOfStatement Then Return False End If Dim token = context.TargetToken If token.Parent.IsKind(SyntaxKind.ArgumentList) AndAlso TypeOf token.Parent.Parent Is NewExpressionSyntax Then Dim symbolInfo = context.SemanticModel.GetSymbolInfo(DirectCast(token.Parent.Parent, NewExpressionSyntax).Type()) Dim objectCreationType = TryCast(symbolInfo.Symbol, ITypeSymbol) If objectCreationType IsNot Nothing AndAlso objectCreationType.TypeKind = TypeKind.Delegate Then Return True End If End If Return False End Function <Extension()> Public Function CanDeclareCustomEventAccessor(context As VisualBasicSyntaxContext, accessorBlockKind As SyntaxKind) As Boolean If context.IsCustomEventContext Then Dim accessors = context.TargetToken.GetAncestor(Of EventBlockSyntax)().Accessors Return Not accessors.Any(Function(a) a.IsKind(accessorBlockKind)) AndAlso Not accessors.Any(Function(a) a.Span.Contains(context.Position)) End If Return False End Function End Module End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Runtime.CompilerServices Imports System.Threading Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions.ContextQuery Friend Module VisualBasicSyntaxTreeExtensions <Extension> Friend Function IsAccessibleEventContext(context As VisualBasicSyntaxContext, startAtEnclosingBaseType As Boolean, cancellationToken As CancellationToken) As Boolean If context.FollowsEndOfStatement Then Return False End If Dim targetToken = context.TargetToken If targetToken.IsChildToken(Of HandlesClauseSyntax)(Function(hc) hc.HandlesKeyword) OrElse targetToken.IsChildSeparatorToken(Function(hc As HandlesClauseSyntax) hc.Events) Then Dim container = context.EnclosingNamedType.GetValue(cancellationToken) If container Is Nothing Then Return False End If If startAtEnclosingBaseType Then Return container.BaseType.GetAccessibleMembersInThisAndBaseTypes(Of IEventSymbol)(container).Any() End If Return container.GetAccessibleMembersInThisAndBaseTypes(Of IEventSymbol)(container).Any() End If Return False End Function <Extension()> Friend Function IsFollowingCompleteStatement(Of TParent As SyntaxNode)(context As VisualBasicSyntaxContext, childGetter As Func(Of TParent, StatementSyntax)) As Boolean Dim targetToken = context.TargetToken Dim parent = targetToken.GetAncestor(Of TParent)() If parent Is Nothing Then Return False End If Dim statement = childGetter(parent) If statement Is Nothing Then Return False End If Dim visitor As New IsStatementTerminatingTokenVisitor(targetToken) Return visitor.Visit(statement) End Function ''' <summary> ''' The specified position is immediately following a statement of one of the given kinds. ''' </summary> <Extension()> Friend Function IsAfterStatementOfKind(context As VisualBasicSyntaxContext, ParamArray kinds As SyntaxKind()) As Boolean If Not context.FollowsEndOfStatement Then Return False End If Dim targetToken = context.TargetToken If targetToken.Kind = SyntaxKind.None OrElse targetToken.Parent Is Nothing Then Return False End If Return targetToken.GetAncestor(Of StatementSyntax).IsKind(kinds) End Function <Extension()> Friend Function IsInStatementBlockOfKind(context As VisualBasicSyntaxContext, kind As SyntaxKind) As Boolean Return IsInStatementBlockHelper(context, Function(n, k) n.IsKind(k), kind) End Function <Extension()> Friend Function IsInStatementBlockOfKind(context As VisualBasicSyntaxContext, ParamArray kinds As SyntaxKind()) As Boolean Return IsInStatementBlockHelper(context, Function(n, k) n.IsKind(k), kinds) End Function Private Function IsInStatementBlockHelper(Of TArg)(context As VisualBasicSyntaxContext, predicate As Func(Of SyntaxNode, TArg, Boolean), arg As TArg) As Boolean Dim ancestor = context.TargetToken.Parent Do While ancestor IsNot Nothing If TypeOf ancestor Is EndBlockStatementSyntax Then ' If we're within the End Block, skip the block itself ancestor = ancestor.Parent.Parent If ancestor Is Nothing Then Return False End If End If If predicate(ancestor, arg) Then Return True End If If TypeOf ancestor Is LambdaExpressionSyntax Then If Not (context.FollowsEndOfStatement AndAlso context.TargetToken = ancestor.GetLastToken()) Then ' We should not look past lambdas Return False End If End If ancestor = ancestor.Parent Loop Return False End Function <Extension()> Public Function IsDelegateCreationContext(context As VisualBasicSyntaxContext) As Boolean If context.FollowsEndOfStatement Then Return False End If Dim token = context.TargetToken If token.Parent.IsKind(SyntaxKind.ArgumentList) AndAlso TypeOf token.Parent.Parent Is NewExpressionSyntax Then Dim symbolInfo = context.SemanticModel.GetSymbolInfo(DirectCast(token.Parent.Parent, NewExpressionSyntax).Type()) Dim objectCreationType = TryCast(symbolInfo.Symbol, ITypeSymbol) If objectCreationType IsNot Nothing AndAlso objectCreationType.TypeKind = TypeKind.Delegate Then Return True End If End If Return False End Function <Extension()> Public Function CanDeclareCustomEventAccessor(context As VisualBasicSyntaxContext, accessorBlockKind As SyntaxKind) As Boolean If context.IsCustomEventContext Then Dim accessors = context.TargetToken.GetAncestor(Of EventBlockSyntax)().Accessors Return Not accessors.Any(Function(a) a.IsKind(accessorBlockKind)) AndAlso Not accessors.Any(Function(a) a.Span.Contains(context.Position)) End If Return False End Function End Module End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/CSharp/Portable/BoundTree/BoundDecisionDag.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { internal partial class BoundDecisionDag { private ImmutableHashSet<LabelSymbol> _reachableLabels; private ImmutableArray<BoundDecisionDagNode> _topologicallySortedNodes; internal static ImmutableArray<BoundDecisionDagNode> Successors(BoundDecisionDagNode node) { switch (node) { case BoundEvaluationDecisionDagNode p: return ImmutableArray.Create(p.Next); case BoundTestDecisionDagNode p: return ImmutableArray.Create(p.WhenFalse, p.WhenTrue); case BoundLeafDecisionDagNode d: return ImmutableArray<BoundDecisionDagNode>.Empty; case BoundWhenDecisionDagNode w: return (w.WhenFalse != null) ? ImmutableArray.Create(w.WhenTrue, w.WhenFalse) : ImmutableArray.Create(w.WhenTrue); default: throw ExceptionUtilities.UnexpectedValue(node.Kind); } } public ImmutableHashSet<LabelSymbol> ReachableLabels { get { if (_reachableLabels == null) { var result = ImmutableHashSet.CreateBuilder<LabelSymbol>(Symbols.SymbolEqualityComparer.ConsiderEverything); foreach (var node in this.TopologicallySortedNodes) { if (node is BoundLeafDecisionDagNode leaf) { result.Add(leaf.Label); } } _reachableLabels = result.ToImmutableHashSet(); } return _reachableLabels; } } /// <summary> /// A list of all the nodes reachable from the root node, in a topologically sorted order. /// </summary> public ImmutableArray<BoundDecisionDagNode> TopologicallySortedNodes { get { if (_topologicallySortedNodes.IsDefault) { // We use an iterative topological sort to avoid overflowing the compiler's runtime stack for a large switch statement. bool wasAcyclic = TopologicalSort.TryIterativeSort<BoundDecisionDagNode>(new[] { this.RootNode }, Successors, out _topologicallySortedNodes); // Since these nodes were constructed by an isomorphic mapping from a known acyclic graph, it cannot be cyclic Debug.Assert(wasAcyclic); } return _topologicallySortedNodes; } } /// <summary> /// Rewrite a decision dag, using a mapping function that rewrites one node at a time. That function /// takes as its input the node to be rewritten and a function that returns the previously computed /// rewritten node for successor nodes. /// </summary> public BoundDecisionDag Rewrite(Func<BoundDecisionDagNode, Func<BoundDecisionDagNode, BoundDecisionDagNode>, BoundDecisionDagNode> makeReplacement) { // First, we topologically sort the nodes of the dag so that we can translate the nodes bottom-up. // This will avoid overflowing the compiler's runtime stack which would occur for a large switch // statement if we were using a recursive strategy. ImmutableArray<BoundDecisionDagNode> sortedNodes = this.TopologicallySortedNodes; // Cache simplified/translated replacement for each translated dag node. Since we always visit // a node's successors before the node, the replacement should always be in the cache when we need it. var replacement = PooledDictionary<BoundDecisionDagNode, BoundDecisionDagNode>.GetInstance(); Func<BoundDecisionDagNode, BoundDecisionDagNode> getReplacementForChild = n => replacement[n]; // Loop backwards through the topologically sorted nodes to translate them, so that we always visit a node after its successors for (int i = sortedNodes.Length - 1; i >= 0; i--) { BoundDecisionDagNode node = sortedNodes[i]; Debug.Assert(!replacement.ContainsKey(node)); BoundDecisionDagNode newNode = makeReplacement(node, getReplacementForChild); replacement.Add(node, newNode); } // Return the computed replacement root node var newRoot = replacement[this.RootNode]; replacement.Free(); return this.Update(newRoot); } /// <summary> /// A trivial node replacement function for use with <see cref="Rewrite(Func{BoundDecisionDagNode, Func{BoundDecisionDagNode, BoundDecisionDagNode}, BoundDecisionDagNode})"/>. /// </summary> public static BoundDecisionDagNode TrivialReplacement(BoundDecisionDagNode dag, Func<BoundDecisionDagNode, BoundDecisionDagNode> replacement) { switch (dag) { case BoundEvaluationDecisionDagNode p: return p.Update(p.Evaluation, replacement(p.Next)); case BoundTestDecisionDagNode p: return p.Update(p.Test, replacement(p.WhenTrue), replacement(p.WhenFalse)); case BoundWhenDecisionDagNode p: return p.Update(p.Bindings, p.WhenExpression, replacement(p.WhenTrue), (p.WhenFalse != null) ? replacement(p.WhenFalse) : null); case BoundLeafDecisionDagNode p: return p; default: throw ExceptionUtilities.UnexpectedValue(dag); } } /// <summary> /// Given a decision dag and a constant-valued input, produce a simplified decision dag that has removed all the /// tests that are unnecessary due to that constant value. This simplification affects flow analysis (reachability /// and definite assignment) and permits us to simplify the generated code. /// </summary> public BoundDecisionDag SimplifyDecisionDagIfConstantInput(BoundExpression input) { if (input.ConstantValue == null) { return this; } else { ConstantValue inputConstant = input.ConstantValue; return Rewrite(makeReplacement); // Make a replacement for a given node, using the precomputed replacements for its successors. BoundDecisionDagNode makeReplacement(BoundDecisionDagNode dag, Func<BoundDecisionDagNode, BoundDecisionDagNode> replacement) { if (dag is BoundTestDecisionDagNode p) { // This is the key to the optimization. The result of a top-level test might be known if the input is constant. switch (knownResult(p.Test)) { case true: return replacement(p.WhenTrue); case false: return replacement(p.WhenFalse); } } return TrivialReplacement(dag, replacement); } // Is the decision's result known because the input is a constant? bool? knownResult(BoundDagTest choice) { if (!choice.Input.IsOriginalInput) { // This is a test of something other than the main input; result unknown return null; } switch (choice) { case BoundDagExplicitNullTest d: return inputConstant.IsNull; case BoundDagNonNullTest d: return !inputConstant.IsNull; case BoundDagValueTest d: return d.Value == inputConstant; case BoundDagTypeTest d: return inputConstant.IsNull ? (bool?)false : null; case BoundDagRelationalTest d: var f = ValueSetFactory.ForType(input.Type); if (f is null) return null; // TODO: When ValueSetFactory has a method for comparing two values, use it. var set = f.Related(d.Relation.Operator(), d.Value); return set.Any(BinaryOperatorKind.Equal, inputConstant); default: throw ExceptionUtilities.UnexpectedValue(choice); } } } } #if DEBUG /// <summary> /// Starting with `this` state, produce a human-readable description of the state tables. /// This is very useful for debugging and optimizing the dag state construction. /// </summary> internal new string Dump() { var allStates = this.TopologicallySortedNodes; var resultBuilder = PooledStringBuilder.GetInstance(); var result = resultBuilder.Builder; foreach (var state in allStates) { result.AppendLine(state.GetDebuggerDisplay()); } return resultBuilder.ToStringAndFree(); } #endif } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { internal partial class BoundDecisionDag { private ImmutableHashSet<LabelSymbol> _reachableLabels; private ImmutableArray<BoundDecisionDagNode> _topologicallySortedNodes; internal static ImmutableArray<BoundDecisionDagNode> Successors(BoundDecisionDagNode node) { switch (node) { case BoundEvaluationDecisionDagNode p: return ImmutableArray.Create(p.Next); case BoundTestDecisionDagNode p: return ImmutableArray.Create(p.WhenFalse, p.WhenTrue); case BoundLeafDecisionDagNode d: return ImmutableArray<BoundDecisionDagNode>.Empty; case BoundWhenDecisionDagNode w: return (w.WhenFalse != null) ? ImmutableArray.Create(w.WhenTrue, w.WhenFalse) : ImmutableArray.Create(w.WhenTrue); default: throw ExceptionUtilities.UnexpectedValue(node.Kind); } } public ImmutableHashSet<LabelSymbol> ReachableLabels { get { if (_reachableLabels == null) { var result = ImmutableHashSet.CreateBuilder<LabelSymbol>(Symbols.SymbolEqualityComparer.ConsiderEverything); foreach (var node in this.TopologicallySortedNodes) { if (node is BoundLeafDecisionDagNode leaf) { result.Add(leaf.Label); } } _reachableLabels = result.ToImmutableHashSet(); } return _reachableLabels; } } /// <summary> /// A list of all the nodes reachable from the root node, in a topologically sorted order. /// </summary> public ImmutableArray<BoundDecisionDagNode> TopologicallySortedNodes { get { if (_topologicallySortedNodes.IsDefault) { // We use an iterative topological sort to avoid overflowing the compiler's runtime stack for a large switch statement. bool wasAcyclic = TopologicalSort.TryIterativeSort<BoundDecisionDagNode>(new[] { this.RootNode }, Successors, out _topologicallySortedNodes); // Since these nodes were constructed by an isomorphic mapping from a known acyclic graph, it cannot be cyclic Debug.Assert(wasAcyclic); } return _topologicallySortedNodes; } } /// <summary> /// Rewrite a decision dag, using a mapping function that rewrites one node at a time. That function /// takes as its input the node to be rewritten and a function that returns the previously computed /// rewritten node for successor nodes. /// </summary> public BoundDecisionDag Rewrite(Func<BoundDecisionDagNode, Func<BoundDecisionDagNode, BoundDecisionDagNode>, BoundDecisionDagNode> makeReplacement) { // First, we topologically sort the nodes of the dag so that we can translate the nodes bottom-up. // This will avoid overflowing the compiler's runtime stack which would occur for a large switch // statement if we were using a recursive strategy. ImmutableArray<BoundDecisionDagNode> sortedNodes = this.TopologicallySortedNodes; // Cache simplified/translated replacement for each translated dag node. Since we always visit // a node's successors before the node, the replacement should always be in the cache when we need it. var replacement = PooledDictionary<BoundDecisionDagNode, BoundDecisionDagNode>.GetInstance(); Func<BoundDecisionDagNode, BoundDecisionDagNode> getReplacementForChild = n => replacement[n]; // Loop backwards through the topologically sorted nodes to translate them, so that we always visit a node after its successors for (int i = sortedNodes.Length - 1; i >= 0; i--) { BoundDecisionDagNode node = sortedNodes[i]; Debug.Assert(!replacement.ContainsKey(node)); BoundDecisionDagNode newNode = makeReplacement(node, getReplacementForChild); replacement.Add(node, newNode); } // Return the computed replacement root node var newRoot = replacement[this.RootNode]; replacement.Free(); return this.Update(newRoot); } /// <summary> /// A trivial node replacement function for use with <see cref="Rewrite(Func{BoundDecisionDagNode, Func{BoundDecisionDagNode, BoundDecisionDagNode}, BoundDecisionDagNode})"/>. /// </summary> public static BoundDecisionDagNode TrivialReplacement(BoundDecisionDagNode dag, Func<BoundDecisionDagNode, BoundDecisionDagNode> replacement) { switch (dag) { case BoundEvaluationDecisionDagNode p: return p.Update(p.Evaluation, replacement(p.Next)); case BoundTestDecisionDagNode p: return p.Update(p.Test, replacement(p.WhenTrue), replacement(p.WhenFalse)); case BoundWhenDecisionDagNode p: return p.Update(p.Bindings, p.WhenExpression, replacement(p.WhenTrue), (p.WhenFalse != null) ? replacement(p.WhenFalse) : null); case BoundLeafDecisionDagNode p: return p; default: throw ExceptionUtilities.UnexpectedValue(dag); } } /// <summary> /// Given a decision dag and a constant-valued input, produce a simplified decision dag that has removed all the /// tests that are unnecessary due to that constant value. This simplification affects flow analysis (reachability /// and definite assignment) and permits us to simplify the generated code. /// </summary> public BoundDecisionDag SimplifyDecisionDagIfConstantInput(BoundExpression input) { if (input.ConstantValue == null) { return this; } else { ConstantValue inputConstant = input.ConstantValue; return Rewrite(makeReplacement); // Make a replacement for a given node, using the precomputed replacements for its successors. BoundDecisionDagNode makeReplacement(BoundDecisionDagNode dag, Func<BoundDecisionDagNode, BoundDecisionDagNode> replacement) { if (dag is BoundTestDecisionDagNode p) { // This is the key to the optimization. The result of a top-level test might be known if the input is constant. switch (knownResult(p.Test)) { case true: return replacement(p.WhenTrue); case false: return replacement(p.WhenFalse); } } return TrivialReplacement(dag, replacement); } // Is the decision's result known because the input is a constant? bool? knownResult(BoundDagTest choice) { if (!choice.Input.IsOriginalInput) { // This is a test of something other than the main input; result unknown return null; } switch (choice) { case BoundDagExplicitNullTest d: return inputConstant.IsNull; case BoundDagNonNullTest d: return !inputConstant.IsNull; case BoundDagValueTest d: return d.Value == inputConstant; case BoundDagTypeTest d: return inputConstant.IsNull ? (bool?)false : null; case BoundDagRelationalTest d: var f = ValueSetFactory.ForType(input.Type); if (f is null) return null; // TODO: When ValueSetFactory has a method for comparing two values, use it. var set = f.Related(d.Relation.Operator(), d.Value); return set.Any(BinaryOperatorKind.Equal, inputConstant); default: throw ExceptionUtilities.UnexpectedValue(choice); } } } } #if DEBUG /// <summary> /// Starting with `this` state, produce a human-readable description of the state tables. /// This is very useful for debugging and optimizing the dag state construction. /// </summary> internal new string Dump() { var allStates = this.TopologicallySortedNodes; var resultBuilder = PooledStringBuilder.GetInstance(); var result = resultBuilder.Builder; foreach (var state in allStates) { result.AppendLine(state.GetDebuggerDisplay()); } return resultBuilder.ToStringAndFree(); } #endif } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Features/Core/Portable/ExternalAccess/Pythia/Api/PythiaCompletionProviderBase.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.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Completion; using Microsoft.CodeAnalysis.Completion.Providers; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Shared.Utilities; namespace Microsoft.CodeAnalysis.ExternalAccess.Pythia.Api { internal abstract class PythiaCompletionProviderBase : CommonCompletionProvider, INotifyCommittingItemCompletionProvider { public static PerLanguageOption2<bool> HideAdvancedMembersOption => CompletionOptions.HideAdvancedMembers; public static CompletionItem CreateCommonCompletionItem( string displayText, string displayTextSuffix, CompletionItemRules rules, PythiaGlyph? glyph, ImmutableArray<SymbolDisplayPart> description, string sortText, string filterText, bool showsWarningIcon = false, ImmutableDictionary<string, string>? properties = null, ImmutableArray<string> tags = default, string? inlineDescription = null) => CommonCompletionItem.Create(displayText, displayTextSuffix, rules, (Glyph?)glyph, description, sortText, filterText, showsWarningIcon, properties, tags, inlineDescription); public static CompletionItem CreateSymbolCompletionItem( string displayText, IReadOnlyList<ISymbol> symbols, CompletionItemRules rules, int contextPosition, string? sortText = null, string? insertionText = null, string? filterText = null, SupportedPlatformData? supportedPlatforms = null, ImmutableDictionary<string, string>? properties = null, ImmutableArray<string> tags = default) => SymbolCompletionItem.CreateWithSymbolId(displayText, displayTextSuffix: null, symbols, rules, contextPosition, sortText, insertionText, filterText, displayTextPrefix: null, inlineDescription: null, glyph: null, supportedPlatforms, properties, tags); public static ImmutableArray<SymbolDisplayPart> CreateRecommendedKeywordDisplayParts(string keyword, string toolTip) => RecommendedKeyword.CreateDisplayParts(keyword, toolTip); public static Task<CompletionDescription> GetDescriptionAsync(CompletionItem item, Document document, CancellationToken cancellationToken) => SymbolCompletionItem.GetDescriptionAsync(item, document, cancellationToken); public static CompletionDescription GetDescription(CompletionItem item) => CommonCompletionItem.GetDescription(item); public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey = null, CancellationToken cancellationToken = default) => base.GetChangeAsync(document, item, commitKey, cancellationToken); public virtual Task NotifyCommittingItemAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) => Task.CompletedTask; } }
// Licensed to the .NET Foundation under one or more 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.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Completion; using Microsoft.CodeAnalysis.Completion.Providers; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Shared.Utilities; namespace Microsoft.CodeAnalysis.ExternalAccess.Pythia.Api { internal abstract class PythiaCompletionProviderBase : CommonCompletionProvider, INotifyCommittingItemCompletionProvider { public static PerLanguageOption2<bool> HideAdvancedMembersOption => CompletionOptions.HideAdvancedMembers; public static CompletionItem CreateCommonCompletionItem( string displayText, string displayTextSuffix, CompletionItemRules rules, PythiaGlyph? glyph, ImmutableArray<SymbolDisplayPart> description, string sortText, string filterText, bool showsWarningIcon = false, ImmutableDictionary<string, string>? properties = null, ImmutableArray<string> tags = default, string? inlineDescription = null) => CommonCompletionItem.Create(displayText, displayTextSuffix, rules, (Glyph?)glyph, description, sortText, filterText, showsWarningIcon, properties, tags, inlineDescription); public static CompletionItem CreateSymbolCompletionItem( string displayText, IReadOnlyList<ISymbol> symbols, CompletionItemRules rules, int contextPosition, string? sortText = null, string? insertionText = null, string? filterText = null, SupportedPlatformData? supportedPlatforms = null, ImmutableDictionary<string, string>? properties = null, ImmutableArray<string> tags = default) => SymbolCompletionItem.CreateWithSymbolId(displayText, displayTextSuffix: null, symbols, rules, contextPosition, sortText, insertionText, filterText, displayTextPrefix: null, inlineDescription: null, glyph: null, supportedPlatforms, properties, tags); public static ImmutableArray<SymbolDisplayPart> CreateRecommendedKeywordDisplayParts(string keyword, string toolTip) => RecommendedKeyword.CreateDisplayParts(keyword, toolTip); public static Task<CompletionDescription> GetDescriptionAsync(CompletionItem item, Document document, CancellationToken cancellationToken) => SymbolCompletionItem.GetDescriptionAsync(item, document, cancellationToken); public static CompletionDescription GetDescription(CompletionItem item) => CommonCompletionItem.GetDescription(item); public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey = null, CancellationToken cancellationToken = default) => base.GetChangeAsync(document, item, commitKey, cancellationToken); public virtual Task NotifyCommittingItemAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) => Task.CompletedTask; } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/CSharp/Portable/Compilation/DeconstructionInfo.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.CSharp { // Deconstructions are represented internally as a tree of conversions, but // since they are not conversions from the language perspective we use a wrapper to // abstract the public API from the implementation. /// <summary> /// The representation of a deconstruction as a tree of Deconstruct methods and conversions. /// Methods only appear in non-terminal nodes. All terminal nodes have a Conversion. /// /// Here's an example: /// A deconstruction like <c>(int x1, (long x2, long x3)) = deconstructable1</c> with /// <c>Deconstructable1.Deconstruct(out int y1, out Deconstructable2 y2)</c> and /// <c>Deconstructable2.Deconstruct(out int z1, out int z2)</c> is represented as 5 DeconstructionInfo nodes. /// /// The top-level node has a <see cref="Method"/> (Deconstructable1.Deconstruct), no <see cref="Conversion"/>, but has two <see cref="Nested"/> nodes. /// Its first nested node has no <see cref="Method"/>, but has a <see cref="Conversion"/> (Identity). /// Its second nested node has a <see cref="Method"/> (Deconstructable2.Deconstruct), no <see cref="Conversion"/>, and two <see cref="Nested"/> nodes. /// Those last two nested nodes have no <see cref="Method"/>, but each have a <see cref="Conversion"/> (ImplicitNumeric, from int to long). /// </summary> public struct DeconstructionInfo { private readonly Conversion _conversion; /// <summary> /// The Deconstruct method (if any) for this non-terminal position in the deconstruction tree. /// </summary> public IMethodSymbol? Method { get { return _conversion.Kind == ConversionKind.Deconstruction ? _conversion.MethodSymbol : null; } } /// <summary> /// The conversion for a terminal position in the deconstruction tree. /// </summary> public Conversion? Conversion { get { return _conversion.Kind == ConversionKind.Deconstruction ? null : (Conversion?)_conversion; } } /// <summary> /// The children for this deconstruction node. /// </summary> public ImmutableArray<DeconstructionInfo> Nested { get { var underlyingConversions = _conversion.UnderlyingConversions; return underlyingConversions.IsDefault ? ImmutableArray<DeconstructionInfo>.Empty : underlyingConversions.SelectAsArray(c => new DeconstructionInfo(c)); } } internal DeconstructionInfo(Conversion conversion) { _conversion = conversion; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.CSharp { // Deconstructions are represented internally as a tree of conversions, but // since they are not conversions from the language perspective we use a wrapper to // abstract the public API from the implementation. /// <summary> /// The representation of a deconstruction as a tree of Deconstruct methods and conversions. /// Methods only appear in non-terminal nodes. All terminal nodes have a Conversion. /// /// Here's an example: /// A deconstruction like <c>(int x1, (long x2, long x3)) = deconstructable1</c> with /// <c>Deconstructable1.Deconstruct(out int y1, out Deconstructable2 y2)</c> and /// <c>Deconstructable2.Deconstruct(out int z1, out int z2)</c> is represented as 5 DeconstructionInfo nodes. /// /// The top-level node has a <see cref="Method"/> (Deconstructable1.Deconstruct), no <see cref="Conversion"/>, but has two <see cref="Nested"/> nodes. /// Its first nested node has no <see cref="Method"/>, but has a <see cref="Conversion"/> (Identity). /// Its second nested node has a <see cref="Method"/> (Deconstructable2.Deconstruct), no <see cref="Conversion"/>, and two <see cref="Nested"/> nodes. /// Those last two nested nodes have no <see cref="Method"/>, but each have a <see cref="Conversion"/> (ImplicitNumeric, from int to long). /// </summary> public struct DeconstructionInfo { private readonly Conversion _conversion; /// <summary> /// The Deconstruct method (if any) for this non-terminal position in the deconstruction tree. /// </summary> public IMethodSymbol? Method { get { return _conversion.Kind == ConversionKind.Deconstruction ? _conversion.MethodSymbol : null; } } /// <summary> /// The conversion for a terminal position in the deconstruction tree. /// </summary> public Conversion? Conversion { get { return _conversion.Kind == ConversionKind.Deconstruction ? null : (Conversion?)_conversion; } } /// <summary> /// The children for this deconstruction node. /// </summary> public ImmutableArray<DeconstructionInfo> Nested { get { var underlyingConversions = _conversion.UnderlyingConversions; return underlyingConversions.IsDefault ? ImmutableArray<DeconstructionInfo>.Empty : underlyingConversions.SelectAsArray(c => new DeconstructionInfo(c)); } } internal DeconstructionInfo(Conversion conversion) { _conversion = conversion; } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/VisualBasic/Portable/Simplification/Reducers/VisualBasicExtensionMethodReducer.Rewriter.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.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Simplification Partial Friend Class VisualBasicExtensionMethodReducer Private Class Rewriter Inherits AbstractReductionRewriter Public Sub New(pool As ObjectPool(Of IReductionRewriter)) MyBase.New(pool) End Sub Public Overrides Function VisitInvocationExpression(node As InvocationExpressionSyntax) As SyntaxNode CancellationToken.ThrowIfCancellationRequested() Return SimplifyExpression( node, newNode:=MyBase.VisitInvocationExpression(node), simplifier:=s_simplifyInvocationExpression) End Function End Class End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Threading Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Simplification Partial Friend Class VisualBasicExtensionMethodReducer Private Class Rewriter Inherits AbstractReductionRewriter Public Sub New(pool As ObjectPool(Of IReductionRewriter)) MyBase.New(pool) End Sub Public Overrides Function VisitInvocationExpression(node As InvocationExpressionSyntax) As SyntaxNode CancellationToken.ThrowIfCancellationRequested() Return SimplifyExpression( node, newNode:=MyBase.VisitInvocationExpression(node), simplifier:=s_simplifyInvocationExpression) End Function End Class End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Compilers/VisualBasic/Portable/Lowering/AsyncRewriter/AsyncRewriter.AsyncMethodToClassRewriter.Await.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.Generic Imports System.Collections.Immutable Imports System.Threading Imports Microsoft.Cci Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Collections Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend NotInheritable Class AsyncRewriter Inherits StateMachineRewriter(Of CapturedSymbolOrExpression) Partial Friend Class AsyncMethodToClassRewriter Inherits StateMachineMethodToClassRewriter Public Overrides Function VisitAwaitOperator(node As BoundAwaitOperator) As BoundNode Dim builder As New SpillBuilder ' TODO: We may have problems in case ' TODO: the awaiter is being mutated in the code flow below; revise and get rid ' TODO: of local *or* make sure mutable awaiter works ' The awaiter temp facilitates EnC method remapping and thus have to be long-lived. ' It transfers the awaiter objects from the old version of the MoveNext method to the New one. Debug.Assert(node.Syntax.IsKind(SyntaxKind.AwaitExpression)) Dim awaiterType As TypeSymbol = node.GetAwaiter.Type.InternalSubstituteTypeParameters(Me.TypeMap).Type Dim awaiterTemp As LocalSymbol = Me.F.SynthesizedLocal(awaiterType, kind:=SynthesizedLocalKind.Awaiter, syntax:=node.Syntax) builder.AddLocal(awaiterTemp) ' Replace 'awaiter' with the local Dim awaiterInstancePlaceholder As BoundLValuePlaceholder = node.AwaiterInstancePlaceholder Debug.Assert(awaiterInstancePlaceholder IsNot Nothing) PlaceholderReplacementMap.Add(awaiterInstancePlaceholder, Me.F.Local(awaiterTemp, True)) ' Replace 'awaitable' with rewritten expression Dim awaitableInstancePlaceholder As BoundRValuePlaceholder = node.AwaitableInstancePlaceholder Debug.Assert(awaitableInstancePlaceholder IsNot Nothing) PlaceholderReplacementMap.Add(awaitableInstancePlaceholder, VisitExpression(node.Operand)) ' Rewrite GetAwaiter, IsCompleted and GetResult expressions Dim rewrittenGetAwaiter As BoundExpression = VisitExpression(node.GetAwaiter) Dim rewrittenIsCompleted As BoundExpression = VisitExpression(node.IsCompleted) Dim rewrittenGetResult As BoundExpression = VisitExpression(node.GetResult) Dim rewrittenType As TypeSymbol = VisitType(node.Type) PlaceholderReplacementMap.Remove(awaiterInstancePlaceholder) PlaceholderReplacementMap.Remove(awaitableInstancePlaceholder) ' STMT: Dim $awaiterTemp = <expr>.GetAwaiter() builder.AddStatement( Me.MakeAssignmentStatement(rewrittenGetAwaiter, awaiterTemp, builder)) ' hidden sequence point facilitates EnC method remapping, see explanation on SynthesizedLocalKind.Awaiter builder.AddStatement(SyntheticBoundNodeFactory.HiddenSequencePoint()) ' STMT: If Not $awaiterTemp.IsCompleted Then <await-for-incomplete-task> Dim awaitForIncompleteTask As BoundStatement = Me.GenerateAwaitForIncompleteTask(awaiterTemp) ' NOTE: As node.GetAwaiter, node.IsCompleted and node.GetResult are already rewritten by ' local rewriter we decide if the original calls were late bound by inspecting ' the type of awaiter; actually rewritten expressions work well for GetAwaiter and ' GetResult, but for IsCompleted we have to know this fact to produce code that ' matches Dev11. Dim isAwaiterTempImpliesLateBound As Boolean = awaiterType.IsObjectType If isAwaiterTempImpliesLateBound Then ' late-bound case builder.AddStatement( Me.F.If( condition:=Me.F.Convert(Me.F.SpecialType(SpecialType.System_Boolean), rewrittenIsCompleted), thenClause:=Me.F.StatementList(), elseClause:=awaitForIncompleteTask)) Else ' regular case builder.AddStatement( Me.F.If( condition:=Me.F.Not(rewrittenIsCompleted), thenClause:=awaitForIncompleteTask)) End If Dim onAwaitFinished As BoundExpression = Nothing Dim clearAwaiterTemp As BoundExpression = Me.F.AssignmentExpression(Me.F.Local(awaiterTemp, True), Me.F.Null(awaiterTemp.Type)) If rewrittenType.SpecialType <> SpecialType.System_Void Then ' STMT: $resultTemp = $awaiterTemp.GetResult() ' STMT: $awaiterTemp = Nothing ' STMT: $resultTemp Dim resultTemp As LocalSymbol = Me.F.SynthesizedLocal(rewrittenType) onAwaitFinished = Me.F.Sequence(resultTemp, Me.F.AssignmentExpression(Me.F.Local(resultTemp, True), rewrittenGetResult), clearAwaiterTemp, Me.F.Local(resultTemp, False)) Else ' STMT: $awaiterTemp.GetResult() ' STMT: $awaiterTemp = Nothing onAwaitFinished = Me.F.Sequence(rewrittenGetResult, clearAwaiterTemp) End If Return builder.BuildSequenceAndFree(Me.F, onAwaitFinished) End Function Private Function GenerateAwaitForIncompleteTask(awaiterTemp As LocalSymbol) As BoundBlock Dim state As StateInfo = Me.AddState() Dim awaiterType As TypeSymbol = awaiterTemp.Type Dim awaiterFieldType As TypeSymbol = awaiterType If awaiterFieldType.IsVerifierReference() Then awaiterFieldType = Me.F.SpecialType(SpecialType.System_Object) End If Dim awaiterField As FieldSymbol = GetAwaiterField(awaiterFieldType) Dim blockBuilder = ArrayBuilder(Of BoundStatement).GetInstance() ' STMT: Me.$State = CachedState = stateForLabel blockBuilder.Add( Me.F.Assignment( Me.F.Field(Me.F.Me(), Me.StateField, True), Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(state.Number)))) ' Emit Await yield point to be injected into PDB blockBuilder.Add(Me.F.NoOp(NoOpStatementFlavor.AwaitYieldPoint)) ' STMT: Me.$awaiter = $awaiterTemp blockBuilder.Add( Me.F.Assignment( Me.F.Field(Me.F.Me(), awaiterField, True), If(TypeSymbol.Equals(awaiterField.Type, awaiterTemp.Type, TypeCompareKind.ConsiderEverything), DirectCast(Me.F.Local(awaiterTemp, False), BoundExpression), Me.F.Convert(awaiterFieldType, Me.F.Local(awaiterTemp, False))))) ' NOTE: As it is mentioned above, Dev11 decides whether or not to use 'late binding' for ' Await[Unsafe]OnCompleted based on the type of awaiter local variable ' See ResumableMethodLowerer::RewriteAwaitExpression(...) in ResumableMethodRewriter.cpp Dim isAwaiterTempImpliesLateBound As Boolean = awaiterType.IsObjectType Dim builderFieldAsRValue As BoundExpression = Me.F.Field(Me.F.Me(), Me._builder, False) Dim ICriticalNotifyCompletion = Me.F.WellKnownType(WellKnownType.System_Runtime_CompilerServices_ICriticalNotifyCompletion) If Not ICriticalNotifyCompletion.IsErrorType Then If isAwaiterTempImpliesLateBound Then ' STMT: Dim dcast1 As ICriticalNotifyCompletion = TryCast(AwaiterLocalTemp, ICriticalNotifyCompletion) ' STMT: If dcast1 IsNot Nothing Then ' STMT: builder.AwaitUnsafeOnCompleted<ICriticalNotifyCompletion,TStateMachine>(ref dcast1, ref Me) ' STMT: Else ' STMT: Dim dcast2 As INotifyCompletion = DirectCast(AwaiterLocalTemp, INotifyCompletion) ' STMT: builder.AwaitOnCompleted<INotifyCompletion,TStateMachine>(ref dcast2, ref Me) ' STMT: End If Dim asCriticalNotifyCompletion As LocalSymbol = Me.F.SynthesizedLocal(ICriticalNotifyCompletion) Dim asNotifyCompletion As LocalSymbol = Me.F.SynthesizedLocal(Me.F.WellKnownType(WellKnownType.System_Runtime_CompilerServices_INotifyCompletion)) Dim awaiterTempAsRValue As BoundLocal = Me.F.Local(awaiterTemp, False) Dim criticalNotifyCompletionAsLValue As BoundLocal = Me.F.Local(asCriticalNotifyCompletion, True) Dim notifyCompletionAsLValue As BoundLocal = Me.F.Local(asNotifyCompletion, True) ' >>>> dcast1 = TryCast(AwaiterLocalTemp, ICriticalNotifyCompletion) Dim asCriticalNotifyCompletionAssignment As BoundStatement = Me.MakeAssignmentStatement( Me.F.TryCast(awaiterTempAsRValue, asCriticalNotifyCompletion.Type), asCriticalNotifyCompletion) ' >>>> builder.AwaitUnsafeOnCompleted(Of TAwaiter,TSM)((ByRef) dcast1, (ByRef) Me) Dim awaitUnsafeOnCompletedCall As BoundStatement = Me.F.ExpressionStatement( Me._owner.GenerateMethodCall( builderFieldAsRValue, Me._owner._builderType, "AwaitUnsafeOnCompleted", ImmutableArray.Create(Of TypeSymbol)(asCriticalNotifyCompletion.Type, Me.F.Me().Type), {criticalNotifyCompletionAsLValue, Me.F.ReferenceOrByrefMe()})) ' >>>> dcast2 = DirectCast(AwaiterLocalTemp, INotifyCompletion) ' TODO: POSTPROCESS ASSIGNMENT Dim asNotifyCompletionAssignment As BoundStatement = Me.MakeAssignmentStatement( Me.F.DirectCast(awaiterTempAsRValue, asNotifyCompletion.Type), asNotifyCompletion) ' >>>> builder.AwaitOnCompleted(Of TAwaiter,TSM)((ByRef) dcast2, (ByRef) Me) Dim awaitOnCompletedCall As BoundStatement = Me.F.ExpressionStatement( Me._owner.GenerateMethodCall( builderFieldAsRValue, Me._owner._builderType, "AwaitOnCompleted", ImmutableArray.Create(Of TypeSymbol)(asNotifyCompletion.Type, Me.F.Me().Type), {notifyCompletionAsLValue, Me.F.ReferenceOrByrefMe()})) blockBuilder.Add( Me.F.Block( ImmutableArray.Create(Of LocalSymbol)(asCriticalNotifyCompletion, asNotifyCompletion), asCriticalNotifyCompletionAssignment, Me.F.If( condition:=Me.F.Not(Me.F.ReferenceIsNothing(Me.F.Local(asCriticalNotifyCompletion, False))), thenClause:=awaitUnsafeOnCompletedCall, elseClause:=Me.F.Block( asNotifyCompletionAssignment, awaitOnCompletedCall)))) Else ' STMT: this.builder.AwaitUnsafeOnCompleted(Of TAwaiter,TSM)((ByRef) $awaiterTemp, (ByRef) Me) ' or ' STMT: this.builder.AwaitOnCompleted(Of TAwaiter,TSM)((ByRef) $awaiterTemp, (ByRef) Me) Dim useSiteInfo As New CompoundUseSiteInfo(Of AssemblySymbol)(Me.F.Diagnostics, Me.CompilationState.Compilation.Assembly) Dim useUnsafeOnCompleted As Boolean = Conversions.IsWideningConversion( Conversions.ClassifyDirectCastConversion( awaiterType, ICriticalNotifyCompletion, useSiteInfo:=useSiteInfo)) Me.F.Diagnostics.Add(Me.F.Syntax, useSiteInfo) blockBuilder.Add( Me.F.ExpressionStatement( Me._owner.GenerateMethodCall( builderFieldAsRValue, Me._owner._builderType, If(useUnsafeOnCompleted, "AwaitUnsafeOnCompleted", "AwaitOnCompleted"), ImmutableArray.Create(Of TypeSymbol)(awaiterType, Me.F.Me().Type), {Me.F.Local(awaiterTemp, True), Me.F.ReferenceOrByrefMe()}))) End If End If '---------------------------------------------- ' Actual interruption point with return statement and ' resume label, to be handled in codegen ' ' RETURN blockBuilder.Add(Me.F.Goto(Me._exitLabel)) '---------------------------------------------- ' RESUME LABEL blockBuilder.Add(Me.F.Label(state.ResumeLabel)) '---------------------------------------------- ' Emit Await resume point to be injected into PDB blockBuilder.Add(Me.F.NoOp(NoOpStatementFlavor.AwaitResumePoint)) ' STMT: Me.$State = CachedState = NotStartedStateMachine blockBuilder.Add( Me.F.Assignment( Me.F.Field(Me.F.Me(), Me.StateField, True), Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(StateMachineStates.NotStartedStateMachine)))) ' STMT: $awaiterTemp = Me.$awaiter ' or ' STMT: $awaiterTemp = DirectCast(Me.$awaiter, AwaiterType) ' In case of late binding blockBuilder.Add( Me.F.Assignment( Me.F.Local(awaiterTemp, True), If(TypeSymbol.Equals(awaiterTemp.Type, awaiterField.Type, TypeCompareKind.ConsiderEverything), DirectCast(Me.F.Field(Me.F.Me(), awaiterField, False), BoundExpression), Me.F.Convert(awaiterTemp.Type, Me.F.Field(Me.F.Me(), awaiterField, False))))) ' Clear the field as it is not needed any more, also note that the local will ' be cleared later after we call GetResult... ' STMT: Me.$awaiter = Nothing blockBuilder.Add( Me.F.Assignment( Me.F.Field(Me.F.Me(), awaiterField, True), Me.F.Null(awaiterField.Type))) Return Me.F.Block(blockBuilder.ToImmutableAndFree()) End Function Protected Overrides Function MaterializeProxy(origExpression As BoundExpression, proxy As CapturedSymbolOrExpression) As BoundNode Return proxy.Materialize(Me, origExpression.IsLValue) End Function Friend Overrides Sub AddProxyFieldsForStateMachineScope(proxy As CapturedSymbolOrExpression, proxyFields As ArrayBuilder(Of FieldSymbol)) proxy.AddProxyFieldsForStateMachineScope(proxyFields) End Sub End Class End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Generic Imports System.Collections.Immutable Imports System.Threading Imports Microsoft.Cci Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Collections Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend NotInheritable Class AsyncRewriter Inherits StateMachineRewriter(Of CapturedSymbolOrExpression) Partial Friend Class AsyncMethodToClassRewriter Inherits StateMachineMethodToClassRewriter Public Overrides Function VisitAwaitOperator(node As BoundAwaitOperator) As BoundNode Dim builder As New SpillBuilder ' TODO: We may have problems in case ' TODO: the awaiter is being mutated in the code flow below; revise and get rid ' TODO: of local *or* make sure mutable awaiter works ' The awaiter temp facilitates EnC method remapping and thus have to be long-lived. ' It transfers the awaiter objects from the old version of the MoveNext method to the New one. Debug.Assert(node.Syntax.IsKind(SyntaxKind.AwaitExpression)) Dim awaiterType As TypeSymbol = node.GetAwaiter.Type.InternalSubstituteTypeParameters(Me.TypeMap).Type Dim awaiterTemp As LocalSymbol = Me.F.SynthesizedLocal(awaiterType, kind:=SynthesizedLocalKind.Awaiter, syntax:=node.Syntax) builder.AddLocal(awaiterTemp) ' Replace 'awaiter' with the local Dim awaiterInstancePlaceholder As BoundLValuePlaceholder = node.AwaiterInstancePlaceholder Debug.Assert(awaiterInstancePlaceholder IsNot Nothing) PlaceholderReplacementMap.Add(awaiterInstancePlaceholder, Me.F.Local(awaiterTemp, True)) ' Replace 'awaitable' with rewritten expression Dim awaitableInstancePlaceholder As BoundRValuePlaceholder = node.AwaitableInstancePlaceholder Debug.Assert(awaitableInstancePlaceholder IsNot Nothing) PlaceholderReplacementMap.Add(awaitableInstancePlaceholder, VisitExpression(node.Operand)) ' Rewrite GetAwaiter, IsCompleted and GetResult expressions Dim rewrittenGetAwaiter As BoundExpression = VisitExpression(node.GetAwaiter) Dim rewrittenIsCompleted As BoundExpression = VisitExpression(node.IsCompleted) Dim rewrittenGetResult As BoundExpression = VisitExpression(node.GetResult) Dim rewrittenType As TypeSymbol = VisitType(node.Type) PlaceholderReplacementMap.Remove(awaiterInstancePlaceholder) PlaceholderReplacementMap.Remove(awaitableInstancePlaceholder) ' STMT: Dim $awaiterTemp = <expr>.GetAwaiter() builder.AddStatement( Me.MakeAssignmentStatement(rewrittenGetAwaiter, awaiterTemp, builder)) ' hidden sequence point facilitates EnC method remapping, see explanation on SynthesizedLocalKind.Awaiter builder.AddStatement(SyntheticBoundNodeFactory.HiddenSequencePoint()) ' STMT: If Not $awaiterTemp.IsCompleted Then <await-for-incomplete-task> Dim awaitForIncompleteTask As BoundStatement = Me.GenerateAwaitForIncompleteTask(awaiterTemp) ' NOTE: As node.GetAwaiter, node.IsCompleted and node.GetResult are already rewritten by ' local rewriter we decide if the original calls were late bound by inspecting ' the type of awaiter; actually rewritten expressions work well for GetAwaiter and ' GetResult, but for IsCompleted we have to know this fact to produce code that ' matches Dev11. Dim isAwaiterTempImpliesLateBound As Boolean = awaiterType.IsObjectType If isAwaiterTempImpliesLateBound Then ' late-bound case builder.AddStatement( Me.F.If( condition:=Me.F.Convert(Me.F.SpecialType(SpecialType.System_Boolean), rewrittenIsCompleted), thenClause:=Me.F.StatementList(), elseClause:=awaitForIncompleteTask)) Else ' regular case builder.AddStatement( Me.F.If( condition:=Me.F.Not(rewrittenIsCompleted), thenClause:=awaitForIncompleteTask)) End If Dim onAwaitFinished As BoundExpression = Nothing Dim clearAwaiterTemp As BoundExpression = Me.F.AssignmentExpression(Me.F.Local(awaiterTemp, True), Me.F.Null(awaiterTemp.Type)) If rewrittenType.SpecialType <> SpecialType.System_Void Then ' STMT: $resultTemp = $awaiterTemp.GetResult() ' STMT: $awaiterTemp = Nothing ' STMT: $resultTemp Dim resultTemp As LocalSymbol = Me.F.SynthesizedLocal(rewrittenType) onAwaitFinished = Me.F.Sequence(resultTemp, Me.F.AssignmentExpression(Me.F.Local(resultTemp, True), rewrittenGetResult), clearAwaiterTemp, Me.F.Local(resultTemp, False)) Else ' STMT: $awaiterTemp.GetResult() ' STMT: $awaiterTemp = Nothing onAwaitFinished = Me.F.Sequence(rewrittenGetResult, clearAwaiterTemp) End If Return builder.BuildSequenceAndFree(Me.F, onAwaitFinished) End Function Private Function GenerateAwaitForIncompleteTask(awaiterTemp As LocalSymbol) As BoundBlock Dim state As StateInfo = Me.AddState() Dim awaiterType As TypeSymbol = awaiterTemp.Type Dim awaiterFieldType As TypeSymbol = awaiterType If awaiterFieldType.IsVerifierReference() Then awaiterFieldType = Me.F.SpecialType(SpecialType.System_Object) End If Dim awaiterField As FieldSymbol = GetAwaiterField(awaiterFieldType) Dim blockBuilder = ArrayBuilder(Of BoundStatement).GetInstance() ' STMT: Me.$State = CachedState = stateForLabel blockBuilder.Add( Me.F.Assignment( Me.F.Field(Me.F.Me(), Me.StateField, True), Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(state.Number)))) ' Emit Await yield point to be injected into PDB blockBuilder.Add(Me.F.NoOp(NoOpStatementFlavor.AwaitYieldPoint)) ' STMT: Me.$awaiter = $awaiterTemp blockBuilder.Add( Me.F.Assignment( Me.F.Field(Me.F.Me(), awaiterField, True), If(TypeSymbol.Equals(awaiterField.Type, awaiterTemp.Type, TypeCompareKind.ConsiderEverything), DirectCast(Me.F.Local(awaiterTemp, False), BoundExpression), Me.F.Convert(awaiterFieldType, Me.F.Local(awaiterTemp, False))))) ' NOTE: As it is mentioned above, Dev11 decides whether or not to use 'late binding' for ' Await[Unsafe]OnCompleted based on the type of awaiter local variable ' See ResumableMethodLowerer::RewriteAwaitExpression(...) in ResumableMethodRewriter.cpp Dim isAwaiterTempImpliesLateBound As Boolean = awaiterType.IsObjectType Dim builderFieldAsRValue As BoundExpression = Me.F.Field(Me.F.Me(), Me._builder, False) Dim ICriticalNotifyCompletion = Me.F.WellKnownType(WellKnownType.System_Runtime_CompilerServices_ICriticalNotifyCompletion) If Not ICriticalNotifyCompletion.IsErrorType Then If isAwaiterTempImpliesLateBound Then ' STMT: Dim dcast1 As ICriticalNotifyCompletion = TryCast(AwaiterLocalTemp, ICriticalNotifyCompletion) ' STMT: If dcast1 IsNot Nothing Then ' STMT: builder.AwaitUnsafeOnCompleted<ICriticalNotifyCompletion,TStateMachine>(ref dcast1, ref Me) ' STMT: Else ' STMT: Dim dcast2 As INotifyCompletion = DirectCast(AwaiterLocalTemp, INotifyCompletion) ' STMT: builder.AwaitOnCompleted<INotifyCompletion,TStateMachine>(ref dcast2, ref Me) ' STMT: End If Dim asCriticalNotifyCompletion As LocalSymbol = Me.F.SynthesizedLocal(ICriticalNotifyCompletion) Dim asNotifyCompletion As LocalSymbol = Me.F.SynthesizedLocal(Me.F.WellKnownType(WellKnownType.System_Runtime_CompilerServices_INotifyCompletion)) Dim awaiterTempAsRValue As BoundLocal = Me.F.Local(awaiterTemp, False) Dim criticalNotifyCompletionAsLValue As BoundLocal = Me.F.Local(asCriticalNotifyCompletion, True) Dim notifyCompletionAsLValue As BoundLocal = Me.F.Local(asNotifyCompletion, True) ' >>>> dcast1 = TryCast(AwaiterLocalTemp, ICriticalNotifyCompletion) Dim asCriticalNotifyCompletionAssignment As BoundStatement = Me.MakeAssignmentStatement( Me.F.TryCast(awaiterTempAsRValue, asCriticalNotifyCompletion.Type), asCriticalNotifyCompletion) ' >>>> builder.AwaitUnsafeOnCompleted(Of TAwaiter,TSM)((ByRef) dcast1, (ByRef) Me) Dim awaitUnsafeOnCompletedCall As BoundStatement = Me.F.ExpressionStatement( Me._owner.GenerateMethodCall( builderFieldAsRValue, Me._owner._builderType, "AwaitUnsafeOnCompleted", ImmutableArray.Create(Of TypeSymbol)(asCriticalNotifyCompletion.Type, Me.F.Me().Type), {criticalNotifyCompletionAsLValue, Me.F.ReferenceOrByrefMe()})) ' >>>> dcast2 = DirectCast(AwaiterLocalTemp, INotifyCompletion) ' TODO: POSTPROCESS ASSIGNMENT Dim asNotifyCompletionAssignment As BoundStatement = Me.MakeAssignmentStatement( Me.F.DirectCast(awaiterTempAsRValue, asNotifyCompletion.Type), asNotifyCompletion) ' >>>> builder.AwaitOnCompleted(Of TAwaiter,TSM)((ByRef) dcast2, (ByRef) Me) Dim awaitOnCompletedCall As BoundStatement = Me.F.ExpressionStatement( Me._owner.GenerateMethodCall( builderFieldAsRValue, Me._owner._builderType, "AwaitOnCompleted", ImmutableArray.Create(Of TypeSymbol)(asNotifyCompletion.Type, Me.F.Me().Type), {notifyCompletionAsLValue, Me.F.ReferenceOrByrefMe()})) blockBuilder.Add( Me.F.Block( ImmutableArray.Create(Of LocalSymbol)(asCriticalNotifyCompletion, asNotifyCompletion), asCriticalNotifyCompletionAssignment, Me.F.If( condition:=Me.F.Not(Me.F.ReferenceIsNothing(Me.F.Local(asCriticalNotifyCompletion, False))), thenClause:=awaitUnsafeOnCompletedCall, elseClause:=Me.F.Block( asNotifyCompletionAssignment, awaitOnCompletedCall)))) Else ' STMT: this.builder.AwaitUnsafeOnCompleted(Of TAwaiter,TSM)((ByRef) $awaiterTemp, (ByRef) Me) ' or ' STMT: this.builder.AwaitOnCompleted(Of TAwaiter,TSM)((ByRef) $awaiterTemp, (ByRef) Me) Dim useSiteInfo As New CompoundUseSiteInfo(Of AssemblySymbol)(Me.F.Diagnostics, Me.CompilationState.Compilation.Assembly) Dim useUnsafeOnCompleted As Boolean = Conversions.IsWideningConversion( Conversions.ClassifyDirectCastConversion( awaiterType, ICriticalNotifyCompletion, useSiteInfo:=useSiteInfo)) Me.F.Diagnostics.Add(Me.F.Syntax, useSiteInfo) blockBuilder.Add( Me.F.ExpressionStatement( Me._owner.GenerateMethodCall( builderFieldAsRValue, Me._owner._builderType, If(useUnsafeOnCompleted, "AwaitUnsafeOnCompleted", "AwaitOnCompleted"), ImmutableArray.Create(Of TypeSymbol)(awaiterType, Me.F.Me().Type), {Me.F.Local(awaiterTemp, True), Me.F.ReferenceOrByrefMe()}))) End If End If '---------------------------------------------- ' Actual interruption point with return statement and ' resume label, to be handled in codegen ' ' RETURN blockBuilder.Add(Me.F.Goto(Me._exitLabel)) '---------------------------------------------- ' RESUME LABEL blockBuilder.Add(Me.F.Label(state.ResumeLabel)) '---------------------------------------------- ' Emit Await resume point to be injected into PDB blockBuilder.Add(Me.F.NoOp(NoOpStatementFlavor.AwaitResumePoint)) ' STMT: Me.$State = CachedState = NotStartedStateMachine blockBuilder.Add( Me.F.Assignment( Me.F.Field(Me.F.Me(), Me.StateField, True), Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(StateMachineStates.NotStartedStateMachine)))) ' STMT: $awaiterTemp = Me.$awaiter ' or ' STMT: $awaiterTemp = DirectCast(Me.$awaiter, AwaiterType) ' In case of late binding blockBuilder.Add( Me.F.Assignment( Me.F.Local(awaiterTemp, True), If(TypeSymbol.Equals(awaiterTemp.Type, awaiterField.Type, TypeCompareKind.ConsiderEverything), DirectCast(Me.F.Field(Me.F.Me(), awaiterField, False), BoundExpression), Me.F.Convert(awaiterTemp.Type, Me.F.Field(Me.F.Me(), awaiterField, False))))) ' Clear the field as it is not needed any more, also note that the local will ' be cleared later after we call GetResult... ' STMT: Me.$awaiter = Nothing blockBuilder.Add( Me.F.Assignment( Me.F.Field(Me.F.Me(), awaiterField, True), Me.F.Null(awaiterField.Type))) Return Me.F.Block(blockBuilder.ToImmutableAndFree()) End Function Protected Overrides Function MaterializeProxy(origExpression As BoundExpression, proxy As CapturedSymbolOrExpression) As BoundNode Return proxy.Materialize(Me, origExpression.IsLValue) End Function Friend Overrides Sub AddProxyFieldsForStateMachineScope(proxy As CapturedSymbolOrExpression, proxyFields As ArrayBuilder(Of FieldSymbol)) proxy.AddProxyFieldsForStateMachineScope(proxyFields) End Sub End Class End Class End Namespace
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/ExpressionEvaluator/CSharp/Test/ResultProvider/DynamicViewTests.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.Dynamic; using System.Linq; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Microsoft.VisualStudio.Debugger.Clr; using Microsoft.VisualStudio.Debugger.Evaluation; using Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation; using Xunit; using Roslyn.Test.Utilities; namespace Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.UnitTests { public class DynamicViewTests : CSharpResultProviderTestBase { [Fact] public void MultipleMembers() { var expression = "o"; dynamic o = new ExpandoObject(); o.Philosophers = new object[] { "Pythagoras", "Lucretius", "Zeno" }; o.WhatsForDinner = "Crab Cakes"; o.NumForks = 2; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); var dynamicView = GetChildren(result).Last(); Verify(dynamicView, EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", "o, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(dynamicView), EvalResult("NumForks", "2", "System.Int32", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[0]", DkmEvaluationResultFlags.ReadOnly), EvalResult("Philosophers", "{object[3]}", "System.Object[]", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[1]", DkmEvaluationResultFlags.ReadOnly), EvalResult("WhatsForDinner", "\"Crab Cakes\"", "System.String", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[2]", DkmEvaluationResultFlags.ReadOnly)); } [Fact] public void MultipleExpansions() { var expression = "o"; dynamic o = new ExpandoObject(); o.Answer = 42; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); // Dynamic View should appear after all other expansions. var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); Verify(GetChildren(result), EvalResult("Class", "{System.Dynamic.ExpandoClass}", "System.Dynamic.ExpandoClass", "o.Class", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly | DkmEvaluationResultFlags.CanFavorite, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Internal), EvalResult("LockObject", "{object}", "object", "o.LockObject", DkmEvaluationResultFlags.ReadOnly | DkmEvaluationResultFlags.CanFavorite, DkmEvaluationResultCategory.Data, DkmEvaluationResultAccessType.Internal), EvalResult("System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>.Count", "1", "int", "((System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>)o).Count", DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Private), EvalResult("System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>.IsReadOnly", "false", "bool", "((System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>)o).IsReadOnly", DkmEvaluationResultFlags.Boolean | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Private), EvalResult("System.Collections.Generic.IDictionary<string, object>.Keys", "Count = 1", "System.Collections.Generic.ICollection<string> {System.Dynamic.ExpandoObject.KeyCollection}", "((System.Collections.Generic.IDictionary<string, object>)o).Keys", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Private), EvalResult("System.Collections.Generic.IDictionary<string, object>.Values", "Count = 1", "System.Collections.Generic.ICollection<object> {System.Dynamic.ExpandoObject.ValueCollection}", "((System.Collections.Generic.IDictionary<string, object>)o).Values", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Private), EvalResult("_count", "1", "int", "o._count", DkmEvaluationResultFlags.CanFavorite, category: DkmEvaluationResultCategory.Data, access: DkmEvaluationResultAccessType.Private), EvalResult("_data", "{System.Dynamic.ExpandoObject.ExpandoData}", "System.Dynamic.ExpandoObject.ExpandoData", "o._data", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.CanFavorite, DkmEvaluationResultCategory.Data, DkmEvaluationResultAccessType.Private), EvalResult("_propertyChanged", "null", "System.ComponentModel.PropertyChangedEventHandler", "o._propertyChanged", DkmEvaluationResultFlags.CanFavorite, category: DkmEvaluationResultCategory.Data, access: DkmEvaluationResultAccessType.Private), EvalResult(Resources.StaticMembers, null, "", "System.Dynamic.ExpandoObject", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Class), EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", "o, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Method)); } [Fact] public void ExceptionTypeMember() { var expression = "o"; dynamic o = new ExpandoObject(); var exception = new NotImplementedException(); o.Member = exception; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); var dynamicView = GetChildren(result).Last(); Verify(dynamicView, EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", "o, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(dynamicView), EvalResult("Member", $"{{{exception.ToString()}}}", "System.NotImplementedException", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[0]", DkmEvaluationResultFlags.ReadOnly)); } [Fact] public void DynamicTypeMember() { var expression = "o"; dynamic o = new ExpandoObject(); o.Pi = Math.PI; o.OnAndOn = o; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); var members = GetChildren(result); var fullNameOnAndOn = "o"; var fullNamePi = "o"; // Expand 3 levels... for (var i = 0; i < 3; i++) { var dynamicView = members.Last(); Verify(dynamicView, EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", $"{fullNameOnAndOn}, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); members = GetChildren(dynamicView); fullNamePi = $"new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView({fullNameOnAndOn}).Items[1]"; fullNameOnAndOn = $"new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView({fullNameOnAndOn}).Items[0]"; Verify(members, EvalResult("OnAndOn", "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", fullNameOnAndOn, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly), EvalResult("Pi", "3.1415926535897931", "System.Double", fullNamePi, DkmEvaluationResultFlags.ReadOnly)); members = GetChildren(members[0]); } } [Fact] [WorkItem(5666, "https://github.com/dotnet/roslyn/issues/5666")] public void NoMembers() { using (new EnsureEnglishUICulture()) { var expression = "o"; dynamic o = new ExpandoObject(); var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); var dynamicView = GetChildren(result).Last(); Verify(dynamicView, EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", "o, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(dynamicView), EvalFailedResult(Resources.ErrorName, GetDynamicDebugViewEmptyMessage())); } } [Fact] public void NullComObject() { var comObjectTypeName = "System.__ComObject"; var expression = $"({comObjectTypeName})null"; var type = new DkmClrType((TypeImpl)typeof(object).Assembly.GetType(comObjectTypeName)); var value = CreateDkmClrValue(null, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "null", comObjectTypeName, expression)); result = FormatResult(expression, expression + ",dynamic", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } [Fact] public void NullIDynamicMetaObjectProvider() { var expression = "o"; var type = new DkmClrType((TypeImpl)typeof(IDynamicMetaObjectProvider)); var value = CreateDkmClrValue(null, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "null", "System.Dynamic.IDynamicMetaObjectProvider", expression)); result = FormatResult(expression, expression + ",dynamic", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } [Fact] public void NullDynamicObject() { var expression = "o"; var type = new DkmClrType((TypeImpl)typeof(ExpandoObject)); var value = CreateDkmClrValue(null, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "null", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); Verify(GetChildren(result), EvalResult(Resources.StaticMembers, null, "", "System.Dynamic.ExpandoObject", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Class)); result = FormatResult(expression, expression + ",dynamic", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } [Fact] public void DynamicTypeError() { var expression = "o"; var obj = new ExpandoObject(); // Verify that things *work* in this scenario if there was no error in member access. var value = CreateDkmClrValue(obj); var fullName = expression + ", dynamic"; var result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); // Verify no Dynamic View if member access is changed to result in an error. var runtime = new DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlibAndSystemCore()); value = CreateErrorValue(runtime.GetType(obj.GetType()), "Function evaluation timed out"); result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } [Fact] public void DynamicMetaObjectProviderDebugViewItemsError() { var expression = "o"; dynamic o = new ExpandoObject(); o.Answer = 42; DkmClrRuntimeInstance runtime = null; runtime = new DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlib(), getMemberValue: (_, m) => (m == "Items") ? CreateErrorValue(runtime.GetType(typeof(Array)), "Function evaluation timed out") : null); var type = new DkmClrType(runtime, (TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var fullName = expression + ", dynamic"; var result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(result), EvalFailedResult(Resources.ErrorName, "Function evaluation timed out")); } [Fact] public void DynamicMetaObjectProviderDebugViewItemsException() { var expression = "o"; var fullName = expression + ", dynamic"; dynamic o = new ExpandoObject(); o.Answer = 42; DkmClrRuntimeInstance runtime = null; Func<DkmClrValue> getExceptionValue = () => CreateDkmClrValue(new NotImplementedException(), evalFlags: DkmEvaluationResultFlags.ExceptionThrown); runtime = new DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlib(), getMemberValue: (_, m) => (m == "Items") ? getExceptionValue() : null); var type = new DkmClrType(runtime, (TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); var members = GetChildren(result); Assert.Equal(32, members.Length); Verify(members[1], EvalResult("HResult", "-2147467263", "int", null, category: DkmEvaluationResultCategory.Property, access: DkmEvaluationResultAccessType.Public)); getExceptionValue = () => CreateDkmClrValue(new NotImplementedException()); result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); members = GetChildren(result); Assert.Equal(32, members.Length); Verify(members[1], EvalResult("HResult", "-2147467263", "int", "((System.Exception)new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items).HResult", category: DkmEvaluationResultCategory.Property, access: DkmEvaluationResultAccessType.Public)); } [Fact] public void DynamicFormatSpecifier() { var expression = "o"; dynamic o = new ExpandoObject(); o.Answer = 42; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var fullName = expression + ", dynamic"; var result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(result), EvalResult("Answer", "42", "System.Int32", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[0]", DkmEvaluationResultFlags.ReadOnly)); } [Fact] public void DynamicFormatSpecifierError() { var expression = "o"; var o = new Object(); var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue(o, type); var result = FormatResult(expression, expression + ",dynamic", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } } }
// Licensed to the .NET Foundation under one or more 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.Dynamic; using System.Linq; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Microsoft.VisualStudio.Debugger.Clr; using Microsoft.VisualStudio.Debugger.Evaluation; using Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation; using Xunit; using Roslyn.Test.Utilities; namespace Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.UnitTests { public class DynamicViewTests : CSharpResultProviderTestBase { [Fact] public void MultipleMembers() { var expression = "o"; dynamic o = new ExpandoObject(); o.Philosophers = new object[] { "Pythagoras", "Lucretius", "Zeno" }; o.WhatsForDinner = "Crab Cakes"; o.NumForks = 2; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); var dynamicView = GetChildren(result).Last(); Verify(dynamicView, EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", "o, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(dynamicView), EvalResult("NumForks", "2", "System.Int32", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[0]", DkmEvaluationResultFlags.ReadOnly), EvalResult("Philosophers", "{object[3]}", "System.Object[]", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[1]", DkmEvaluationResultFlags.ReadOnly), EvalResult("WhatsForDinner", "\"Crab Cakes\"", "System.String", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[2]", DkmEvaluationResultFlags.ReadOnly)); } [Fact] public void MultipleExpansions() { var expression = "o"; dynamic o = new ExpandoObject(); o.Answer = 42; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); // Dynamic View should appear after all other expansions. var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); Verify(GetChildren(result), EvalResult("Class", "{System.Dynamic.ExpandoClass}", "System.Dynamic.ExpandoClass", "o.Class", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly | DkmEvaluationResultFlags.CanFavorite, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Internal), EvalResult("LockObject", "{object}", "object", "o.LockObject", DkmEvaluationResultFlags.ReadOnly | DkmEvaluationResultFlags.CanFavorite, DkmEvaluationResultCategory.Data, DkmEvaluationResultAccessType.Internal), EvalResult("System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>.Count", "1", "int", "((System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>)o).Count", DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Private), EvalResult("System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>.IsReadOnly", "false", "bool", "((System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>)o).IsReadOnly", DkmEvaluationResultFlags.Boolean | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Private), EvalResult("System.Collections.Generic.IDictionary<string, object>.Keys", "Count = 1", "System.Collections.Generic.ICollection<string> {System.Dynamic.ExpandoObject.KeyCollection}", "((System.Collections.Generic.IDictionary<string, object>)o).Keys", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Private), EvalResult("System.Collections.Generic.IDictionary<string, object>.Values", "Count = 1", "System.Collections.Generic.ICollection<object> {System.Dynamic.ExpandoObject.ValueCollection}", "((System.Collections.Generic.IDictionary<string, object>)o).Values", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Property, DkmEvaluationResultAccessType.Private), EvalResult("_count", "1", "int", "o._count", DkmEvaluationResultFlags.CanFavorite, category: DkmEvaluationResultCategory.Data, access: DkmEvaluationResultAccessType.Private), EvalResult("_data", "{System.Dynamic.ExpandoObject.ExpandoData}", "System.Dynamic.ExpandoObject.ExpandoData", "o._data", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.CanFavorite, DkmEvaluationResultCategory.Data, DkmEvaluationResultAccessType.Private), EvalResult("_propertyChanged", "null", "System.ComponentModel.PropertyChangedEventHandler", "o._propertyChanged", DkmEvaluationResultFlags.CanFavorite, category: DkmEvaluationResultCategory.Data, access: DkmEvaluationResultAccessType.Private), EvalResult(Resources.StaticMembers, null, "", "System.Dynamic.ExpandoObject", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Class), EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", "o, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Method)); } [Fact] public void ExceptionTypeMember() { var expression = "o"; dynamic o = new ExpandoObject(); var exception = new NotImplementedException(); o.Member = exception; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); var dynamicView = GetChildren(result).Last(); Verify(dynamicView, EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", "o, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(dynamicView), EvalResult("Member", $"{{{exception.ToString()}}}", "System.NotImplementedException", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[0]", DkmEvaluationResultFlags.ReadOnly)); } [Fact] public void DynamicTypeMember() { var expression = "o"; dynamic o = new ExpandoObject(); o.Pi = Math.PI; o.OnAndOn = o; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); var members = GetChildren(result); var fullNameOnAndOn = "o"; var fullNamePi = "o"; // Expand 3 levels... for (var i = 0; i < 3; i++) { var dynamicView = members.Last(); Verify(dynamicView, EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", $"{fullNameOnAndOn}, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); members = GetChildren(dynamicView); fullNamePi = $"new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView({fullNameOnAndOn}).Items[1]"; fullNameOnAndOn = $"new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView({fullNameOnAndOn}).Items[0]"; Verify(members, EvalResult("OnAndOn", "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", fullNameOnAndOn, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly), EvalResult("Pi", "3.1415926535897931", "System.Double", fullNamePi, DkmEvaluationResultFlags.ReadOnly)); members = GetChildren(members[0]); } } [Fact] [WorkItem(5666, "https://github.com/dotnet/roslyn/issues/5666")] public void NoMembers() { using (new EnsureEnglishUICulture()) { var expression = "o"; dynamic o = new ExpandoObject(); var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "{System.Dynamic.ExpandoObject}", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); var dynamicView = GetChildren(result).Last(); Verify(dynamicView, EvalResult(Resources.DynamicView, Resources.DynamicViewValueWarning, "", "o, dynamic", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(dynamicView), EvalFailedResult(Resources.ErrorName, GetDynamicDebugViewEmptyMessage())); } } [Fact] public void NullComObject() { var comObjectTypeName = "System.__ComObject"; var expression = $"({comObjectTypeName})null"; var type = new DkmClrType((TypeImpl)typeof(object).Assembly.GetType(comObjectTypeName)); var value = CreateDkmClrValue(null, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "null", comObjectTypeName, expression)); result = FormatResult(expression, expression + ",dynamic", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } [Fact] public void NullIDynamicMetaObjectProvider() { var expression = "o"; var type = new DkmClrType((TypeImpl)typeof(IDynamicMetaObjectProvider)); var value = CreateDkmClrValue(null, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "null", "System.Dynamic.IDynamicMetaObjectProvider", expression)); result = FormatResult(expression, expression + ",dynamic", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } [Fact] public void NullDynamicObject() { var expression = "o"; var type = new DkmClrType((TypeImpl)typeof(ExpandoObject)); var value = CreateDkmClrValue(null, type); var result = FormatResult(expression, value); Verify(result, EvalResult(expression, "null", "System.Dynamic.ExpandoObject", expression, DkmEvaluationResultFlags.Expandable)); Verify(GetChildren(result), EvalResult(Resources.StaticMembers, null, "", "System.Dynamic.ExpandoObject", DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly, DkmEvaluationResultCategory.Class)); result = FormatResult(expression, expression + ",dynamic", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } [Fact] public void DynamicTypeError() { var expression = "o"; var obj = new ExpandoObject(); // Verify that things *work* in this scenario if there was no error in member access. var value = CreateDkmClrValue(obj); var fullName = expression + ", dynamic"; var result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); // Verify no Dynamic View if member access is changed to result in an error. var runtime = new DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlibAndSystemCore()); value = CreateErrorValue(runtime.GetType(obj.GetType()), "Function evaluation timed out"); result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } [Fact] public void DynamicMetaObjectProviderDebugViewItemsError() { var expression = "o"; dynamic o = new ExpandoObject(); o.Answer = 42; DkmClrRuntimeInstance runtime = null; runtime = new DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlib(), getMemberValue: (_, m) => (m == "Items") ? CreateErrorValue(runtime.GetType(typeof(Array)), "Function evaluation timed out") : null); var type = new DkmClrType(runtime, (TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var fullName = expression + ", dynamic"; var result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(result), EvalFailedResult(Resources.ErrorName, "Function evaluation timed out")); } [Fact] public void DynamicMetaObjectProviderDebugViewItemsException() { var expression = "o"; var fullName = expression + ", dynamic"; dynamic o = new ExpandoObject(); o.Answer = 42; DkmClrRuntimeInstance runtime = null; Func<DkmClrValue> getExceptionValue = () => CreateDkmClrValue(new NotImplementedException(), evalFlags: DkmEvaluationResultFlags.ExceptionThrown); runtime = new DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlib(), getMemberValue: (_, m) => (m == "Items") ? getExceptionValue() : null); var type = new DkmClrType(runtime, (TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); var members = GetChildren(result); Assert.Equal(32, members.Length); Verify(members[1], EvalResult("HResult", "-2147467263", "int", null, category: DkmEvaluationResultCategory.Property, access: DkmEvaluationResultAccessType.Public)); getExceptionValue = () => CreateDkmClrValue(new NotImplementedException()); result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); members = GetChildren(result); Assert.Equal(32, members.Length); Verify(members[1], EvalResult("HResult", "-2147467263", "int", "((System.Exception)new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items).HResult", category: DkmEvaluationResultCategory.Property, access: DkmEvaluationResultAccessType.Public)); } [Fact] public void DynamicFormatSpecifier() { var expression = "o"; dynamic o = new ExpandoObject(); o.Answer = 42; var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue((object)o, type); var fullName = expression + ", dynamic"; var result = FormatResult(expression, fullName, value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalResult(expression, Resources.DynamicViewValueWarning, "", fullName, DkmEvaluationResultFlags.Expandable | DkmEvaluationResultFlags.ReadOnly)); Verify(GetChildren(result), EvalResult("Answer", "42", "System.Int32", "new Microsoft.CSharp.RuntimeBinder.DynamicMetaObjectProviderDebugView(o).Items[0]", DkmEvaluationResultFlags.ReadOnly)); } [Fact] public void DynamicFormatSpecifierError() { var expression = "o"; var o = new Object(); var type = new DkmClrType((TypeImpl)o.GetType()); var value = CreateDkmClrValue(o, type); var result = FormatResult(expression, expression + ",dynamic", value, inspectionContext: CreateDkmInspectionContext(DkmEvaluationFlags.DynamicView)); Verify(result, EvalFailedResult(expression, Resources.DynamicViewNotDynamic)); } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Features/CSharp/Portable/Structure/Providers/BlockSyntaxStructureProvider.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 Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Collections; using Microsoft.CodeAnalysis.Structure; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.CSharp.Structure { internal class BlockSyntaxStructureProvider : AbstractSyntaxNodeStructureProvider<BlockSyntax> { protected override void CollectBlockSpans( SyntaxToken previousToken, BlockSyntax node, ref TemporaryArray<BlockSpan> spans, BlockStructureOptionProvider optionProvider, CancellationToken cancellationToken) { var parentKind = node.Parent.Kind(); // For most types of statements, just consider the block 'attached' to the // parent node. That means we'll show the parent node header when doing // things like hovering over the indent guide. // // This also works nicely as the close brace for these constructs will always // align with the start of these statements. if (IsNonBlockStatement(node.Parent) || parentKind == SyntaxKind.ElseClause) { var type = GetType(node.Parent); if (type != null) { spans.Add(new BlockSpan( isCollapsible: true, textSpan: GetTextSpan(node), hintSpan: GetHintSpan(node), type: type, autoCollapse: parentKind == SyntaxKind.LocalFunctionStatement && node.Parent.IsParentKind(SyntaxKind.GlobalStatement))); } } // Nested blocks aren't attached to anything. Just collapse them as is. // Switch sections are also special. Say you have the following: // // case 0: // { // // } // // We don't want to consider the block parented by the case, because // that would cause us to draw the following: // // case 0: // | { // | // | } // // Which would obviously be wonky. So in this case, we just use the // spanof the block alone, without consideration for the case clause. if (parentKind == SyntaxKind.Block || parentKind == SyntaxKind.SwitchSection) { var type = GetType(node.Parent); spans.Add(new BlockSpan( isCollapsible: true, textSpan: node.Span, hintSpan: node.Span, type: type)); } } private static bool IsNonBlockStatement(SyntaxNode node) => node is StatementSyntax && !node.IsKind(SyntaxKind.Block); private static TextSpan GetHintSpan(BlockSyntax node) { var parent = node.Parent; if (parent.IsKind(SyntaxKind.IfStatement) && parent.IsParentKind(SyntaxKind.ElseClause)) { parent = parent.Parent; } var start = parent.Span.Start; var end = GetEnd(node); return TextSpan.FromBounds(start, end); } private static TextSpan GetTextSpan(BlockSyntax node) { var previousToken = node.GetFirstToken().GetPreviousToken(); if (previousToken.IsKind(SyntaxKind.None)) { return node.Span; } return TextSpan.FromBounds(previousToken.Span.End, GetEnd(node)); } private static int GetEnd(BlockSyntax node) { if (node.Parent.IsKind(SyntaxKind.IfStatement)) { // For an if-statement, just collapse up to the end of the block. // We don't want collapse the whole statement just for the 'true' // portion. Also, while outlining might be ok, the Indent-Guide // would look very strange for nodes like: // // if (goo) // { // } // else // return a || // b; return node.Span.End; } else { // For all other constructs, we collapse up to the end of the parent // construct. return node.Parent.Span.End; } } private static string GetType(SyntaxNode parent) { switch (parent.Kind()) { case SyntaxKind.ForStatement: return BlockTypes.Loop; case SyntaxKind.ForEachStatement: return BlockTypes.Loop; case SyntaxKind.ForEachVariableStatement: return BlockTypes.Loop; case SyntaxKind.WhileStatement: return BlockTypes.Loop; case SyntaxKind.DoStatement: return BlockTypes.Loop; case SyntaxKind.TryStatement: return BlockTypes.Statement; case SyntaxKind.CatchClause: return BlockTypes.Statement; case SyntaxKind.FinallyClause: return BlockTypes.Statement; case SyntaxKind.UnsafeStatement: return BlockTypes.Statement; case SyntaxKind.FixedStatement: return BlockTypes.Statement; case SyntaxKind.LockStatement: return BlockTypes.Statement; case SyntaxKind.UsingStatement: return BlockTypes.Statement; case SyntaxKind.IfStatement: return BlockTypes.Conditional; case SyntaxKind.ElseClause: return BlockTypes.Conditional; case SyntaxKind.SwitchSection: return BlockTypes.Conditional; case SyntaxKind.Block: return BlockTypes.Statement; case SyntaxKind.LocalFunctionStatement: return BlockTypes.Statement; } 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. #nullable disable using System.Threading; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Collections; using Microsoft.CodeAnalysis.Structure; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.CSharp.Structure { internal class BlockSyntaxStructureProvider : AbstractSyntaxNodeStructureProvider<BlockSyntax> { protected override void CollectBlockSpans( SyntaxToken previousToken, BlockSyntax node, ref TemporaryArray<BlockSpan> spans, BlockStructureOptionProvider optionProvider, CancellationToken cancellationToken) { var parentKind = node.Parent.Kind(); // For most types of statements, just consider the block 'attached' to the // parent node. That means we'll show the parent node header when doing // things like hovering over the indent guide. // // This also works nicely as the close brace for these constructs will always // align with the start of these statements. if (IsNonBlockStatement(node.Parent) || parentKind == SyntaxKind.ElseClause) { var type = GetType(node.Parent); if (type != null) { spans.Add(new BlockSpan( isCollapsible: true, textSpan: GetTextSpan(node), hintSpan: GetHintSpan(node), type: type, autoCollapse: parentKind == SyntaxKind.LocalFunctionStatement && node.Parent.IsParentKind(SyntaxKind.GlobalStatement))); } } // Nested blocks aren't attached to anything. Just collapse them as is. // Switch sections are also special. Say you have the following: // // case 0: // { // // } // // We don't want to consider the block parented by the case, because // that would cause us to draw the following: // // case 0: // | { // | // | } // // Which would obviously be wonky. So in this case, we just use the // spanof the block alone, without consideration for the case clause. if (parentKind == SyntaxKind.Block || parentKind == SyntaxKind.SwitchSection) { var type = GetType(node.Parent); spans.Add(new BlockSpan( isCollapsible: true, textSpan: node.Span, hintSpan: node.Span, type: type)); } } private static bool IsNonBlockStatement(SyntaxNode node) => node is StatementSyntax && !node.IsKind(SyntaxKind.Block); private static TextSpan GetHintSpan(BlockSyntax node) { var parent = node.Parent; if (parent.IsKind(SyntaxKind.IfStatement) && parent.IsParentKind(SyntaxKind.ElseClause)) { parent = parent.Parent; } var start = parent.Span.Start; var end = GetEnd(node); return TextSpan.FromBounds(start, end); } private static TextSpan GetTextSpan(BlockSyntax node) { var previousToken = node.GetFirstToken().GetPreviousToken(); if (previousToken.IsKind(SyntaxKind.None)) { return node.Span; } return TextSpan.FromBounds(previousToken.Span.End, GetEnd(node)); } private static int GetEnd(BlockSyntax node) { if (node.Parent.IsKind(SyntaxKind.IfStatement)) { // For an if-statement, just collapse up to the end of the block. // We don't want collapse the whole statement just for the 'true' // portion. Also, while outlining might be ok, the Indent-Guide // would look very strange for nodes like: // // if (goo) // { // } // else // return a || // b; return node.Span.End; } else { // For all other constructs, we collapse up to the end of the parent // construct. return node.Parent.Span.End; } } private static string GetType(SyntaxNode parent) { switch (parent.Kind()) { case SyntaxKind.ForStatement: return BlockTypes.Loop; case SyntaxKind.ForEachStatement: return BlockTypes.Loop; case SyntaxKind.ForEachVariableStatement: return BlockTypes.Loop; case SyntaxKind.WhileStatement: return BlockTypes.Loop; case SyntaxKind.DoStatement: return BlockTypes.Loop; case SyntaxKind.TryStatement: return BlockTypes.Statement; case SyntaxKind.CatchClause: return BlockTypes.Statement; case SyntaxKind.FinallyClause: return BlockTypes.Statement; case SyntaxKind.UnsafeStatement: return BlockTypes.Statement; case SyntaxKind.FixedStatement: return BlockTypes.Statement; case SyntaxKind.LockStatement: return BlockTypes.Statement; case SyntaxKind.UsingStatement: return BlockTypes.Statement; case SyntaxKind.IfStatement: return BlockTypes.Conditional; case SyntaxKind.ElseClause: return BlockTypes.Conditional; case SyntaxKind.SwitchSection: return BlockTypes.Conditional; case SyntaxKind.Block: return BlockTypes.Statement; case SyntaxKind.LocalFunctionStatement: return BlockTypes.Statement; } return null; } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Collections/TemporaryArrayExtensions.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.Runtime.CompilerServices; namespace Microsoft.CodeAnalysis.Shared.Collections { internal static class TemporaryArrayExtensions { /// <summary> /// Gets a mutable reference to a <see cref="TemporaryArray{T}"/> stored in a <c>using</c> variable. /// </summary> /// <remarks> /// <para>This supporting method allows <see cref="TemporaryArray{T}"/>, a non-copyable <see langword="struct"/> /// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to /// be passed by reference in calls. The following two calls are equivalent:</para> /// /// <code> /// using var array = TemporaryArray&lt;T&gt;.Empty; /// /// // Using the 'Unsafe.AsRef' method /// Method(ref Unsafe.AsRef(in array)); /// /// // Using this helper method /// Method(ref array.AsRef()); /// </code> /// /// <para>⚠ Do not move or rename this method without updating the corresponding /// <see href="https://github.com/dotnet/roslyn-analyzers/blob/30180a51af8c4711e51d98df7345f14d083efb63/src/Roslyn.Diagnostics.Analyzers/Core/TemporaryArrayAsRefAnalyzer.cs">RS0049</see> /// analyzer.</para> /// </remarks> /// <typeparam name="T">The type of element stored in the temporary array.</typeparam> /// <param name="array">A read-only reference to a temporary array which is part of a <c>using</c> statement.</param> /// <returns>A mutable reference to the temporary array.</returns> public static ref TemporaryArray<T> AsRef<T>(this in TemporaryArray<T> array) => ref Unsafe.AsRef(in array); public static bool Any<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) { foreach (var item in array) { if (predicate(item)) return true; } return false; } public static bool All<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) { foreach (var item in array) { if (!predicate(item)) return false; } return true; } public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value) where T : struct { if (value is not null) { array.Add(value.Value); } } public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value) where T : class { if (value is not null) { array.Add(value); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Runtime.CompilerServices; namespace Microsoft.CodeAnalysis.Shared.Collections { internal static class TemporaryArrayExtensions { /// <summary> /// Gets a mutable reference to a <see cref="TemporaryArray{T}"/> stored in a <c>using</c> variable. /// </summary> /// <remarks> /// <para>This supporting method allows <see cref="TemporaryArray{T}"/>, a non-copyable <see langword="struct"/> /// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to /// be passed by reference in calls. The following two calls are equivalent:</para> /// /// <code> /// using var array = TemporaryArray&lt;T&gt;.Empty; /// /// // Using the 'Unsafe.AsRef' method /// Method(ref Unsafe.AsRef(in array)); /// /// // Using this helper method /// Method(ref array.AsRef()); /// </code> /// /// <para>⚠ Do not move or rename this method without updating the corresponding /// <see href="https://github.com/dotnet/roslyn-analyzers/blob/30180a51af8c4711e51d98df7345f14d083efb63/src/Roslyn.Diagnostics.Analyzers/Core/TemporaryArrayAsRefAnalyzer.cs">RS0049</see> /// analyzer.</para> /// </remarks> /// <typeparam name="T">The type of element stored in the temporary array.</typeparam> /// <param name="array">A read-only reference to a temporary array which is part of a <c>using</c> statement.</param> /// <returns>A mutable reference to the temporary array.</returns> public static ref TemporaryArray<T> AsRef<T>(this in TemporaryArray<T> array) => ref Unsafe.AsRef(in array); public static bool Any<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) { foreach (var item in array) { if (predicate(item)) return true; } return false; } public static bool All<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) { foreach (var item in array) { if (!predicate(item)) return false; } return true; } public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value) where T : struct { if (value is not null) { array.Add(value.Value); } } public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value) where T : class { if (value is not null) { array.Add(value); } } } }
-1
dotnet/roslyn
55,962
Inline Hints: Removed experimental from the title
akhera99
"2021-08-27T16:47:40Z"
"2021-08-27T19:59:35Z"
9faa78ee058ec6b4f2bea1f2d0556f7ebe8b3c19
152b6cc6a8b7fb696d89757528cc4e534ff94d8f
Inline Hints: Removed experimental from the title.
./src/VisualStudio/CSharp/Test/CallHierarchy/CSharpCallHierarchyTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Linq; using Microsoft.CodeAnalysis.Editor.UnitTests.CallHierarchy; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CallHierarchy { [UseExportProvider] public class CSharpCallHierarchyTests { [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void InvokeOnMethod() { var text = @" namespace N { class C { void G$$oo() { } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()"); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void InvokeOnProperty() { var text = @" namespace N { class C { public int G$$oo { get; set;} } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo"); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void InvokeOnEvent() { var text = @" using System; namespace N { class C { public event EventHandler Go$$o; } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo"); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Method_FindCalls() { var text = @" namespace N { class C { void G$$oo() { } } class G { void Main() { var c = new C(); c.Goo(); } void Main2() { var c = new C(); c.Goo(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.G.Main()", "N.G.Main2()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Method_InterfaceImplementation() { var text = @" namespace N { interface I { void Goo(); } class C : I { public void G$$oo() { } } class G { void Main() { I c = new C(); c.Goo(); } void Main2() { var c = new C(); c.Goo(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, "N.I.Goo()") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.G.Main2()" }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, "N.I.Goo()"), new[] { "N.G.Main()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Method_CallToOverride() { var text = @" namespace N { class C { protected virtual void G$$oo() { } } class D : C { protected override void Goo() { } void Bar() { C c; c.Goo() } void Baz() { D d; d.Goo(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), EditorFeaturesResources.Calls_To_Overrides }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.D.Bar()" }); testState.VerifyResult(root, EditorFeaturesResources.Calls_To_Overrides, new[] { "N.D.Baz()" }); } [WpfFact, WorkItem(829705, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/829705"), Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Method_CallToBase() { var text = @" namespace N { class C { protected virtual void Goo() { } } class D : C { protected override void Goo() { } void Bar() { C c; c.Goo() } void Baz() { D d; d.Go$$o(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.D.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, "N.C.Goo()") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.D.Baz()" }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, "N.C.Goo()"), new[] { "N.D.Bar()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void FieldInitializers() { var text = @" namespace N { class C { public int goo = Goo(); protected int Goo$$() { return 0; } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo") }); testState.VerifyResultName(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { EditorFeaturesResources.Initializers }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void FieldReferences() { var text = @" namespace N { class C { public int g$$oo = Goo(); protected int Goo() { goo = 3; } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.goo", new[] { string.Format(EditorFeaturesResources.References_To_Field_0, "goo") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.References_To_Field_0, "goo"), new[] { "N.C.Goo()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void PropertyGet() { var text = @" namespace N { class C { public int val { g$$et { return 0; } } public int goo() { var x = this.val; } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.val.get", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "get_val") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "get_val"), new[] { "N.C.goo()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Generic() { var text = @" namespace N { class C { public int gen$$eric<T>(this string generic, ref T stuff) { return 0; } public int goo() { int i; generic("", ref i); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.generic<T>(this string, ref T)", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "generic") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "generic"), new[] { "N.C.goo()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void ExtensionMethods() { var text = @" namespace ConsoleApplication10 { class Program { static void Main(string[] args) { var x = ""string""; x.BarStr$$ing(); } } public static class Extensions { public static string BarString(this string s) { return s; } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "ConsoleApplication10.Extensions.BarString(this string)", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "BarString") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "BarString"), new[] { "ConsoleApplication10.Program.Main(string[])" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void GenericExtensionMethods() { var text = @" using System.Collections.Generic; using System.Linq; namespace N { class Program { static void Main(string[] args) { List<int> x = new List<int>(); var z = x.Si$$ngle(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "System.Linq.Enumerable.Single<TSource>(this System.Collections.Generic.IEnumerable<TSource>)", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Single") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Single"), new[] { "N.Program.Main(string[])" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void InterfaceImplementors() { var text = @" namespace N { interface I { void Go$$o(); } class C : I { public async Task Goo() { } } class G { void Main() { I c = new C(); c.Goo(); } void Main2() { var c = new C(); c.Goo(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.I.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Implements_0, "Goo") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.G.Main()" }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Implements_0, "Goo"), new[] { "N.C.Goo()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void NoFindOverridesOnSealedMethod() { var text = @" namespace N { class C { void G$$oo() { } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); Assert.DoesNotContain("Overrides", root.SupportedSearchCategories.Select(s => s.DisplayName)); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void FindOverrides() { var text = @" namespace N { class C { public virtual void G$$oo() { } } class G : C { public override void Goo() { } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), EditorFeaturesResources.Overrides_ }); testState.VerifyResult(root, EditorFeaturesResources.Overrides_, new[] { "N.G.Goo()" }); } [WorkItem(844613, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/844613")] [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void AbstractMethodInclusionToOverrides() { var text = @" using System; abstract class Base { public abstract void $$M(); } class Derived : Base { public override void M() { throw new NotImplementedException(); } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "Base.M()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "M"), EditorFeaturesResources.Overrides_, EditorFeaturesResources.Calls_To_Overrides }); testState.VerifyResult(root, EditorFeaturesResources.Overrides_, new[] { "Derived.M()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void SearchAfterEditWorks() { var text = @" namespace N { class C { void G$$oo() { } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.Workspace.Documents.Single().GetTextBuffer().Insert(0, "/* hello */"); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), expectedCallers: new[] { "N.C.Goo()" }); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Linq; using Microsoft.CodeAnalysis.Editor.UnitTests.CallHierarchy; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CallHierarchy { [UseExportProvider] public class CSharpCallHierarchyTests { [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void InvokeOnMethod() { var text = @" namespace N { class C { void G$$oo() { } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()"); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void InvokeOnProperty() { var text = @" namespace N { class C { public int G$$oo { get; set;} } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo"); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void InvokeOnEvent() { var text = @" using System; namespace N { class C { public event EventHandler Go$$o; } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo"); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Method_FindCalls() { var text = @" namespace N { class C { void G$$oo() { } } class G { void Main() { var c = new C(); c.Goo(); } void Main2() { var c = new C(); c.Goo(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.G.Main()", "N.G.Main2()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Method_InterfaceImplementation() { var text = @" namespace N { interface I { void Goo(); } class C : I { public void G$$oo() { } } class G { void Main() { I c = new C(); c.Goo(); } void Main2() { var c = new C(); c.Goo(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, "N.I.Goo()") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.G.Main2()" }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, "N.I.Goo()"), new[] { "N.G.Main()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Method_CallToOverride() { var text = @" namespace N { class C { protected virtual void G$$oo() { } } class D : C { protected override void Goo() { } void Bar() { C c; c.Goo() } void Baz() { D d; d.Goo(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), EditorFeaturesResources.Calls_To_Overrides }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.D.Bar()" }); testState.VerifyResult(root, EditorFeaturesResources.Calls_To_Overrides, new[] { "N.D.Baz()" }); } [WpfFact, WorkItem(829705, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/829705"), Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Method_CallToBase() { var text = @" namespace N { class C { protected virtual void Goo() { } } class D : C { protected override void Goo() { } void Bar() { C c; c.Goo() } void Baz() { D d; d.Go$$o(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.D.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, "N.C.Goo()") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.D.Baz()" }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, "N.C.Goo()"), new[] { "N.D.Bar()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void FieldInitializers() { var text = @" namespace N { class C { public int goo = Goo(); protected int Goo$$() { return 0; } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo") }); testState.VerifyResultName(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { EditorFeaturesResources.Initializers }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void FieldReferences() { var text = @" namespace N { class C { public int g$$oo = Goo(); protected int Goo() { goo = 3; } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.goo", new[] { string.Format(EditorFeaturesResources.References_To_Field_0, "goo") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.References_To_Field_0, "goo"), new[] { "N.C.Goo()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void PropertyGet() { var text = @" namespace N { class C { public int val { g$$et { return 0; } } public int goo() { var x = this.val; } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.val.get", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "get_val") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "get_val"), new[] { "N.C.goo()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void Generic() { var text = @" namespace N { class C { public int gen$$eric<T>(this string generic, ref T stuff) { return 0; } public int goo() { int i; generic("", ref i); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.generic<T>(this string, ref T)", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "generic") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "generic"), new[] { "N.C.goo()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void ExtensionMethods() { var text = @" namespace ConsoleApplication10 { class Program { static void Main(string[] args) { var x = ""string""; x.BarStr$$ing(); } } public static class Extensions { public static string BarString(this string s) { return s; } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "ConsoleApplication10.Extensions.BarString(this string)", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "BarString") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "BarString"), new[] { "ConsoleApplication10.Program.Main(string[])" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void GenericExtensionMethods() { var text = @" using System.Collections.Generic; using System.Linq; namespace N { class Program { static void Main(string[] args) { List<int> x = new List<int>(); var z = x.Si$$ngle(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "System.Linq.Enumerable.Single<TSource>(this System.Collections.Generic.IEnumerable<TSource>)", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Single") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Single"), new[] { "N.Program.Main(string[])" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void InterfaceImplementors() { var text = @" namespace N { interface I { void Go$$o(); } class C : I { public async Task Goo() { } } class G { void Main() { I c = new C(); c.Goo(); } void Main2() { var c = new C(); c.Goo(); } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.I.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Implements_0, "Goo") }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), new[] { "N.G.Main()" }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Implements_0, "Goo"), new[] { "N.C.Goo()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void NoFindOverridesOnSealedMethod() { var text = @" namespace N { class C { void G$$oo() { } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); Assert.DoesNotContain("Overrides", root.SupportedSearchCategories.Select(s => s.DisplayName)); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void FindOverrides() { var text = @" namespace N { class C { public virtual void G$$oo() { } } class G : C { public override void Goo() { } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), EditorFeaturesResources.Overrides_ }); testState.VerifyResult(root, EditorFeaturesResources.Overrides_, new[] { "N.G.Goo()" }); } [WorkItem(844613, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/844613")] [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void AbstractMethodInclusionToOverrides() { var text = @" using System; abstract class Base { public abstract void $$M(); } class Derived : Base { public override void M() { throw new NotImplementedException(); } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.VerifyRoot(root, "Base.M()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "M"), EditorFeaturesResources.Overrides_, EditorFeaturesResources.Calls_To_Overrides }); testState.VerifyResult(root, EditorFeaturesResources.Overrides_, new[] { "Derived.M()" }); } [WpfFact, Trait(Traits.Feature, Traits.Features.CallHierarchy)] public void SearchAfterEditWorks() { var text = @" namespace N { class C { void G$$oo() { } } }"; using var testState = CallHierarchyTestState.Create(text); var root = testState.GetRoot(); testState.Workspace.Documents.Single().GetTextBuffer().Insert(0, "/* hello */"); testState.VerifyRoot(root, "N.C.Goo()", new[] { string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), }); testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), expectedCallers: new[] { "N.C.Goo()" }); } } }
-1