Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
1b70f18b
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,发现更多精彩内容 >>
未验证
提交
1b70f18b
编写于
4月 19, 2019
作者:
F
Fredric Silberberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cleanup missed prototype comments.
上级
38733cc7
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
31 addition
and
14 deletion
+31
-14
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenTupleEqualityTests.cs
...ers/CSharp/Test/Emit/CodeGen/CodeGenTupleEqualityTests.cs
+1
-1
src/Compilers/CSharp/Test/Emit/CodeGen/PatternTests.cs
src/Compilers/CSharp/Test/Emit/CodeGen/PatternTests.cs
+1
-1
src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs
...rp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs
+17
-0
src/EditorFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs
...DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs
+3
-3
src/EditorFeatures/CSharpTest/Diagnostics/Suppression/SuppressionAllCodeTests.cs
...rpTest/Diagnostics/Suppression/SuppressionAllCodeTests.cs
+2
-2
src/EditorFeatures/CSharpTest/ExtractMethod/ExtractMethodTests.cs
...orFeatures/CSharpTest/ExtractMethod/ExtractMethodTests.cs
+2
-2
src/EditorFeatures/CSharpTest/ExtractMethod/SelectionValidatorTests.cs
...tures/CSharpTest/ExtractMethod/SelectionValidatorTests.cs
+1
-1
src/EditorFeatures/CSharpTest/NameTupleElement/NameTupleElementTests.cs
...ures/CSharpTest/NameTupleElement/NameTupleElementTests.cs
+1
-1
src/EditorFeatures/CSharpTest/RemoveUnusedParametersAndValues/RemoveUnusedParametersTests.cs
...eUnusedParametersAndValues/RemoveUnusedParametersTests.cs
+1
-1
src/EditorFeatures/CSharpTest/UseExplicitTypeForConst/UseExplicitTypeForConstTests.cs
...t/UseExplicitTypeForConst/UseExplicitTypeForConstTests.cs
+1
-1
src/EditorFeatures/Test2/Expansion/NameExpansionTests.vb
src/EditorFeatures/Test2/Expansion/NameExpansionTests.vb
+1
-1
未找到文件。
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenTupleEqualityTests.cs
浏览文件 @
1b70f18b
...
...
@@ -2191,7 +2191,7 @@ public static void Main()
Operator '!=' cannot be applied to operands of type 'System.ValueTuple<int,int,int>' and 'System.ValueTuple<int,int,int>'"
);
}
//
PROTOPTYPE(nullable-api):
Support deconstruction assignment
//
https://github.com/dotnet/roslyn/issues/35010
Support deconstruction assignment
[
Fact
]
public
void
TestComparisonWithDeconstructionResult
()
{
...
...
src/Compilers/CSharp/Test/Emit/CodeGen/PatternTests.cs
浏览文件 @
1b70f18b
...
...
@@ -1970,7 +1970,7 @@ .maxstack 1
}"
);
}
//
PROTOPTYPE(nullable-api):
Support deconstruction assignment
//
https://github.com/dotnet/roslyn/issues/35010
Support deconstruction assignment
[
Fact
]
public
void
DoNotShareInputForMutatingWhenClause
()
{
...
...
src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs
浏览文件 @
1b70f18b
...
...
@@ -46332,6 +46332,23 @@ static void F(object? x, object? y)
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").WithLocation(11, 13));
}
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/35157")]
public void TupleTypeInference_08()
{
var source =
@"
class C
{
void M()
{
_ = (null, 2);
}
}";
var comp = CreateCompilation(source, options: WithNonNullTypesTrue());
comp.VerifyDiagnostics();
}
[Fact]
[WorkItem(29970, "https://github.com/dotnet/roslyn/issues/29970")]
public void Tuple_Assignment_01()
src/EditorFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs
浏览文件 @
1b70f18b
...
...
@@ -20,7 +20,7 @@ namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Diagnostics.UserDiagnos
[
UseExportProvider
]
public
class
DiagnosticAnalyzerDriverTests
{
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
]
[
Fact
]
public
async
Task
DiagnosticAnalyzerDriverAllInOne
()
{
var
source
=
TestResource
.
AllInOneCSharpCode
;
...
...
@@ -88,7 +88,7 @@ class C
}
}
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
]
[
Fact
]
[
WorkItem
(
759
,
"https://github.com/dotnet/roslyn/issues/759"
)]
public
async
Task
DiagnosticAnalyzerDriverIsSafeAgainstAnalyzerExceptions
()
{
...
...
@@ -129,7 +129,7 @@ public void DiagnosticServiceIsSafeAgainstAnalyzerExceptions_2()
Assert
.
True
(
exceptions
.
Count
==
0
);
}
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
]
[
Fact
]
public
async
Task
AnalyzerOptionsArePassedToAllAnalyzers
()
{
using
(
var
workspace
=
TestWorkspace
.
CreateCSharp
(
TestResource
.
AllInOneCSharpCode
,
TestOptions
.
Regular
))
...
...
src/EditorFeatures/CSharpTest/Diagnostics/Suppression/SuppressionAllCodeTests.cs
浏览文件 @
1b70f18b
...
...
@@ -26,13 +26,13 @@ protected override TestWorkspace CreateWorkspaceFromFile(string definition, Pars
[
WorkItem
(
956453
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/956453"
)]
[
WorkItem
(
1007071
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1007071"
)]
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsSuppression
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsSuppression
)]
public
async
Task
TestPragmaWarningOnEveryNodes
()
{
await
TestPragmaAsync
(
TestResource
.
AllInOneCSharpCode
,
CSharpParseOptions
.
Default
,
verifier
:
t
=>
t
.
IndexOf
(
"#pragma warning disable"
,
StringComparison
.
Ordinal
)
>=
0
);
}
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsSuppression
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsSuppression
)]
public
async
Task
TestSuppressionWithAttributeOnEveryNodes
()
{
await
TestSuppressionWithAttributeAsync
(
...
...
src/EditorFeatures/CSharpTest/ExtractMethod/ExtractMethodTests.cs
浏览文件 @
1b70f18b
...
...
@@ -9549,7 +9549,7 @@ private static int NewMethod()
}
[
WorkItem
(
604389
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/604389"
)]
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
ExtractMethod
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
ExtractMethod
)]
public
async
Task
TestExtractLiteralExpression
()
{
var
code
=
...
...
@@ -9587,7 +9587,7 @@ class C
}
[
WorkItem
(
604389
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/604389"
)]
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
ExtractMethod
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
ExtractMethod
)]
public
async
Task
TestExtractCollectionInitializer
()
{
var
code
=
...
...
src/EditorFeatures/CSharpTest/ExtractMethod/SelectionValidatorTests.cs
浏览文件 @
1b70f18b
...
...
@@ -1330,7 +1330,7 @@ static void Main()
[
WorkItem
(
540787
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540787"
)]
[
WorkItem
(
542722
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542722"
)]
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
ExtractMethod
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
ExtractMethod
)]
public
async
Task
DontCrash
()
{
await
IterateAllAsync
(
TestResource
.
AllInOneCSharpCode
);
...
...
src/EditorFeatures/CSharpTest/NameTupleElement/NameTupleElementTests.cs
浏览文件 @
1b70f18b
...
...
@@ -85,7 +85,7 @@ public async Task TestInCall_FirstElement_AlreadyNamed()
await
TestMissingAsync
(
@"class C { void M((int arg1, int arg2) x) => M(([||]arg1: 1, 2)); }"
);
}
[
Fact
(
Skip
=
"
PROTOTYPE(nullable-api)
"
)]
[
Fact
(
Skip
=
"
https://github.com/dotnet/roslyn/issues/35157
"
)]
public
async
Task
TestUntypedTuple
()
{
await
TestMissingAsync
(
...
...
src/EditorFeatures/CSharpTest/RemoveUnusedParametersAndValues/RemoveUnusedParametersTests.cs
浏览文件 @
1b70f18b
...
...
@@ -1058,7 +1058,7 @@ public int M2(int p3, int p4)
}
[
WorkItem
(
32287
,
"https://github.com/dotnet/roslyn/issues/32287"
)]
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsRemoveUnusedParameters
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsRemoveUnusedParameters
)]
public
async
Task
Parameter_DeclarationPatternWithNullDeclaredSymbol
()
{
await
TestDiagnosticMissingAsync
(
...
...
src/EditorFeatures/CSharpTest/UseExplicitTypeForConst/UseExplicitTypeForConstTests.cs
浏览文件 @
1b70f18b
...
...
@@ -170,7 +170,7 @@ void M()
}"
);
}
[
Fact
(
Skip
=
"PROTOTYPE(nullable-api)"
)
]
[
Fact
]
public
async
Task
TestNotWithArrayInitializer
()
{
await
TestMissingInRegularAndScriptAsync
(
...
...
src/EditorFeatures/Test2/Expansion/NameExpansionTests.vb
浏览文件 @
1b70f18b
...
...
@@ -9,7 +9,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Expansion
#Region "C# Tests"
<
WorkItem
(
604392
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/604392"
)
>
<
Fact
(
Skip
:
=
"PROTOTYPE(nullable-api)"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Expansion
)
>
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Expansion
)
>
Public
Async
Function
TestNoExpansionForPropertyNamesOfObjectInitializers
()
As
Task
Dim
input
=
<
Workspace
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录