Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
21e84c16
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,发现更多精彩内容 >>
提交
21e84c16
编写于
8月 25, 2017
作者:
H
Heejae Chang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
report all partial method symbols.
上级
f86859e7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
6 deletion
+8
-6
src/Compilers/CSharp/Portable/Symbols/Source/SourceOrdinaryMethodSymbol.cs
...arp/Portable/Symbols/Source/SourceOrdinaryMethodSymbol.cs
+5
-5
src/Compilers/CSharp/Test/Semantic/Diagnostics/CompilationEventTests.cs
...CSharp/Test/Semantic/Diagnostics/CompilationEventTests.cs
+1
-0
src/Compilers/VisualBasic/Portable/Compilation/MethodCompiler.vb
...pilers/VisualBasic/Portable/Compilation/MethodCompiler.vb
+1
-1
src/Compilers/VisualBasic/Test/Semantic/Diagnostics/CompilationEventTests.vb
...lBasic/Test/Semantic/Diagnostics/CompilationEventTests.vb
+1
-0
未找到文件。
src/Compilers/CSharp/Portable/Symbols/Source/SourceOrdinaryMethodSymbol.cs
浏览文件 @
21e84c16
...
...
@@ -132,7 +132,7 @@ internal sealed class SourceOrdinaryMethodSymbol : SourceMemberMethodSymbol
syntax
.
Modifiers
.
Any
(
SyntaxKind
.
OverrideKeyword
))
{
diagnostics
.
Add
(
ErrorCode
.
ERR_OverrideWithConstraints
,
ErrorCode
.
ERR_OverrideWithConstraints
,
syntax
.
ConstraintClauses
[
0
].
WhereKeyword
.
GetLocation
());
}
}
...
...
@@ -328,8 +328,8 @@ private void MethodChecks(MethodDeclarationSyntax syntax, Binder withTypeParamsB
if
((
object
)
overriddenMethod
!=
null
)
{
CustomModifierUtils
.
CopyMethodCustomModifiers
(
overriddenMethod
,
this
,
out
_lazyReturnType
,
out
_lazyCustomModifiers
,
CustomModifierUtils
.
CopyMethodCustomModifiers
(
overriddenMethod
,
this
,
out
_lazyReturnType
,
out
_lazyCustomModifiers
,
out
_lazyParameters
,
alsoCopyParamsModifier
:
true
);
}
}
...
...
@@ -344,7 +344,7 @@ private void MethodChecks(MethodDeclarationSyntax syntax, Binder withTypeParamsB
Debug
.
Assert
(
_lazyExplicitInterfaceImplementations
.
IsDefault
);
_lazyExplicitInterfaceImplementations
=
ImmutableArray
.
Create
<
MethodSymbol
>(
implementedMethod
);
CustomModifierUtils
.
CopyMethodCustomModifiers
(
implementedMethod
,
this
,
out
_lazyReturnType
,
CustomModifierUtils
.
CopyMethodCustomModifiers
(
implementedMethod
,
this
,
out
_lazyReturnType
,
out
_lazyCustomModifiers
,
out
_lazyParameters
,
alsoCopyParamsModifier
:
false
);
}
...
...
@@ -441,7 +441,7 @@ private void CompleteAsyncMethodChecks(DiagnosticBag diagnosticsOpt, Cancellatio
{
AddDeclarationDiagnostics
(
diagnosticsOpt
);
}
if
(
IsPartialDefinition
&&
(
object
)
PartialImplementationPart
==
null
)
if
(
IsPartialDefinition
)
{
DeclaringCompilation
.
SymbolDeclaredEvent
(
this
);
}
...
...
src/Compilers/CSharp/Test/Semantic/Diagnostics/CompilationEventTests.cs
浏览文件 @
21e84c16
...
...
@@ -98,6 +98,7 @@ partial class C<T1>
"SymbolDeclaredCompilationEvent(F int C<T1>.F @ : (6,8)-(6,14))"
,
"SymbolDeclaredCompilationEvent(C C<T1> @ : (2,2)-(8,3), : (9,2)-(12,3))"
,
"SymbolDeclaredCompilationEvent(M void C<T1>.M(int x1) @ : (4,4)-(4,27))"
,
"SymbolDeclaredCompilationEvent(M void C<T1>.M(int x2) @ : (11,4)-(11,29))"
,
"SymbolDeclaredCompilationEvent(N N @ : (0,0)-(13,1))"
,
"SymbolDeclaredCompilationEvent(<empty> @ : (0,0)-(13,1))"
,
"SymbolDeclaredCompilationEvent(get_P int C<T1>.P.get @ : (5,21)-(5,25))"
,
...
...
src/Compilers/VisualBasic/Portable/Compilation/MethodCompiler.vb
浏览文件 @
21e84c16
...
...
@@ -634,7 +634,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
If
method
.
IsPartial
()
Then
Dim
impl
=
method
.
PartialImplementationPart
If
impl
IsNot
method
Then
If
CType
(
method
,
SourceMethodSymbol
).
SetDiagnostics
(
ImmutableArray
(
Of
Diagnostic
).
Empty
)
AndAlso
impl
Is
Nothing
Then
If
CType
(
method
,
SourceMethodSymbol
).
SetDiagnostics
(
ImmutableArray
(
Of
Diagnostic
).
Empty
)
Then
method
.
DeclaringCompilation
.
SymbolDeclaredEvent
(
method
)
End
If
...
...
src/Compilers/VisualBasic/Test/Semantic/Diagnostics/CompilationEventTests.vb
浏览文件 @
21e84c16
...
...
@@ -110,6 +110,7 @@ End Namespace
"SymbolDeclaredCompilationEvent(I C(Of T1).I As Integer @ TestQueuedSymbols.vb: (7,15)-(7,16))"
,
"SymbolDeclaredCompilationEvent(C C(Of T1) @ TestQueuedSymbols.vb: (1,4)-(11,13), TestQueuedSymbols.vb: (12,4)-(15,13))"
,
"SymbolDeclaredCompilationEvent(M Sub C(Of T1).M(x1 As Integer) @ TestQueuedSymbols.vb: (2,8)-(2,44))"
,
"SymbolDeclaredCompilationEvent(M Sub C(Of T1).M(x1 As Integer) @ TestQueuedSymbols.vb: (13,8)-(13,36))"
,
"SymbolDeclaredCompilationEvent(M2 Sub Mod1.M2() @ TestQueuedSymbols.vb: (17,8)-(17,24))"
,
"SymbolDeclaredCompilationEvent(get_P Property Get C(Of T1).P() As Integer)"
,
"SymbolDeclaredCompilationEvent(set_P Property Set C(Of T1).P(AutoPropertyValue As Integer))"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录