Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
3cab2e21
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3cab2e21
编写于
2月 27, 2020
作者:
M
Manish Vasani
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move bunch of analyzer base types and test utility types into shared layer
上级
9c0370c3
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
148 addition
and
53 deletion
+148
-53
Compilers.sln
Compilers.sln
+38
-20
Roslyn.sln
Roslyn.sln
+1
-1
src/Analyzers/Core/Analyzers/AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs
...e/Analyzers/AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs
+4
-0
src/Analyzers/Core/Analyzers/AbstractCodeQualityDiagnosticAnalyzer.cs
...s/Core/Analyzers/AbstractCodeQualityDiagnosticAnalyzer.cs
+5
-0
src/Analyzers/Core/Analyzers/AbstractCodeStyleDiagnosticAnalyzer.cs
...ers/Core/Analyzers/AbstractCodeStyleDiagnosticAnalyzer.cs
+0
-0
src/Analyzers/Core/Analyzers/Analyzers.projitems
src/Analyzers/Core/Analyzers/Analyzers.projitems
+9
-0
src/Analyzers/Core/Analyzers/DiagnosticAnalyzerCategory.cs
src/Analyzers/Core/Analyzers/DiagnosticAnalyzerCategory.cs
+0
-0
src/Analyzers/Core/Analyzers/DiagnosticCategory.cs
src/Analyzers/Core/Analyzers/DiagnosticCategory.cs
+0
-0
src/Analyzers/Core/Analyzers/Helpers/DeserializationConstructorCheck.cs
...Core/Analyzers/Helpers/DeserializationConstructorCheck.cs
+0
-0
src/Analyzers/Core/Analyzers/Helpers/DiagnosticHelper.cs
src/Analyzers/Core/Analyzers/Helpers/DiagnosticHelper.cs
+1
-2
src/Analyzers/Core/Analyzers/IBuiltInAnalyzer.cs
src/Analyzers/Core/Analyzers/IBuiltInAnalyzer.cs
+4
-0
src/Analyzers/Core/Analyzers/IDEDiagnosticIdToOptionMappingHelper.cs
...rs/Core/Analyzers/IDEDiagnosticIdToOptionMappingHelper.cs
+0
-0
src/CodeStyle/CSharp/Tests/Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests.csproj
.../Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests.csproj
+11
-0
src/CodeStyle/Core/Analyzers/DiagnosticCategory.cs
src/CodeStyle/Core/Analyzers/DiagnosticCategory.cs
+0
-11
src/CodeStyle/Core/Analyzers/Microsoft.CodeAnalysis.CodeStyle.csproj
...le/Core/Analyzers/Microsoft.CodeAnalysis.CodeStyle.csproj
+1
-0
src/CodeStyle/Core/CodeFixes/Microsoft.CodeAnalysis.CodeStyle.Fixes.csproj
...e/CodeFixes/Microsoft.CodeAnalysis.CodeStyle.Fixes.csproj
+2
-2
src/CodeStyle/Core/Tests/Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities.csproj
...Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities.csproj
+38
-0
src/CodeStyle/Core/Tests/Properties/launchSettings.json
src/CodeStyle/Core/Tests/Properties/launchSettings.json
+0
-14
src/CodeStyle/VisualBasic/CodeFixes/Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes.vbproj
...Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes.vbproj
+1
-0
src/CodeStyle/VisualBasic/Tests/Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests.vbproj
...osoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests.vbproj
+11
-0
src/EditorFeatures/TestUtilities/CodeActions/CSharpCodeFixVerifier`2+Test.cs
...TestUtilities/CodeActions/CSharpCodeFixVerifier`2+Test.cs
+11
-1
src/EditorFeatures/TestUtilities/CodeActions/VisualBasicCodeFixVerifier`2+Test.cs
...tilities/CodeActions/VisualBasicCodeFixVerifier`2+Test.cs
+11
-1
src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj
...ures/Core/Portable/Microsoft.CodeAnalysis.Features.csproj
+0
-1
未找到文件。
Compilers.sln
浏览文件 @
3cab2e21
...
...
@@ -124,8 +124,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Code
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CodeStyle.Fixes", "src\CodeStyle\Core\CodeFixes\Microsoft.CodeAnalysis.CodeStyle.Fixes.csproj", "{5FF1E493-69CC-4D0B-83F2-039F469A04E1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CodeStyle.UnitTests", "src\CodeStyle\Core\Tests\Microsoft.CodeAnalysis.CodeStyle.UnitTests.csproj", "{9FF1205F-1D7C-4EE4-B038-3456FE6EBEAF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CSharp.CodeStyle", "src\CodeStyle\CSharp\Analyzers\Microsoft.CodeAnalysis.CSharp.CodeStyle.csproj", "{AA87BFED-089A-4096-B8D5-690BDC7D5B24}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes", "src\CodeStyle\CSharp\CodeFixes\Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes.csproj", "{A07ABCF5-BC43-4EE9-8FD8-B2D77FD54D73}"
...
...
@@ -162,26 +160,46 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Net.Compilers.Too
EndProject
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "vbi", "src\Interactive\vbi\vbi.vbproj", "{706CFC25-B6E0-4DAA-BCC4-F6FAAFEEDF87}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities", "src\CodeStyle\Core\Tests\Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities.csproj", "{21A59DB8-E9E0-42EB-A599-457C5BC87FC3}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
src\Compilers\Core\AnalyzerDriver\AnalyzerDriver.projitems*{1ee8cad3-55f9-4d91-96b2-084641da9a6c}*SharedItemsImports = 4
src\Dependencies\CodeAnalysis.Debugging\Microsoft.CodeAnalysis.Debugging.projitems*{1ee8cad3-55f9-4d91-96b2-084641da9a6c}*SharedItemsImports = 4
src\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems*{1ee8cad3-55f9-4d91-96b2-084641da9a6c}*SharedItemsImports = 4
src\Compilers\VisualBasic\BasicAnalyzerDriver\BasicAnalyzerDriver.projitems*{2523d0e6-df32-4a3e-8ae0-a19bffae2ef6}*SharedItemsImports = 4
src\Compilers\Core\CommandLine\CommandLine.projitems*{4b45ca0c-03a0-400f-b454-3d4bcb16af38}*SharedItemsImports = 4
src\Analyzers\VisualBasic\CodeFixes\VisualBasicCodeFixes.projitems*{0141285d-8f6c-42c7-baf3-3c0ccd61c716}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\VisualBasicWorkspaceExtensions.projitems*{0141285d-8f6c-42c7-baf3-3c0ccd61c716}*SharedItemsImports = 5
src\Compilers\Core\AnalyzerDriver\AnalyzerDriver.projitems*{1ee8cad3-55f9-4d91-96b2-084641da9a6c}*SharedItemsImports = 5
src\Dependencies\CodeAnalysis.Debugging\Microsoft.CodeAnalysis.Debugging.projitems*{1ee8cad3-55f9-4d91-96b2-084641da9a6c}*SharedItemsImports = 5
src\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems*{1ee8cad3-55f9-4d91-96b2-084641da9a6c}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CSharpCompilerExtensions.projitems*{21b239d0-d144-430f-a394-c066d58ee267}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CSharpWorkspaceExtensions.projitems*{21b239d0-d144-430f-a394-c066d58ee267}*SharedItemsImports = 5
src\Compilers\VisualBasic\BasicAnalyzerDriver\BasicAnalyzerDriver.projitems*{2523d0e6-df32-4a3e-8ae0-a19bffae2ef6}*SharedItemsImports = 5
src\Analyzers\VisualBasic\Analyzers\VisualBasicAnalyzers.projitems*{2531a8c4-97dd-47bc-a79c-b7846051e137}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\VisualBasicCompilerExtensions.projitems*{2531a8c4-97dd-47bc-a79c-b7846051e137}*SharedItemsImports = 5
src\Analyzers\Core\Analyzers\Analyzers.projitems*{275812ee-dedb-4232-9439-91c9757d2ae4}*SharedItemsImports = 5
src\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems*{275812ee-dedb-4232-9439-91c9757d2ae4}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CompilerExtensions.projitems*{275812ee-dedb-4232-9439-91c9757d2ae4}*SharedItemsImports = 5
src\Compilers\Core\CommandLine\CommandLine.projitems*{4b45ca0c-03a0-400f-b454-3d4bcb16af38}*SharedItemsImports = 5
src\Analyzers\CSharp\Tests\CSharpAnalyzers.UnitTests.projitems*{5018d049-5870-465a-889b-c742ce1e31cb}*SharedItemsImports = 5
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpAnalyzerDriver.projitems*{54e08bf5-f819-404f-a18d-0ab9ea81ea04}*SharedItemsImports = 13
src\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems*{5f8d2414-064a-4b3a-9b42-8e2a04246be5}*SharedItemsImports = 4
src\Compilers\Core\CommandLine\CommandLine.projitems*{7ad4fe65-9a30-41a6-8004-aa8f89bcb7f3}*SharedItemsImports = 4
src\Compilers\Core\CommandLine\CommandLine.projitems*{9508f118-f62e-4c16-a6f4-7c3b56e166ad}*SharedItemsImports = 4
src\Compilers\Server\ServerShared\ServerShared.projitems*{9508f118-f62e-4c16-a6f4-7c3b56e166ad}*SharedItemsImports = 4
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\VisualBasicCompilerExtensions.projitems*{57ca988d-f010-4bf2-9a2e-07d6dcd2ff2c}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\VisualBasicWorkspaceExtensions.projitems*{57ca988d-f010-4bf2-9a2e-07d6dcd2ff2c}*SharedItemsImports = 5
src\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems*{5f8d2414-064a-4b3a-9b42-8e2a04246be5}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CompilerExtensions.projitems*{5f8d2414-064a-4b3a-9b42-8e2a04246be5}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\WorkspaceExtensions.projitems*{5f8d2414-064a-4b3a-9b42-8e2a04246be5}*SharedItemsImports = 5
src\Analyzers\Core\CodeFixes\CodeFixes.projitems*{5ff1e493-69cc-4d0b-83f2-039f469a04e1}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\WorkspaceExtensions.projitems*{5ff1e493-69cc-4d0b-83f2-039f469a04e1}*SharedItemsImports = 5
src\Compilers\Core\CommandLine\CommandLine.projitems*{7ad4fe65-9a30-41a6-8004-aa8f89bcb7f3}*SharedItemsImports = 5
src\Compilers\Core\CommandLine\CommandLine.projitems*{9508f118-f62e-4c16-a6f4-7c3b56e166ad}*SharedItemsImports = 5
src\Analyzers\CSharp\CodeFixes\CSharpCodeFixes.projitems*{a07abcf5-bc43-4ee9-8fd8-b2d77fd54d73}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CSharpWorkspaceExtensions.projitems*{a07abcf5-bc43-4ee9-8fd8-b2d77fd54d73}*SharedItemsImports = 5
src\Analyzers\CSharp\Analyzers\CSharpAnalyzers.projitems*{aa87bfed-089a-4096-b8d5-690bdc7d5b24}*SharedItemsImports = 5
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CSharpCompilerExtensions.projitems*{aa87bfed-089a-4096-b8d5-690bdc7d5b24}*SharedItemsImports = 5
src\Compilers\Core\CommandLine\CommandLine.projitems*{ad6f474e-e6d4-4217-91f3-b7af1be31ccc}*SharedItemsImports = 13
src\Dependencies\CodeAnalysis.Debugging\Microsoft.CodeAnalysis.Debugging.projitems*{afde6bea-5038-4a4a-a88e-dbd2e4088eed}*SharedItemsImports = 4
src\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems*{afde6bea-5038-4a4a-a88e-dbd2e4088eed}*SharedItemsImports = 4
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpAnalyzerDriver.projitems*{b501a547-c911-4a05-ac6e-274a50dff30e}*SharedItemsImports = 4
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpAnalyzerDriver.projitems*{b501a547-c911-4a05-ac6e-274a50dff30e}*SharedItemsImports = 5
src\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems*{c1930979-c824-496b-a630-70f5369a636f}*SharedItemsImports = 13
src\Compilers\Core\AnalyzerDriver\AnalyzerDriver.projitems*{d0bc9be7-24f6-40ca-8dc6-fcb93bd44b34}*SharedItemsImports = 13
src\Dependencies\CodeAnalysis.Debugging\Microsoft.CodeAnalysis.Debugging.projitems*{d73adf7d-2c1c-42ae-b2ab-edc9497e4b71}*SharedItemsImports = 13
src\Compilers\Core\CommandLine\CommandLine.projitems*{e58ee9d7-1239-4961-a0c1-f9ec3952c4c1}*SharedItemsImports = 4
src\Analyzers\VisualBasic\Tests\VisualBasicAnalyzers.UnitTests.projitems*{e512c6c1-f085-4ad7-b0d9-e8f1a0a2a510}*SharedItemsImports = 5
src\Compilers\Core\CommandLine\CommandLine.projitems*{e58ee9d7-1239-4961-a0c1-f9ec3952c4c1}*SharedItemsImports = 5
src\Compilers\VisualBasic\BasicAnalyzerDriver\BasicAnalyzerDriver.projitems*{e8f0baa5-7327-43d1-9a51-644e81ae55f1}*SharedItemsImports = 13
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
...
...
@@ -377,10 +395,6 @@ Global
{5FF1E493-69CC-4D0B-83F2-039F469A04E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5FF1E493-69CC-4D0B-83F2-039F469A04E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5FF1E493-69CC-4D0B-83F2-039F469A04E1}.Release|Any CPU.Build.0 = Release|Any CPU
{9FF1205F-1D7C-4EE4-B038-3456FE6EBEAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9FF1205F-1D7C-4EE4-B038-3456FE6EBEAF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9FF1205F-1D7C-4EE4-B038-3456FE6EBEAF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9FF1205F-1D7C-4EE4-B038-3456FE6EBEAF}.Release|Any CPU.Build.0 = Release|Any CPU
{AA87BFED-089A-4096-B8D5-690BDC7D5B24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AA87BFED-089A-4096-B8D5-690BDC7D5B24}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA87BFED-089A-4096-B8D5-690BDC7D5B24}.Release|Any CPU.ActiveCfg = Release|Any CPU
...
...
@@ -441,6 +455,10 @@ Global
{706CFC25-B6E0-4DAA-BCC4-F6FAAFEEDF87}.Debug|Any CPU.Build.0 = Debug|Any CPU
{706CFC25-B6E0-4DAA-BCC4-F6FAAFEEDF87}.Release|Any CPU.ActiveCfg = Release|Any CPU
{706CFC25-B6E0-4DAA-BCC4-F6FAAFEEDF87}.Release|Any CPU.Build.0 = Release|Any CPU
{21A59DB8-E9E0-42EB-A599-457C5BC87FC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{21A59DB8-E9E0-42EB-A599-457C5BC87FC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{21A59DB8-E9E0-42EB-A599-457C5BC87FC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{21A59DB8-E9E0-42EB-A599-457C5BC87FC3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
@@ -497,7 +515,6 @@ Global
{57CA988D-F010-4BF2-9A2E-07D6DCD2FF2C} = {D9591377-7868-4D64-9314-83E0C92A871B}
{275812EE-DEDB-4232-9439-91C9757D2AE4} = {B20208C3-D3A6-4020-A274-6BE3786D29FB}
{5FF1E493-69CC-4D0B-83F2-039F469A04E1} = {B20208C3-D3A6-4020-A274-6BE3786D29FB}
{9FF1205F-1D7C-4EE4-B038-3456FE6EBEAF} = {B20208C3-D3A6-4020-A274-6BE3786D29FB}
{AA87BFED-089A-4096-B8D5-690BDC7D5B24} = {B20208C3-D3A6-4020-A274-6BE3786D29FB}
{A07ABCF5-BC43-4EE9-8FD8-B2D77FD54D73} = {B20208C3-D3A6-4020-A274-6BE3786D29FB}
{5018D049-5870-465A-889B-C742CE1E31CB} = {B20208C3-D3A6-4020-A274-6BE3786D29FB}
...
...
@@ -515,6 +532,7 @@ Global
{8A02AFAF-F622-4E3E-9E1A-8CFDACC7C7E1} = {FD0FAF5F-1DED-485C-99FA-84B97F3A8EEC}
{6D407402-CC4A-4125-9B00-C70562A636A5} = {274B96B7-F815-47E3-9CA4-4024A57A478F}
{706CFC25-B6E0-4DAA-BCC4-F6FAAFEEDF87} = {3FF38FD4-DF16-44B0-924F-0D5AE155495B}
{21A59DB8-E9E0-42EB-A599-457C5BC87FC3} = {B20208C3-D3A6-4020-A274-6BE3786D29FB}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6F599E08-A9EA-4FAA-897F-5D824B0210E6}
...
...
Roslyn.sln
浏览文件 @
3cab2e21
...
...
@@ -330,7 +330,7 @@ Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Microsoft.CodeAnalysis.Visu
EndProject
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes", "src\CodeStyle\VisualBasic\CodeFixes\Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes.vbproj", "{0141285D-8F6C-42C7-BAF3-3C0CCD61C716}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CodeStyle.UnitTest
s", "src\CodeStyle\Core\Tests\Microsoft.CodeAnalysis.CodeStyle.UnitTest
s.csproj", "{9FF1205F-1D7C-4EE4-B038-3456FE6EBEAF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CodeStyle.UnitTest
Utilities", "src\CodeStyle\Core\Tests\Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilitie
s.csproj", "{9FF1205F-1D7C-4EE4-B038-3456FE6EBEAF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests", "src\CodeStyle\CSharp\Tests\Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests.csproj", "{5018D049-5870-465A-889B-C742CE1E31CB}"
EndProject
...
...
src/
Features/Core/Portable/CodeStyle
/AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs
→
src/
Analyzers/Core/Analyzers
/AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs
浏览文件 @
3cab2e21
...
...
@@ -8,6 +8,10 @@
using
Microsoft.CodeAnalysis.Diagnostics
;
using
Microsoft.CodeAnalysis.Options
;
#if CODE_STYLE
using
OptionSet
=
Microsoft
.
CodeAnalysis
.
Diagnostics
.
AnalyzerConfigOptions
;
#endif
namespace
Microsoft.CodeAnalysis.CodeStyle
{
internal
abstract
class
AbstractBuiltInCodeStyleDiagnosticAnalyzer
:
AbstractCodeStyleDiagnosticAnalyzer
,
IBuiltInAnalyzer
...
...
src/
Features/Core/Portable/CodeQuality
/AbstractCodeQualityDiagnosticAnalyzer.cs
→
src/
Analyzers/Core/Analyzers
/AbstractCodeQualityDiagnosticAnalyzer.cs
浏览文件 @
3cab2e21
...
...
@@ -4,7 +4,12 @@
using
System.Collections.Immutable
;
using
Microsoft.CodeAnalysis.Diagnostics
;
#if CODE_STYLE
using
OptionSet
=
Microsoft
.
CodeAnalysis
.
Diagnostics
.
AnalyzerConfigOptions
;
#else
using
Microsoft.CodeAnalysis.Options
;
#endif
namespace
Microsoft.CodeAnalysis.CodeQuality
{
...
...
src/
CodeStyle
/Core/Analyzers/AbstractCodeStyleDiagnosticAnalyzer.cs
→
src/
Analyzers
/Core/Analyzers/AbstractCodeStyleDiagnosticAnalyzer.cs
浏览文件 @
3cab2e21
文件已移动
src/Analyzers/Core/Analyzers/Analyzers.projitems
浏览文件 @
3cab2e21
...
...
@@ -12,7 +12,16 @@
<EmbeddedResource
Include=
"$(MSBuildThisFileDirectory)AnalyzersResources.resx"
GenerateSource=
"true"
Link=
"AnalyzersResources.resx"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"$(MSBuildThisFileDirectory)AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)AbstractCodeQualityDiagnosticAnalyzer.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)AbstractCodeStyleDiagnosticAnalyzer.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)DiagnosticAnalyzerCategory.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)DiagnosticCategory.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)DiagnosticCustomTags.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Helpers\DeserializationConstructorCheck.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Helpers\DiagnosticHelper.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)IBuiltInAnalyzer.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)IDEDiagnosticIds.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)IDEDiagnosticIdToOptionMappingHelper.cs"
/>
</ItemGroup>
</Project>
\ No newline at end of file
src/
Features/Core/Portable/Diagnostic
s/DiagnosticAnalyzerCategory.cs
→
src/
Analyzers/Core/Analyzer
s/DiagnosticAnalyzerCategory.cs
浏览文件 @
3cab2e21
文件已移动
src/
Features/Core/Portable/Diagnostic
s/DiagnosticCategory.cs
→
src/
Analyzers/Core/Analyzer
s/DiagnosticCategory.cs
浏览文件 @
3cab2e21
文件已移动
src/
Features/Core/Portable/Shared/Utilitie
s/DeserializationConstructorCheck.cs
→
src/
Analyzers/Core/Analyzers/Helper
s/DeserializationConstructorCheck.cs
浏览文件 @
3cab2e21
文件已移动
src/
Features/Core/Portable/Diagnostic
s/DiagnosticHelper.cs
→
src/
Analyzers/Core/Analyzers/Helper
s/DiagnosticHelper.cs
浏览文件 @
3cab2e21
...
...
@@ -10,7 +10,6 @@
using
System.Runtime.Serialization.Json
;
using
System.Text
;
using
Microsoft.CodeAnalysis.PooledObjects
;
using
Microsoft.CodeAnalysis.RemoveUnnecessaryParentheses
;
using
Roslyn.Utilities
;
namespace
Microsoft.CodeAnalysis.Diagnostics
...
...
@@ -74,7 +73,7 @@ internal static class DiagnosticHelper
/// </param>
/// <param name="tagIndices">
/// a map of location tag to index in additional locations.
///
<see cref="AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer{TLanguageKindEnum, TParenthesizedExpressionSyntax}"/>
for an example of usage.
///
"AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer"
for an example of usage.
/// </param>
/// <param name="messageArgs">Arguments to the message of the diagnostic.</param>
/// <returns>The <see cref="Diagnostic"/> instance.</returns>
...
...
src/
Features/Core/Portable/Diagnostic
s/IBuiltInAnalyzer.cs
→
src/
Analyzers/Core/Analyzer
s/IBuiltInAnalyzer.cs
浏览文件 @
3cab2e21
...
...
@@ -2,7 +2,11 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#if CODE_STYLE
using
OptionSet
=
Microsoft
.
CodeAnalysis
.
Diagnostics
.
AnalyzerConfigOptions
;
#else
using
Microsoft.CodeAnalysis.Options
;
#endif
namespace
Microsoft.CodeAnalysis.Diagnostics
{
...
...
src/
Features/Core/Portable/Diagnostics
/Analyzers/IDEDiagnosticIdToOptionMappingHelper.cs
→
src/
Analyzers/Core
/Analyzers/IDEDiagnosticIdToOptionMappingHelper.cs
浏览文件 @
3cab2e21
文件已移动
src/CodeStyle/CSharp/Tests/Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests.csproj
浏览文件 @
3cab2e21
...
...
@@ -5,6 +5,7 @@
<OutputType>
Library
</OutputType>
<RootNamespace>
Microsoft.CodeAnalysis.CSharp
</RootNamespace>
<TargetFramework>
net472
</TargetFramework>
<DefineConstants>
$(DefineConstants),CODE_STYLE
</DefineConstants>
<!-- https://github.com/dotnet/roslyn/issues/31412 -->
<SkipTests
Condition=
"'$(TestRuntime)' == 'Mono'"
>
true
</SkipTests>
...
...
@@ -13,9 +14,19 @@
<PackageReference
Include=
"Microsoft.CodeAnalysis.CSharp.Workspaces"
Version=
"$(MicrosoftCodeAnalysisCSharpWorkspacesFixedVersion)"
/>
<PackageReference
Include=
"Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit"
Version=
"$(MicrosoftCodeAnalysisCSharpCodeFixTestingXUnitVersion)"
/>
</ItemGroup>
<ItemGroup
Label=
"Project References"
>
<!-- Directly reference the Workspaces project so we always test against the latest Roslyn bits -->
<ProjectReference
Include=
"..\..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj"
/>
<ProjectReference
Include=
"..\..\..\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj"
/>
<ProjectReference
Include=
"..\..\..\Compilers\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.vbproj"
/>
<ProjectReference
Include=
"..\..\..\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj"
/>
<ProjectReference
Include=
"..\..\..\Workspaces\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Workspaces.csproj"
/>
<ProjectReference
Include=
"..\..\..\Workspaces\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.Workspaces.vbproj"
/>
</ItemGroup>
<ItemGroup
Label=
"Project References"
>
<ProjectReference
Include=
"..\..\Core\Analyzers\Microsoft.CodeAnalysis.CodeStyle.csproj"
/>
<ProjectReference
Include=
"..\..\Core\CodeFixes\Microsoft.CodeAnalysis.CodeStyle.Fixes.csproj"
/>
<ProjectReference
Include=
"..\..\Core\Tests\Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities.csproj"
/>
<ProjectReference
Include=
"..\Analyzers\Microsoft.CodeAnalysis.CSharp.CodeStyle.csproj"
/>
<ProjectReference
Include=
"..\CodeFixes\Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes.csproj"
/>
</ItemGroup>
...
...
src/CodeStyle/Core/Analyzers/DiagnosticCategory.cs
已删除
100644 → 0
浏览文件 @
9c0370c3
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace
Microsoft.CodeAnalysis.CodeStyle
{
internal
static
class
DiagnosticCategory
{
public
const
string
Style
=
nameof
(
Style
);
}
}
src/CodeStyle/Core/Analyzers/Microsoft.CodeAnalysis.CodeStyle.csproj
浏览文件 @
3cab2e21
...
...
@@ -22,6 +22,7 @@
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeStyle"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests"
/>
</ItemGroup>
...
...
src/CodeStyle/Core/CodeFixes/Microsoft.CodeAnalysis.CodeStyle.Fixes.csproj
浏览文件 @
3cab2e21
...
...
@@ -16,8 +16,8 @@
<ItemGroup>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CodeStyle.UnitTests"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CodeStyle.UnitTest
Utilitie
s"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTest
Utilitie
s"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests"
/>
</ItemGroup>
<ItemGroup>
...
...
src/CodeStyle/Core/Tests/Microsoft.CodeAnalysis.CodeStyle.UnitTests.csproj
→
src/CodeStyle/Core/Tests/Microsoft.CodeAnalysis.CodeStyle.UnitTest
Utilitie
s.csproj
浏览文件 @
3cab2e21
...
...
@@ -5,13 +5,34 @@
<OutputType>
Library
</OutputType>
<RootNamespace>
Microsoft.CodeAnalysis
</RootNamespace>
<TargetFramework>
net472
</TargetFramework>
<DefineConstants>
$(DefineConstants),CODE_STYLE
</DefineConstants>
<IsShipping>
false
</IsShipping>
</PropertyGroup>
<ItemGroup>
<Compile
Include=
"..\..\..\EditorFeatures\TestUtilities\CodeActions\CodeFixVerifierHelper.cs"
Link=
"CodeFixVerifierHelper.cs"
/>
<Compile
Include=
"..\..\..\EditorFeatures\TestUtilities\CodeActions\CSharpCodeFixVerifier`2+Test.cs"
Link=
"CSharpCodeFixVerifier`2+Test.cs"
/>
<Compile
Include=
"..\..\..\EditorFeatures\TestUtilities\CodeActions\CSharpCodeFixVerifier`2.cs"
Link=
"CSharpCodeFixVerifier`2.cs"
/>
<Compile
Include=
"..\..\..\EditorFeatures\TestUtilities\CodeActions\VisualBasicCodeFixVerifier`2+Test.cs"
Link=
"VisualBasicCodeFixVerifier`2+Test.cs"
/>
<Compile
Include=
"..\..\..\EditorFeatures\TestUtilities\CodeActions\VisualBasicCodeFixVerifier`2.cs"
Link=
"VisualBasicCodeFixVerifier`2.cs"
/>
<Compile
Include=
"..\..\..\Test\Utilities\Portable\Assert\WorkItemAttribute.cs"
Link=
"WorkItemAttribute.cs"
/>
<Compile
Include=
"..\..\..\Test\Utilities\Portable\Traits\Traits.cs"
Link=
"Traits.cs"
/>
</ItemGroup>
<ItemGroup
Label=
"Project References"
>
<ProjectReference
Include=
"..\Analyzers\Microsoft.CodeAnalysis.CodeStyle.csproj"
/>
<ProjectReference
Include=
"..\CodeFixes\Microsoft.CodeAnalysis.CodeStyle.Fixes.csproj"
/>
</ItemGroup>
<ItemGroup
Label=
"Project References"
>
<!-- Directly reference the Workspaces project so we always test against the latest Roslyn bits -->
<ProjectReference
Include=
"..\..\..\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj"
/>
<ProjectReference
Include=
"..\..\..\Workspaces\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Workspaces.csproj"
/>
<ProjectReference
Include=
"..\..\..\Workspaces\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.Workspaces.vbproj"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit"
Version=
"$(MicrosoftCodeAnalysisCSharpCodeFixTestingXUnitVersion)"
/>
<PackageReference
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.XUnit"
Version=
"$(MicrosoftCodeAnalysisVisualBasicCodeFixTestingXUnitVersion)"
/>
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CSharp.CodeStyle.
Fixe
s"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeStyle.
Fixe
s"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.CSharp.CodeStyle.
UnitTest
s"
/>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeStyle.
UnitTest
s"
/>
</ItemGroup>
</Project>
\ No newline at end of file
src/CodeStyle/Core/Tests/Properties/launchSettings.json
已删除
100644 → 0
浏览文件 @
9c0370c3
{
"profiles"
:
{
"xUnit.net Console (32-bit)"
:
{
"commandName"
:
"Executable"
,
"executablePath"
:
"$(NuGetPackageRoot)xunit.runner.console
\\
$(XUnitVersion)
\\
tools
\\
net452
\\
xunit.console.x86.exe"
,
"commandLineArgs"
:
"$(TargetPath) -noshadow -verbose"
},
"xUnit.net Console (64-bit)"
:
{
"commandName"
:
"Executable"
,
"executablePath"
:
"$(NuGetPackageRoot)xunit.runner.console
\\
$(XUnitVersion)
\\
tools
\\
net452
\\
xunit.console.exe"
,
"commandLineArgs"
:
"$(TargetPath) -noshadow -verbose"
}
}
}
\ No newline at end of file
src/CodeStyle/VisualBasic/CodeFixes/Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes.vbproj
浏览文件 @
3cab2e21
...
...
@@ -6,6 +6,7 @@
<TargetFramework>
netstandard2.0
</TargetFramework>
<RootNamespace></RootNamespace>
<CopyLocalLockFileAssemblies>
true
</CopyLocalLockFileAssemblies>
<DefineConstants>
$(DefineConstants),CODE_STYLE
</DefineConstants>
<!-- NuGet -->
<IsPackable>
true
</IsPackable>
...
...
src/CodeStyle/VisualBasic/Tests/Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests.vbproj
浏览文件 @
3cab2e21
...
...
@@ -5,6 +5,7 @@
<OutputType>
Library
</OutputType>
<TargetFramework>
net472
</TargetFramework>
<RootNamespace></RootNamespace>
<DefineConstants>
$(DefineConstants),CODE_STYLE
</DefineConstants>
<!-- https://github.com/dotnet/roslyn/issues/31412 -->
<SkipTests
Condition=
"'$(TestRuntime)' == 'Mono'"
>
true
</SkipTests>
...
...
@@ -13,9 +14,19 @@
<PackageReference
Include=
"Microsoft.CodeAnalysis.VisualBasic.Workspaces"
Version=
"$(MicrosoftCodeAnalysisVisualBasicWorkspacesFixedVersion)"
/>
<PackageReference
Include=
"Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.XUnit"
Version=
"$(MicrosoftCodeAnalysisVisualBasicCodeFixTestingXUnitVersion)"
/>
</ItemGroup>
<ItemGroup
Label=
"Project References"
>
<!-- Directly reference the Workspaces project so we always test against the latest Roslyn bits -->
<ProjectReference
Include=
"..\..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj"
/>
<ProjectReference
Include=
"..\..\..\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj"
/>
<ProjectReference
Include=
"..\..\..\Compilers\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.vbproj"
/>
<ProjectReference
Include=
"..\..\..\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj"
/>
<ProjectReference
Include=
"..\..\..\Workspaces\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Workspaces.csproj"
/>
<ProjectReference
Include=
"..\..\..\Workspaces\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.Workspaces.vbproj"
/>
</ItemGroup>
<ItemGroup
Label=
"Project References"
>
<ProjectReference
Include=
"..\..\Core\Analyzers\Microsoft.CodeAnalysis.CodeStyle.csproj"
/>
<ProjectReference
Include=
"..\..\Core\CodeFixes\Microsoft.CodeAnalysis.CodeStyle.Fixes.csproj"
/>
<ProjectReference
Include=
"..\..\Core\Tests\Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities.csproj"
/>
<ProjectReference
Include=
"..\Analyzers\Microsoft.CodeAnalysis.VisualBasic.CodeStyle.vbproj"
/>
<ProjectReference
Include=
"..\CodeFixes\Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes.vbproj"
/>
</ItemGroup>
...
...
src/EditorFeatures/TestUtilities/CodeActions/CSharpCodeFixVerifier`2+Test.cs
浏览文件 @
3cab2e21
...
...
@@ -44,6 +44,7 @@ public Test()
compilationOptions
=
compilationOptions
.
WithSpecificDiagnosticOptions
(
compilationOptions
.
SpecificDiagnosticOptions
.
SetItems
(
s_nullableWarnings
));
solution
=
solution
.
WithProjectCompilationOptions
(
projectId
,
compilationOptions
);
#if !CODE_STYLE // TODO: Add support for Options based tests in CodeStyle layer
var
options
=
solution
.
Options
;
foreach
(
var
(
key
,
value
)
in
Options
)
{
...
...
@@ -51,6 +52,7 @@ public Test()
}
solution
=
solution
.
WithOptions
(
options
);
#endif
return
solution
;
});
...
...
@@ -76,17 +78,25 @@ public Test()
/// </summary>
public
LanguageVersion
LanguageVersion
{
get
;
set
;
}
=
LanguageVersion
.
CSharp8
;
#if !CODE_STYLE // TODO: Add support for Options based tests in CodeStyle layer
/// <summary>
/// Gets a collection of options to apply to <see cref="Solution.Options"/> for testing. Values may be added
/// using a collection initializer.
/// </summary>
public
OptionsCollection
Options
{
get
;
}
=
new
OptionsCollection
(
LanguageNames
.
CSharp
);
#endif
public
Func
<
ImmutableArray
<
Diagnostic
>,
Diagnostic
?>?
DiagnosticSelector
{
get
;
set
;
}
protected
override
AnalyzerOptions
GetAnalyzerOptions
(
Project
project
)
{
return
new
WorkspaceAnalyzerOptions
(
base
.
GetAnalyzerOptions
(
project
),
project
.
Solution
);
var
analyzerOptions
=
base
.
GetAnalyzerOptions
(
project
);
#if !CODE_STYLE
analyzerOptions
=
new
WorkspaceAnalyzerOptions
(
analyzerOptions
,
project
.
Solution
);
#endif
return
analyzerOptions
;
}
protected
override
Diagnostic
?
TrySelectDiagnosticToFix
(
ImmutableArray
<
Diagnostic
>
fixableDiagnostics
)
...
...
src/EditorFeatures/TestUtilities/CodeActions/VisualBasicCodeFixVerifier`2+Test.cs
浏览文件 @
3cab2e21
...
...
@@ -31,6 +31,7 @@ public Test()
var
parseOptions
=
(
VisualBasicParseOptions
)
solution
.
GetRequiredProject
(
projectId
).
ParseOptions
!;
solution
=
solution
.
WithProjectParseOptions
(
projectId
,
parseOptions
.
WithLanguageVersion
(
LanguageVersion
));
#if !CODE_STYLE // TODO: Add support for Options based tests in CodeStyle layer
var
options
=
solution
.
Options
;
foreach
(
var
(
key
,
value
)
in
Options
)
{
...
...
@@ -38,6 +39,7 @@ public Test()
}
solution
=
solution
.
WithOptions
(
options
);
#endif
return
solution
;
});
...
...
@@ -49,17 +51,25 @@ public Test()
/// </summary>
public
LanguageVersion
LanguageVersion
{
get
;
set
;
}
=
LanguageVersion
.
VisualBasic16
;
#if !CODE_STYLE // TODO: Add support for Options based tests in CodeStyle layer
/// <summary>
/// Gets a collection of options to apply to <see cref="Solution.Options"/> for testing. Values may be added
/// using a collection initializer.
/// </summary>
public
OptionsCollection
Options
{
get
;
}
=
new
OptionsCollection
(
LanguageNames
.
VisualBasic
);
#endif
public
Func
<
ImmutableArray
<
Diagnostic
>,
Diagnostic
?>?
DiagnosticSelector
{
get
;
set
;
}
protected
override
AnalyzerOptions
GetAnalyzerOptions
(
Project
project
)
{
return
new
WorkspaceAnalyzerOptions
(
base
.
GetAnalyzerOptions
(
project
),
project
.
Solution
);
var
analyzerOptions
=
base
.
GetAnalyzerOptions
(
project
);
#if !CODE_STYLE
analyzerOptions
=
new
WorkspaceAnalyzerOptions
(
analyzerOptions
,
project
.
Solution
);
#endif
return
analyzerOptions
;
}
protected
override
Diagnostic
?
TrySelectDiagnosticToFix
(
ImmutableArray
<
Diagnostic
>
fixableDiagnostics
)
...
...
src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj
浏览文件 @
3cab2e21
...
...
@@ -95,7 +95,6 @@
<InternalsVisibleTo
Include=
"Microsoft.VisualStudio.Completion.Tests"
Key=
"$(CompletionTestsKey)"
WorkItem=
"https://github.com/dotnet/roslyn/issues/35081"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"..\..\..\CodeStyle\Core\Analyzers\AbstractCodeStyleDiagnosticAnalyzer.cs"
Link=
"CodeStyle\AbstractCodeStyleDiagnosticAnalyzer.cs"
/>
<Compile
Include=
"..\..\..\CodeStyle\Core\Analyzers\FormattingAnalyzerHelper.cs"
Link=
"Formatting\FormattingAnalyzerHelper.cs"
/>
<Compile
Include=
"..\..\..\CodeStyle\Core\CodeFixes\FormattingCodeFixHelper.cs"
Link=
"Formatting\FormattingCodeFixHelper.cs"
/>
<Compile
Include=
"..\..\..\Compilers\Core\Portable\Text\TextUtilities.cs"
Link=
"Shared\Utilities\TextUtilities.cs"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录