Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
db4b3b4c
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,发现更多精彩内容 >>
提交
db4b3b4c
编写于
6月 28, 2019
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make fields readonly
上级
08656195
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
15 addition
and
15 deletion
+15
-15
src/EditorFeatures/CSharpTest/CodeActions/Preview/PreviewTests.cs
...orFeatures/CSharpTest/CodeActions/Preview/PreviewTests.cs
+1
-1
src/EditorFeatures/CSharpTest/Diagnostics/MockDiagnosticAnalyzerTests.cs
...res/CSharpTest/Diagnostics/MockDiagnosticAnalyzerTests.cs
+1
-1
src/EditorFeatures/CSharpTest/Diagnostics/Suppression/SuppressionTests.cs
...es/CSharpTest/Diagnostics/Suppression/SuppressionTests.cs
+3
-3
src/EditorFeatures/CSharpTest/Diagnostics/UseImplicitOrExplicitType/UseImplicitTypeTests.cs
...nostics/UseImplicitOrExplicitType/UseImplicitTypeTests.cs
+1
-1
src/EditorFeatures/CSharpTest/EncapsulateField/EncapsulateFieldTestState.cs
.../CSharpTest/EncapsulateField/EncapsulateFieldTestState.cs
+1
-1
src/EditorFeatures/CSharpTest/MakeLocalFunctionStatic/MakeLocalFunctionStaticTests.cs
...t/MakeLocalFunctionStatic/MakeLocalFunctionStaticTests.cs
+2
-2
src/EditorFeatures/CSharpTest/SymbolId/SymbolKeyTestBase.cs
src/EditorFeatures/CSharpTest/SymbolId/SymbolKeyTestBase.cs
+1
-1
src/EditorFeatures/CSharpTest/UseLocalFunction/UseLocalFunctionTests.cs
...ures/CSharpTest/UseLocalFunction/UseLocalFunctionTests.cs
+2
-2
src/EditorFeatures/CSharpTest/UseNamedArguments/UseNamedArgumentsTests.cs
...es/CSharpTest/UseNamedArguments/UseNamedArgumentsTests.cs
+1
-1
src/EditorFeatures/CSharpTest/UseSimpleUsingStatement/UseSimpleUsingStatementTests.cs
...t/UseSimpleUsingStatement/UseSimpleUsingStatementTests.cs
+2
-2
未找到文件。
src/EditorFeatures/CSharpTest/CodeActions/Preview/PreviewTests.cs
浏览文件 @
db4b3b4c
...
...
@@ -40,7 +40,7 @@ public sealed override Task ComputeRefactoringsAsync(CodeRefactoringContext cont
private
class
MyCodeAction
:
CodeAction
{
private
Document
_oldDocument
;
private
readonly
Document
_oldDocument
;
public
MyCodeAction
(
Document
document
)
{
...
...
src/EditorFeatures/CSharpTest/Diagnostics/MockDiagnosticAnalyzerTests.cs
浏览文件 @
db4b3b4c
...
...
@@ -16,7 +16,7 @@ public partial class MockDiagnosticAnalyzerTests : AbstractCSharpDiagnosticProvi
private
class
MockDiagnosticAnalyzer
:
DiagnosticAnalyzer
{
public
const
string
Id
=
"MockDiagnostic"
;
private
DiagnosticDescriptor
_descriptor
=
new
DiagnosticDescriptor
(
Id
,
"MockDiagnostic"
,
"MockDiagnostic"
,
"InternalCategory"
,
DiagnosticSeverity
.
Warning
,
isEnabledByDefault
:
true
);
private
readonly
DiagnosticDescriptor
_descriptor
=
new
DiagnosticDescriptor
(
Id
,
"MockDiagnostic"
,
"MockDiagnostic"
,
"InternalCategory"
,
DiagnosticSeverity
.
Warning
,
isEnabledByDefault
:
true
);
public
override
ImmutableArray
<
DiagnosticDescriptor
>
SupportedDiagnostics
{
...
...
src/EditorFeatures/CSharpTest/Diagnostics/Suppression/SuppressionTests.cs
浏览文件 @
db4b3b4c
...
...
@@ -512,7 +512,7 @@ public class UserErrorDiagnosticSuppressionTests : CSharpPragmaWarningDisableSup
{
private
class
UserDiagnosticAnalyzer
:
DiagnosticAnalyzer
{
private
DiagnosticDescriptor
_descriptor
=
private
readonly
DiagnosticDescriptor
_descriptor
=
new
DiagnosticDescriptor
(
"ErrorDiagnostic"
,
"ErrorDiagnostic"
,
"ErrorDiagnostic"
,
"ErrorDiagnostic"
,
DiagnosticSeverity
.
Error
,
isEnabledByDefault
:
true
);
public
override
ImmutableArray
<
DiagnosticDescriptor
>
SupportedDiagnostics
...
...
@@ -577,7 +577,7 @@ public class DiagnosticWithBadIdSuppressionTests : CSharpPragmaWarningDisableSup
private
class
UserDiagnosticAnalyzer
:
DiagnosticAnalyzer
{
private
DiagnosticDescriptor
_descriptor
=
private
readonly
DiagnosticDescriptor
_descriptor
=
new
DiagnosticDescriptor
(
"@~DiagnosticWithBadId"
,
"DiagnosticWithBadId"
,
"DiagnosticWithBadId"
,
"DiagnosticWithBadId"
,
DiagnosticSeverity
.
Info
,
isEnabledByDefault
:
true
);
public
override
ImmutableArray
<
DiagnosticDescriptor
>
SupportedDiagnostics
...
...
@@ -1557,7 +1557,7 @@ public class UserInfoDiagnosticSuppressionTests : CSharpLocalSuppressMessageSupp
{
private
class
UserDiagnosticAnalyzer
:
DiagnosticAnalyzer
{
private
DiagnosticDescriptor
_descriptor
=
private
readonly
DiagnosticDescriptor
_descriptor
=
new
DiagnosticDescriptor
(
"InfoDiagnostic"
,
"InfoDiagnostic"
,
"InfoDiagnostic"
,
"InfoDiagnostic"
,
DiagnosticSeverity
.
Info
,
isEnabledByDefault
:
true
);
public
override
ImmutableArray
<
DiagnosticDescriptor
>
SupportedDiagnostics
...
...
src/EditorFeatures/CSharpTest/Diagnostics/UseImplicitOrExplicitType/UseImplicitTypeTests.cs
浏览文件 @
db4b3b4c
...
...
@@ -1768,7 +1768,7 @@ public async Task SuggestVarOnLocalWithNonApparentCustomArrayType()
await
TestMissingInRegularAndScriptAsync
(
before
,
new
TestParameters
(
options
:
ImplicitTypeWhereApparent
()));
}
private
static
string
trivial2uple
=
private
static
readonly
string
trivial2uple
=
@"
namespace System
{
...
...
src/EditorFeatures/CSharpTest/EncapsulateField/EncapsulateFieldTestState.cs
浏览文件 @
db4b3b4c
...
...
@@ -22,7 +22,7 @@ namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.EncapsulateField
{
internal
class
EncapsulateFieldTestState
:
IDisposable
{
private
TestHostDocument
_testDocument
;
private
readonly
TestHostDocument
_testDocument
;
public
TestWorkspace
Workspace
{
get
;
}
public
Document
TargetDocument
{
get
;
}
public
string
NotificationMessage
{
get
;
private
set
;
}
...
...
src/EditorFeatures/CSharpTest/MakeLocalFunctionStatic/MakeLocalFunctionStaticTests.cs
浏览文件 @
db4b3b4c
...
...
@@ -18,8 +18,8 @@ public partial class MakeLocalFunctionStaticTests : AbstractCSharpDiagnosticProv
internal
override
(
DiagnosticAnalyzer
,
CodeFixProvider
)
CreateDiagnosticProviderAndFixer
(
Workspace
workspace
)
=>
(
new
MakeLocalFunctionStaticDiagnosticAnalyzer
(),
new
MakeLocalFunctionStaticCodeFixProvider
());
private
static
ParseOptions
CSharp72ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp7_2
);
private
static
ParseOptions
CSharp8ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp8
);
private
static
readonly
ParseOptions
CSharp72ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp7_2
);
private
static
readonly
ParseOptions
CSharp8ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp8
);
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsMakeLocalFunctionStatic
)]
public
async
Task
TestAboveCSharp8
()
...
...
src/EditorFeatures/CSharpTest/SymbolId/SymbolKeyTestBase.cs
浏览文件 @
db4b3b4c
...
...
@@ -271,7 +271,7 @@ private static void GetSourceAliasSymbols(CSharpCompilation comp, List<ISymbol>
private
class
LocalSymbolDumper
{
private
CSharpCompilation
_compilation
;
private
readonly
CSharpCompilation
_compilation
;
public
LocalSymbolDumper
(
CSharpCompilation
compilation
)
{
_compilation
=
compilation
;
...
...
src/EditorFeatures/CSharpTest/UseLocalFunction/UseLocalFunctionTests.cs
浏览文件 @
db4b3b4c
...
...
@@ -18,8 +18,8 @@ public partial class UseLocalFunctionTests : AbstractCSharpDiagnosticProviderBas
internal
override
(
DiagnosticAnalyzer
,
CodeFixProvider
)
CreateDiagnosticProviderAndFixer
(
Workspace
workspace
)
=>
(
new
CSharpUseLocalFunctionDiagnosticAnalyzer
(),
new
CSharpUseLocalFunctionCodeFixProvider
());
private
static
ParseOptions
CSharp72ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp7_2
);
private
static
ParseOptions
CSharp8ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp8
);
private
static
readonly
ParseOptions
CSharp72ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp7_2
);
private
static
readonly
ParseOptions
CSharp8ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp8
);
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsUseLocalFunction
)]
public
async
Task
TestMissingBeforeCSharp7
()
...
...
src/EditorFeatures/CSharpTest/UseNamedArguments/UseNamedArgumentsTests.cs
浏览文件 @
db4b3b4c
...
...
@@ -14,7 +14,7 @@ namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.UseNamedArguments
{
public
class
UseNamedArgumentsTests
:
AbstractCSharpCodeActionTest
{
private
static
ParseOptions
CSharp72
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp7_2
);
private
static
readonly
ParseOptions
CSharp72
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp7_2
);
protected
override
CodeRefactoringProvider
CreateCodeRefactoringProvider
(
Workspace
workspace
,
TestParameters
parameters
)
=>
new
CSharpUseNamedArgumentsCodeRefactoringProvider
();
...
...
src/EditorFeatures/CSharpTest/UseSimpleUsingStatement/UseSimpleUsingStatementTests.cs
浏览文件 @
db4b3b4c
...
...
@@ -19,8 +19,8 @@ public partial class UseSimpleUsingStatementTests : AbstractCSharpDiagnosticProv
internal
override
(
DiagnosticAnalyzer
,
CodeFixProvider
)
CreateDiagnosticProviderAndFixer
(
Workspace
workspace
)
=>
(
new
UseSimpleUsingStatementDiagnosticAnalyzer
(),
new
UseSimpleUsingStatementCodeFixProvider
());
private
static
ParseOptions
CSharp72ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp7_2
);
private
static
ParseOptions
CSharp8ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp8
);
private
static
readonly
ParseOptions
CSharp72ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp7_2
);
private
static
readonly
ParseOptions
CSharp8ParseOptions
=
CSharpParseOptions
.
Default
.
WithLanguageVersion
(
LanguageVersion
.
CSharp8
);
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsUseSimpleUsingStatement
)]
public
async
Task
TestAboveCSharp8
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录