diff --git a/src/Analyzers/CSharp/Analyzers/CSharpAnalyzers.projitems b/src/Analyzers/CSharp/Analyzers/CSharpAnalyzers.projitems index a0daa8583c4b0..05f69672b060e 100644 --- a/src/Analyzers/CSharp/Analyzers/CSharpAnalyzers.projitems +++ b/src/Analyzers/CSharp/Analyzers/CSharpAnalyzers.projitems @@ -16,6 +16,8 @@ + + diff --git a/src/Features/CSharp/Portable/FileHeaders/CSharpFileHeaderDiagnosticAnalyzer.cs b/src/Analyzers/CSharp/Analyzers/FileHeaders/CSharpFileHeaderDiagnosticAnalyzer.cs similarity index 100% rename from src/Features/CSharp/Portable/FileHeaders/CSharpFileHeaderDiagnosticAnalyzer.cs rename to src/Analyzers/CSharp/Analyzers/FileHeaders/CSharpFileHeaderDiagnosticAnalyzer.cs diff --git a/src/Features/CSharp/Portable/FileHeaders/CSharpFileHeaderHelper.cs b/src/Analyzers/CSharp/Analyzers/FileHeaders/CSharpFileHeaderHelper.cs similarity index 100% rename from src/Features/CSharp/Portable/FileHeaders/CSharpFileHeaderHelper.cs rename to src/Analyzers/CSharp/Analyzers/FileHeaders/CSharpFileHeaderHelper.cs diff --git a/src/Analyzers/CSharp/CodeFixes/CSharpCodeFixes.projitems b/src/Analyzers/CSharp/CodeFixes/CSharpCodeFixes.projitems index ff21fe197a68a..6b40477ffcccf 100644 --- a/src/Analyzers/CSharp/CodeFixes/CSharpCodeFixes.projitems +++ b/src/Analyzers/CSharp/CodeFixes/CSharpCodeFixes.projitems @@ -15,6 +15,7 @@ + diff --git a/src/Features/CSharp/Portable/FileHeaders/CSharpFileHeaderCodeFixProvider.cs b/src/Analyzers/CSharp/CodeFixes/FileHeaders/CSharpFileHeaderCodeFixProvider.cs similarity index 91% rename from src/Features/CSharp/Portable/FileHeaders/CSharpFileHeaderCodeFixProvider.cs rename to src/Analyzers/CSharp/CodeFixes/FileHeaders/CSharpFileHeaderCodeFixProvider.cs index 7e503d23501f3..c2b3faf2ca090 100644 --- a/src/Features/CSharp/Portable/FileHeaders/CSharpFileHeaderCodeFixProvider.cs +++ b/src/Analyzers/CSharp/CodeFixes/FileHeaders/CSharpFileHeaderCodeFixProvider.cs @@ -29,5 +29,8 @@ public CSharpFileHeaderCodeFixProvider() protected override ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance; protected override ISyntaxKinds SyntaxKinds => CSharpSyntaxKinds.Instance; + + protected override SyntaxTrivia EndOfLine(string text) + => SyntaxFactory.EndOfLine(text); } } diff --git a/src/Analyzers/CSharp/Tests/CSharpAnalyzers.UnitTests.projitems b/src/Analyzers/CSharp/Tests/CSharpAnalyzers.UnitTests.projitems index 34630ce65a34d..23183ff293980 100644 --- a/src/Analyzers/CSharp/Tests/CSharpAnalyzers.UnitTests.projitems +++ b/src/Analyzers/CSharp/Tests/CSharpAnalyzers.UnitTests.projitems @@ -11,6 +11,7 @@ + diff --git a/src/EditorFeatures/CSharpTest/FileHeaders/FileHeaderTests.cs b/src/Analyzers/CSharp/Tests/FileHeaders/FileHeaderTests.cs similarity index 100% rename from src/EditorFeatures/CSharpTest/FileHeaders/FileHeaderTests.cs rename to src/Analyzers/CSharp/Tests/FileHeaders/FileHeaderTests.cs diff --git a/src/Analyzers/Core/Analyzers/Analyzers.projitems b/src/Analyzers/Core/Analyzers/Analyzers.projitems index 33f73b0e62500..b1969313177a0 100644 --- a/src/Analyzers/Core/Analyzers/Analyzers.projitems +++ b/src/Analyzers/Core/Analyzers/Analyzers.projitems @@ -19,6 +19,9 @@ + + + diff --git a/src/Analyzers/Core/Analyzers/AnalyzersResources.resx b/src/Analyzers/Core/Analyzers/AnalyzersResources.resx index 0ddffa6b4e72b..4800a5022cb3e 100644 --- a/src/Analyzers/Core/Analyzers/AnalyzersResources.resx +++ b/src/Analyzers/Core/Analyzers/AnalyzersResources.resx @@ -141,4 +141,16 @@ Private property '{0}' can be converted to a method as its get accessor is never invoked. + + A source file is missing a required header. + + + The file header is missing or not located at the top of the file + + + A source file contains a header that does not match the required text + + + The file header does not match the required text + \ No newline at end of file diff --git a/src/Features/Core/Portable/FileHeaders/AbstractFileHeaderDiagnosticAnalyzer.cs b/src/Analyzers/Core/Analyzers/FileHeaders/AbstractFileHeaderDiagnosticAnalyzer.cs similarity index 83% rename from src/Features/Core/Portable/FileHeaders/AbstractFileHeaderDiagnosticAnalyzer.cs rename to src/Analyzers/Core/Analyzers/FileHeaders/AbstractFileHeaderDiagnosticAnalyzer.cs index d0dca9e4e1070..fba3bfd8bafca 100644 --- a/src/Features/Core/Portable/FileHeaders/AbstractFileHeaderDiagnosticAnalyzer.cs +++ b/src/Analyzers/Core/Analyzers/FileHeaders/AbstractFileHeaderDiagnosticAnalyzer.cs @@ -9,6 +9,10 @@ using Microsoft.CodeAnalysis.Diagnostics; using Roslyn.Utilities; +#if CODE_STYLE +using Microsoft.CodeAnalysis.Internal.Options; +#endif + namespace Microsoft.CodeAnalysis.FileHeaders { internal abstract class AbstractFileHeaderDiagnosticAnalyzer : AbstractBuiltInCodeStyleDiagnosticAnalyzer @@ -18,13 +22,13 @@ protected AbstractFileHeaderDiagnosticAnalyzer(string language) IDEDiagnosticIds.FileHeaderMismatch, CodeStyleOptions.FileHeaderTemplate, language, - new LocalizableResourceString(nameof(FeaturesResources.The_file_header_is_missing_or_not_located_at_the_top_of_the_file), FeaturesResources.ResourceManager, typeof(FeaturesResources)), - new LocalizableResourceString(nameof(FeaturesResources.A_source_file_is_missing_a_required_header), FeaturesResources.ResourceManager, typeof(FeaturesResources))) + new LocalizableResourceString(nameof(AnalyzersResources.The_file_header_is_missing_or_not_located_at_the_top_of_the_file), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)), + new LocalizableResourceString(nameof(AnalyzersResources.A_source_file_is_missing_a_required_header), AnalyzersResources.ResourceManager, typeof(AnalyzersResources))) { RoslynDebug.AssertNotNull(DescriptorId); - var invalidHeaderTitle = new LocalizableResourceString(nameof(FeaturesResources.The_file_header_does_not_match_the_required_text), FeaturesResources.ResourceManager, typeof(FeaturesResources)); - var invalidHeaderMessage = new LocalizableResourceString(nameof(FeaturesResources.A_source_file_contains_a_header_that_does_not_match_the_required_text), FeaturesResources.ResourceManager, typeof(FeaturesResources)); + var invalidHeaderTitle = new LocalizableResourceString(nameof(AnalyzersResources.The_file_header_does_not_match_the_required_text), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); + var invalidHeaderMessage = new LocalizableResourceString(nameof(AnalyzersResources.A_source_file_contains_a_header_that_does_not_match_the_required_text), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); InvalidHeaderDescriptor = CreateDescriptorWithId(DescriptorId, invalidHeaderTitle, invalidHeaderMessage); } diff --git a/src/Features/Core/Portable/FileHeaders/AbstractFileHeaderHelper.cs b/src/Analyzers/Core/Analyzers/FileHeaders/AbstractFileHeaderHelper.cs similarity index 100% rename from src/Features/Core/Portable/FileHeaders/AbstractFileHeaderHelper.cs rename to src/Analyzers/Core/Analyzers/FileHeaders/AbstractFileHeaderHelper.cs diff --git a/src/Features/Core/Portable/FileHeaders/FileHeader.cs b/src/Analyzers/Core/Analyzers/FileHeaders/FileHeader.cs similarity index 100% rename from src/Features/Core/Portable/FileHeaders/FileHeader.cs rename to src/Analyzers/Core/Analyzers/FileHeaders/FileHeader.cs diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.cs.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.cs.xlf index 7551a41f25c40..5bdbc9c651e38 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.cs.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.cs.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.de.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.de.xlf index 90e17712ebe01..e0e4bb6a9c72d 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.de.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.de.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.es.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.es.xlf index ae2b01e65e225..8a916543f26bb 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.es.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.es.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.fr.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.fr.xlf index f1987d55d2977..c3a164a05b53a 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.fr.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.fr.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.it.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.it.xlf index 65612c5b1ee13..b3e51ba84d7c6 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.it.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.it.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ja.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ja.xlf index f31f5aca28381..a4b926de64aa0 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ja.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ja.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ko.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ko.xlf index 134b80ab61490..0ae6c9643ac55 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ko.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ko.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.pl.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.pl.xlf index 0e6d26d95637c..50d5fa1bd2a48 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.pl.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.pl.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.pt-BR.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.pt-BR.xlf index ee7e9b70bb9be..f0e1f46ddbc10 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.pt-BR.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.pt-BR.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ru.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ru.xlf index 0283cafca9171..1169e4885b72e 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ru.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.ru.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.tr.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.tr.xlf index a5b44ad538b3c..0c58a4c04f761 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.tr.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.tr.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.zh-Hans.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.zh-Hans.xlf index 16d5037c46053..697d2ca5a4248 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.zh-Hans.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.zh-Hans.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.zh-Hant.xlf b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.zh-Hant.xlf index 5d4ebb95d01da..35e4370627bf5 100644 --- a/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.zh-Hant.xlf +++ b/src/Analyzers/Core/Analyzers/xlf/AnalyzersResources.zh-Hant.xlf @@ -2,6 +2,16 @@ + + A source file contains a header that does not match the required text + A source file contains a header that does not match the required text + + + + A source file is missing a required header. + A source file is missing a required header. + + Private member '{0}' can be removed as the value assigned to it is never read. Private member '{0}' can be removed as the value assigned to it is never read. @@ -42,6 +52,16 @@ Remove unused private members + + The file header does not match the required text + The file header does not match the required text + + + + The file header is missing or not located at the top of the file + The file header is missing or not located at the top of the file + + \ No newline at end of file diff --git a/src/Analyzers/Core/CodeFixes/CodeFixes.projitems b/src/Analyzers/Core/CodeFixes/CodeFixes.projitems index 0259e8dc048d3..a28d70f923603 100644 --- a/src/Analyzers/Core/CodeFixes/CodeFixes.projitems +++ b/src/Analyzers/Core/CodeFixes/CodeFixes.projitems @@ -13,6 +13,7 @@ + diff --git a/src/Analyzers/Core/CodeFixes/CodeFixesResources.resx b/src/Analyzers/Core/CodeFixes/CodeFixesResources.resx index 14ed010cf9ebb..b60db1f867288 100644 --- a/src/Analyzers/Core/CodeFixes/CodeFixesResources.resx +++ b/src/Analyzers/Core/CodeFixes/CodeFixesResources.resx @@ -117,8 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner \ No newline at end of file diff --git a/src/Features/Core/Portable/FileHeaders/AbstractFileHeaderCodeFixProvider.cs b/src/Analyzers/Core/CodeFixes/FileHeaders/AbstractFileHeaderCodeFixProvider.cs similarity index 93% rename from src/Features/Core/Portable/FileHeaders/AbstractFileHeaderCodeFixProvider.cs rename to src/Analyzers/Core/CodeFixes/FileHeaders/AbstractFileHeaderCodeFixProvider.cs index 84a0068c78efb..75721c785b3a2 100644 --- a/src/Features/Core/Portable/FileHeaders/AbstractFileHeaderCodeFixProvider.cs +++ b/src/Analyzers/Core/CodeFixes/FileHeaders/AbstractFileHeaderCodeFixProvider.cs @@ -15,12 +15,15 @@ using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CodeStyle; using Microsoft.CodeAnalysis.Diagnostics; -using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; +#if CODE_STYLE +using CodeStyleOptions = Microsoft.CodeAnalysis.Internal.Options.CodeStyleOptions; +#endif + namespace Microsoft.CodeAnalysis.FileHeaders { internal abstract class AbstractFileHeaderCodeFixProvider : CodeFixProvider @@ -29,6 +32,8 @@ internal abstract class AbstractFileHeaderCodeFixProvider : CodeFixProvider protected abstract ISyntaxFacts SyntaxFacts { get; } protected abstract ISyntaxKinds SyntaxKinds { get; } + protected abstract SyntaxTrivia EndOfLine(string text); + public override ImmutableArray FixableDiagnosticIds { get; } = ImmutableArray.Create(IDEDiagnosticIds.FileHeaderMismatch); @@ -153,8 +158,12 @@ private SyntaxNode ReplaceHeader(Document document, SyntaxNode root, string expe triviaList = triviaList.RemoveAt(removalList[i]); } +#if CODE_STYLE + var newLineText = Environment.NewLine; +#else var newLineText = document.Project.Solution.Options.GetOption(FormattingOptions.NewLine, root.Language); - var newLineTrivia = SyntaxGenerator.GetGenerator(document).EndOfLine(newLineText); +#endif + var newLineTrivia = EndOfLine(newLineText); var newHeaderTrivia = CreateNewHeader(leadingSpaces + FileHeaderHelper.CommentPrefix, expectedFileHeader, newLineText); @@ -167,8 +176,12 @@ private SyntaxNode ReplaceHeader(Document document, SyntaxNode root, string expe private SyntaxNode AddHeader(Document document, SyntaxNode root, string expectedFileHeader) { +#if CODE_STYLE + var newLineText = Environment.NewLine; +#else var newLineText = document.Project.Solution.Options.GetOption(FormattingOptions.NewLine, root.Language); - var newLineTrivia = SyntaxGenerator.GetGenerator(document).EndOfLine(newLineText); +#endif + var newLineTrivia = EndOfLine(newLineText); var newTrivia = CreateNewHeader(FileHeaderHelper.CommentPrefix, expectedFileHeader, newLineText).Add(newLineTrivia).Add(newLineTrivia); // Skip blank lines already at the beginning of the document, since we add our own @@ -220,10 +233,10 @@ private static string GetCopyrightText(string prefixWithLeadingSpaces, string co })); } - private class MyCodeAction : CodeAction.DocumentChangeAction + private class MyCodeAction : CustomCodeActions.DocumentChangeAction { public MyCodeAction(Func> createChangedDocument) - : base(FeaturesResources.Add_file_banner, createChangedDocument, nameof(AbstractFileHeaderCodeFixProvider)) + : base(CodeFixesResources.Add_file_banner, createChangedDocument, nameof(AbstractFileHeaderCodeFixProvider)) { } } @@ -237,7 +250,7 @@ public FixAll(AbstractFileHeaderCodeFixProvider codeFixProvider) _codeFixProvider = codeFixProvider; } - protected override string CodeActionTitle => FeaturesResources.Add_file_banner; + protected override string CodeActionTitle => CodeFixesResources.Add_file_banner; protected override Task FixAllInDocumentAsync(FixAllContext fixAllContext, Document document, ImmutableArray diagnostics) { diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.cs.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.cs.xlf index 08fd37ac08a65..387a83f43f343 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.cs.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.cs.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Přidat banner souboru + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.de.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.de.xlf index 89d7bb166f5b8..ad073a20f178b 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.de.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.de.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Dateibanner hinzufügen + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.es.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.es.xlf index 7c7c5d57de9fe..17afe93e370a8 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.es.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.es.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Agregar pancarta de archivo + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.fr.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.fr.xlf index f169d316bebe3..976214dc107a4 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.fr.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.fr.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Bannière d'ajout de fichier + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.it.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.it.xlf index 03de153afe9a5..ea6297384ec8f 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.it.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.it.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Aggiungi intestazione del file + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ja.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ja.xlf index 24a0c411e4c5f..92554c0e8c765 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ja.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ja.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + ファイルのバナーを追加します + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ko.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ko.xlf index 62c1d9efa8c4d..b1adb8459a583 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ko.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ko.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + 파일 배너 추가 + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.pl.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.pl.xlf index 0ffdb4a6a7395..0a6add0ae7a48 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.pl.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.pl.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Dodaj transparent pliku + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.pt-BR.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.pt-BR.xlf index 7a1ed913b6dfc..705ac6e6bfd72 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.pt-BR.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.pt-BR.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Adicionar faixa de arquivo + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ru.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ru.xlf index 4e2bbf1d122a0..f42461def3e6c 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ru.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.ru.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Добавьте заголовок файла + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.tr.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.tr.xlf index 44a135a6c7120..ca56f7f47446e 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.tr.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.tr.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + Dosya başlığı ekle + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.zh-Hans.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.zh-Hans.xlf index 23c025e1affe0..65ef88c56cb44 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.zh-Hans.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.zh-Hans.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + 添加文件横幅 + diff --git a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.zh-Hant.xlf b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.zh-Hant.xlf index c936aaab6ac7c..a857aa5924470 100644 --- a/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.zh-Hant.xlf +++ b/src/Analyzers/Core/CodeFixes/xlf/CodeFixesResources.zh-Hant.xlf @@ -2,10 +2,10 @@ - - Remove this value when another is added. - Remove this value when another is added. - https://github.com/Microsoft/msbuild/issues/1661 + + Add file banner + 新增檔案橫幅 + diff --git a/src/Features/VisualBasic/Portable/FileHeaders/VisualBasicFileHeaderDiagnosticAnalyzer.vb b/src/Analyzers/VisualBasic/Analyzers/FileHeaders/VisualBasicFileHeaderDiagnosticAnalyzer.vb similarity index 100% rename from src/Features/VisualBasic/Portable/FileHeaders/VisualBasicFileHeaderDiagnosticAnalyzer.vb rename to src/Analyzers/VisualBasic/Analyzers/FileHeaders/VisualBasicFileHeaderDiagnosticAnalyzer.vb diff --git a/src/Features/VisualBasic/Portable/FileHeaders/VisualBasicFileHeaderHelper.vb b/src/Analyzers/VisualBasic/Analyzers/FileHeaders/VisualBasicFileHeaderHelper.vb similarity index 100% rename from src/Features/VisualBasic/Portable/FileHeaders/VisualBasicFileHeaderHelper.vb rename to src/Analyzers/VisualBasic/Analyzers/FileHeaders/VisualBasicFileHeaderHelper.vb diff --git a/src/Analyzers/VisualBasic/Analyzers/VisualBasicAnalyzers.projitems b/src/Analyzers/VisualBasic/Analyzers/VisualBasicAnalyzers.projitems index 682c0a1738426..38750006f633f 100644 --- a/src/Analyzers/VisualBasic/Analyzers/VisualBasicAnalyzers.projitems +++ b/src/Analyzers/VisualBasic/Analyzers/VisualBasicAnalyzers.projitems @@ -13,6 +13,8 @@ + + diff --git a/src/Features/VisualBasic/Portable/FileHeaders/VisualBasicFileHeaderCodeFixProvider.vb b/src/Analyzers/VisualBasic/CodeFixes/FileHeaders/VisualBasicFileHeaderCodeFixProvider.vb similarity index 90% rename from src/Features/VisualBasic/Portable/FileHeaders/VisualBasicFileHeaderCodeFixProvider.vb rename to src/Analyzers/VisualBasic/CodeFixes/FileHeaders/VisualBasicFileHeaderCodeFixProvider.vb index c15b44b8649b6..4aeba5f0ab6bc 100644 --- a/src/Features/VisualBasic/Portable/FileHeaders/VisualBasicFileHeaderCodeFixProvider.vb +++ b/src/Analyzers/VisualBasic/CodeFixes/FileHeaders/VisualBasicFileHeaderCodeFixProvider.vb @@ -35,5 +35,9 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.FileHeaders Return VisualBasicSyntaxKinds.Instance End Get End Property + + Protected Overrides Function EndOfLine(text As String) As SyntaxTrivia + Return SyntaxFactory.EndOfLine(text) + End Function End Class End Namespace diff --git a/src/Analyzers/VisualBasic/CodeFixes/VisualBasicCodeFixes.projitems b/src/Analyzers/VisualBasic/CodeFixes/VisualBasicCodeFixes.projitems index 7b6d4741730bd..a0c3e0cf51759 100644 --- a/src/Analyzers/VisualBasic/CodeFixes/VisualBasicCodeFixes.projitems +++ b/src/Analyzers/VisualBasic/CodeFixes/VisualBasicCodeFixes.projitems @@ -13,6 +13,7 @@ + diff --git a/src/EditorFeatures/VisualBasicTest/FileHeaders/FileHeaderTests.vb b/src/Analyzers/VisualBasic/Tests/FileHeaders/FileHeaderTests.vb similarity index 100% rename from src/EditorFeatures/VisualBasicTest/FileHeaders/FileHeaderTests.vb rename to src/Analyzers/VisualBasic/Tests/FileHeaders/FileHeaderTests.vb diff --git a/src/Analyzers/VisualBasic/Tests/VisualBasicAnalyzers.UnitTests.projitems b/src/Analyzers/VisualBasic/Tests/VisualBasicAnalyzers.UnitTests.projitems index 0037429236262..04265ec40e146 100644 --- a/src/Analyzers/VisualBasic/Tests/VisualBasicAnalyzers.UnitTests.projitems +++ b/src/Analyzers/VisualBasic/Tests/VisualBasicAnalyzers.UnitTests.projitems @@ -9,6 +9,7 @@ Microsoft.CodeAnalysis.VisualBasic.Analyzers.UnitTests + diff --git a/src/Features/Core/Portable/AddFileBanner/AbstractAddFileBannerCodeRefactoringProvider.cs b/src/Features/Core/Portable/AddFileBanner/AbstractAddFileBannerCodeRefactoringProvider.cs index 79d3c20cacf21..92fac9433969f 100644 --- a/src/Features/Core/Portable/AddFileBanner/AbstractAddFileBannerCodeRefactoringProvider.cs +++ b/src/Features/Core/Portable/AddFileBanner/AbstractAddFileBannerCodeRefactoringProvider.cs @@ -152,7 +152,7 @@ private async Task> TryGetBannerAsync( private class MyCodeAction : CodeAction.DocumentChangeAction { public MyCodeAction(Func> createChangedDocument) - : base(FeaturesResources.Add_file_banner, createChangedDocument) + : base(CodeFixesResources.Add_file_banner, createChangedDocument) { } } diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index 33c35c6d6aa6b..5e68430010c33 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1295,9 +1295,6 @@ This version used in: {2} Remove unnecessary parentheses - - Add file banner - Warning: Method overrides symbol from metadata @@ -1748,16 +1745,4 @@ This version used in: {2} Base classes contain inaccessible unimplemented members - - A source file is missing a required header. - - - The file header is missing or not located at the top of the file - - - A source file contains a header that does not match the required text - - - The file header does not match the required text - \ No newline at end of file diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf index 64f8c89649160..2d5a0a36bef2b 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Přidat název členu @@ -572,16 +562,6 @@ Shody cílového typu - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. Výběr obsahuje volání lokální funkce, aniž by byla deklarovaná. @@ -2565,11 +2545,6 @@ Tato verze se používá zde: {2}. Generovat konstruktor v {0} (bez polí) - - Add file banner - Přidat banner souboru - - Warning: Method overrides symbol from metadata Upozornění: Metoda potlačí symbol z metadat. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf index 0e4239953c22c..fd7ec999f0e26 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Membername hinzufügen @@ -572,16 +562,6 @@ Übereinstimmungen mit Zieltyp - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. Die Auswahl enthält einen lokalen Funktionsaufruf ohne Deklaration. @@ -2565,11 +2545,6 @@ Diese Version wird verwendet in: {2} Konstruktor in "{0}" (ohne Felder) generieren - - Add file banner - Dateibanner hinzufügen - - Warning: Method overrides symbol from metadata Warnung: Die Methode setzt das Symbol aus den Metadaten außer Kraft. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf index cbbc85044a1d6..f0fc17c265f27 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Agregar nombre de miembro @@ -572,16 +562,6 @@ El tipo de destino coincide con - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. La selección contiene una llamada a una función local sin la declaración correspondiente. @@ -2565,11 +2545,6 @@ Esta versión se utiliza en: {2} Generar constructor en "{0}" (sin campos) - - Add file banner - Agregar pancarta de archivo - - Warning: Method overrides symbol from metadata Advertencia: El método reemplaza el símbolo de los metadatos. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf index 159c7430ed9c5..4128e61546c25 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Ajouter le nom du membre @@ -572,16 +562,6 @@ Cibler les correspondances de types - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. La sélection contient un appel de fonction locale sans sa déclaration. @@ -2565,11 +2545,6 @@ Version utilisée dans : {2} Générer un constructeur dans '{0}' (sans les champs) - - Add file banner - Bannière d'ajout de fichier - - Warning: Method overrides symbol from metadata Avertissement : La méthode remplace le symbole des métadonnées diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf index f8b793ff7f914..9b554cf67f94a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Aggiungi nome del membro @@ -572,16 +562,6 @@ Imposta destinazione per corrispondenze di tipo - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. La selezione contiene una chiamata di funzione locale senza la relativa dichiarazione. @@ -2565,11 +2545,6 @@ Questa versione è usata {2} Genera il costruttore in '{0}' (senza campi) - - Add file banner - Aggiungi intestazione del file - - Warning: Method overrides symbol from metadata Avviso: il metodo esegue l'override del simbolo dei metadati diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf index 7029deb3695ed..28fa2cbc161e0 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name メンバー名を追加します @@ -572,16 +562,6 @@ ターゲットの種類が一致します - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. 選択範囲に、宣言のないローカル関数呼び出しが含まれています。 @@ -2565,11 +2545,6 @@ This version used in: {2} {0}' に (フィールドを含まない) コンストラクターを生成します - - Add file banner - ファイルのバナーを追加します - - Warning: Method overrides symbol from metadata 警告: メソッドがメタデータのシンボルをオーバーライドします diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf index 94f58a32cca71..72ee0c49b75bb 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name 멤버 이름 추가 @@ -572,16 +562,6 @@ 대상 유형 일치 - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. 선언이 없는 로컬 함수 호출이 선택 영역에 있습니다. @@ -2565,11 +2545,6 @@ This version used in: {2} {0}'에 생성자 생성(필드 제외) - - Add file banner - 파일 배너 추가 - - Warning: Method overrides symbol from metadata 경고: 메서드가 메타데이터의 기호를 재정의합니다. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf index 931a2bdce0df6..6eb393471f30d 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Dodaj nazwę składowej @@ -572,16 +562,6 @@ Dopasowania typu docelowego - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. Zaznaczenie zawiera wywołanie funkcji lokalnej bez jego deklaracji. @@ -2565,11 +2545,6 @@ Ta wersja jest używana wersja: {2} Generowanie konstruktora w „{0}” (bez pól) - - Add file banner - Dodaj transparent pliku - - Warning: Method overrides symbol from metadata Ostrzeżenie: metoda zastępuje symbol z metadanych diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf index fc10bbd625070..15b5722ece1bd 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Adicionar o nome do membro @@ -572,16 +562,6 @@ Correspondências de tipos de destino - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. A seleção contém uma chamada de função local sem sua declaração. @@ -2565,11 +2545,6 @@ Essa versão é usada no: {2} Gerar construtor em '{0}' (sem campos) - - Add file banner - Adicionar faixa de arquivo - - Warning: Method overrides symbol from metadata Aviso: o método substitui o símbolo de metadados diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf index 5bd8c99f46328..385d6a29c366e 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Добавить имя элемента @@ -572,16 +562,6 @@ Соответствия целевого типа - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. Выделенный фрагмент содержит вызов локальной функции без ее объявления. @@ -2565,11 +2545,6 @@ This version used in: {2} Создать конструктор в "{0}" (без полей) - - Add file banner - Добавьте заголовок файла - - Warning: Method overrides symbol from metadata Предупреждение. Метод переопределяет символ из метаданных. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf index a8d95331b493d..cfe06f722c225 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name Üye adı Ekle @@ -572,16 +562,6 @@ Hedef tür eşleşmeleri - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. Seçim, bildirimi olmadan bir yerel işlev çağrısı içeriyor. @@ -2565,11 +2545,6 @@ Bu sürüm şurada kullanılır: {2} {0}' içinde oluşturucu üret (alanlar olmadan) - - Add file banner - Dosya başlığı ekle - - Warning: Method overrides symbol from metadata Uyarı: Metot, meta verideki sembolü geçersiz kılıyor diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf index 47c0e2d88237d..0e1d501372b4a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name 添加成员名称 @@ -572,16 +562,6 @@ 目标类型匹配 - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. 所选内容包含不带声明的本地函数调用。 @@ -2565,11 +2545,6 @@ This version used in: {2} 在“{0}”中生成构造函数(不包含字段) - - Add file banner - 添加文件横幅 - - Warning: Method overrides symbol from metadata 警告: 方法将替代元数据中的符号 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf index 9c1d48953cb50..433130480762a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf @@ -2,16 +2,6 @@ - - A source file contains a header that does not match the required text - A source file contains a header that does not match the required text - - - - A source file is missing a required header. - A source file is missing a required header. - - Add member name 新增成員名稱 @@ -572,16 +562,6 @@ 目標類型相符項目 - - The file header does not match the required text - The file header does not match the required text - - - - The file header is missing or not located at the top of the file - The file header is missing or not located at the top of the file - - The selection contains a local function call without its declaration. 選取範圍包含區域函式呼叫,但不含其宣告。 @@ -2565,11 +2545,6 @@ This version used in: {2} 在 '{0}' 產生建構函式 (不含欄位) - - Add file banner - 新增檔案橫幅 - - Warning: Method overrides symbol from metadata 警告: 方法會覆寫中繼資料的符號