Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
fd942988
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,发现更多精彩内容 >>
未验证
提交
fd942988
编写于
2月 21, 2019
作者:
F
Fredric Silberberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Address PR feedback.
上级
d66596a2
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
19 addition
and
19 deletion
+19
-19
src/Compilers/CSharp/Portable/Symbols/DiscardSymbol.cs
src/Compilers/CSharp/Portable/Symbols/DiscardSymbol.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/EventSymbol.cs
src/Compilers/CSharp/Portable/Symbols/EventSymbol.cs
+2
-2
src/Compilers/CSharp/Portable/Symbols/FieldSymbol.cs
src/Compilers/CSharp/Portable/Symbols/FieldSymbol.cs
+2
-2
src/Compilers/CSharp/Portable/Symbols/LocalSymbol.cs
src/Compilers/CSharp/Portable/Symbols/LocalSymbol.cs
+2
-2
src/Compilers/CSharp/Portable/Symbols/MethodSymbol.cs
src/Compilers/CSharp/Portable/Symbols/MethodSymbol.cs
+6
-6
src/Compilers/CSharp/Portable/Symbols/ParameterSymbol.cs
src/Compilers/CSharp/Portable/Symbols/ParameterSymbol.cs
+2
-2
src/Compilers/CSharp/Portable/Symbols/TypeParameterSymbol.cs
src/Compilers/CSharp/Portable/Symbols/TypeParameterSymbol.cs
+1
-1
src/Compilers/Core/Portable/PublicAPI.Unshipped.txt
src/Compilers/Core/Portable/PublicAPI.Unshipped.txt
+1
-1
src/Compilers/Core/Portable/Symbols/ITypeParameterSymbol.cs
src/Compilers/Core/Portable/Symbols/ITypeParameterSymbol.cs
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/TypeParameterSymbol.vb
...ilers/VisualBasic/Portable/Symbols/TypeParameterSymbol.vb
+1
-1
未找到文件。
src/Compilers/CSharp/Portable/Symbols/DiscardSymbol.cs
浏览文件 @
fd942988
...
...
@@ -14,8 +14,8 @@ public DiscardSymbol(TypeSymbol type)
}
ITypeSymbol
IDiscardSymbol
.
Type
=>
Type
;
Nullability
IDiscardSymbol
.
Nullability
=>
Nullability
.
NotComputed
;
public
TypeSymbol
Type
{
get
;
}
public
Nullability
Nullability
=>
Nullability
.
NotComputed
;
/// <summary>
/// Produce a fresh discard symbol for testing.
...
...
src/Compilers/CSharp/Portable/Symbols/EventSymbol.cs
浏览文件 @
fd942988
...
...
@@ -49,8 +49,6 @@ protected override sealed Symbol OriginalSymbolDefinition
/// </summary>
public
abstract
TypeSymbolWithAnnotations
Type
{
get
;
}
public
Nullability
Nullability
=>
Nullability
.
NotComputed
;
/// <summary>
/// The 'add' accessor of the event. Null only in error scenarios.
/// </summary>
...
...
@@ -343,6 +341,8 @@ ITypeSymbol IEventSymbol.Type
}
}
Nullability
IEventSymbol
.
Nullability
=>
Nullability
.
NotComputed
;
IMethodSymbol
IEventSymbol
.
AddMethod
{
get
...
...
src/Compilers/CSharp/Portable/Symbols/FieldSymbol.cs
浏览文件 @
fd942988
...
...
@@ -58,8 +58,6 @@ public TypeSymbolWithAnnotations Type
internal
abstract
TypeSymbolWithAnnotations
GetFieldType
(
ConsList
<
FieldSymbol
>
fieldsBeingBound
);
public
Nullability
Nullability
=>
Nullability
.
NotComputed
;
/// <summary>
/// If this field serves as a backing variable for an automatically generated
/// property or a field-like event, returns that
...
...
@@ -457,6 +455,8 @@ ITypeSymbol IFieldSymbol.Type
}
}
Nullability
IFieldSymbol
.
Nullability
=>
Nullability
.
NotComputed
;
ImmutableArray
<
CustomModifier
>
IFieldSymbol
.
CustomModifiers
{
get
{
return
this
.
Type
.
CustomModifiers
;
}
...
...
src/Compilers/CSharp/Portable/Symbols/LocalSymbol.cs
浏览文件 @
fd942988
...
...
@@ -54,8 +54,6 @@ protected LocalSymbol()
get
;
}
public
Nullability
Nullability
=>
Nullability
.
NotComputed
;
/// <summary>
/// WARN WARN WARN: If you access this via the semantic model, things will break (since the initializer may not have been bound).
///
...
...
@@ -369,6 +367,8 @@ ITypeSymbol ILocalSymbol.Type
}
}
Nullability
ILocalSymbol
.
Nullability
=>
Nullability
.
NotComputed
;
bool
ILocalSymbol
.
IsFunctionValue
{
get
...
...
src/Compilers/CSharp/Portable/Symbols/MethodSymbol.cs
浏览文件 @
fd942988
...
...
@@ -204,8 +204,6 @@ public bool ReturnsByRefReadonly
/// </summary>
public
abstract
TypeSymbolWithAnnotations
ReturnType
{
get
;
}
public
Nullability
ReturnNullability
=>
Nullability
.
NotComputed
;
/// <summary>
/// Returns the type arguments that have been substituted for the type parameters.
/// If nothing has been substituted for a given type parameter,
...
...
@@ -213,8 +211,6 @@ public bool ReturnsByRefReadonly
/// </summary>
public
abstract
ImmutableArray
<
TypeSymbolWithAnnotations
>
TypeArguments
{
get
;
}
public
ImmutableArray
<
Nullability
>
TypeArgumentsNullabilities
=>
TypeArguments
.
SelectAsArray
(
_
=>
Nullability
.
NotComputed
);
/// <summary>
/// Get the type parameters on this method. If the method has not generic,
/// returns an empty list.
...
...
@@ -723,8 +719,6 @@ public virtual TypeSymbol ReceiverType
}
}
public
Nullability
ReceiverNullability
=>
Nullability
.
NotComputed
;
/// <summary>
/// If this method is a reduced extension method, returns a type inferred during reduction process for the type parameter.
/// </summary>
...
...
@@ -1014,6 +1008,8 @@ ITypeSymbol IMethodSymbol.ReturnType
}
}
Nullability
IMethodSymbol
.
ReturnNullability
=>
Nullability
.
NotComputed
;
ImmutableArray
<
ITypeSymbol
>
IMethodSymbol
.
TypeArguments
{
get
...
...
@@ -1022,6 +1018,8 @@ ImmutableArray<ITypeSymbol> IMethodSymbol.TypeArguments
}
}
ImmutableArray
<
Nullability
>
IMethodSymbol
.
TypeArgumentsNullabilities
=>
TypeArguments
.
SelectAsArray
(
_
=>
Nullability
.
NotComputed
);
ImmutableArray
<
ITypeParameterSymbol
>
IMethodSymbol
.
TypeParameters
{
get
...
...
@@ -1070,6 +1068,8 @@ ITypeSymbol IMethodSymbol.ReceiverType
}
}
Nullability
IMethodSymbol
.
ReceiverNullability
=>
Nullability
.
NotComputed
;
IMethodSymbol
IMethodSymbol
.
ReducedFrom
{
get
...
...
src/Compilers/CSharp/Portable/Symbols/ParameterSymbol.cs
浏览文件 @
fd942988
...
...
@@ -49,8 +49,6 @@ protected override sealed Symbol OriginalSymbolDefinition
/// </summary>
public
abstract
TypeSymbolWithAnnotations
Type
{
get
;
}
public
Nullability
Nullability
=>
Nullability
.
NotComputed
;
/// <summary>
/// Determines if the parameter ref, out or neither.
/// </summary>
...
...
@@ -426,6 +424,8 @@ ITypeSymbol IParameterSymbol.Type
get
{
return
this
.
Type
.
TypeSymbol
;
}
}
Nullability
IParameterSymbol
.
Nullability
=>
Nullability
.
NotComputed
;
ImmutableArray
<
CustomModifier
>
IParameterSymbol
.
CustomModifiers
{
get
{
return
this
.
Type
.
CustomModifiers
;
}
...
...
src/Compilers/CSharp/Portable/Symbols/TypeParameterSymbol.cs
浏览文件 @
fd942988
...
...
@@ -722,7 +722,7 @@ ImmutableArray<ITypeSymbol> ITypeParameterSymbol.ConstraintTypes
}
}
ImmutableArray
<
Nullability
>
ITypeParameterSymbol
.
Constraint
s
Nullabilities
ImmutableArray
<
Nullability
>
ITypeParameterSymbol
.
ConstraintNullabilities
{
get
=>
this
.
ConstraintTypesNoUseSiteDiagnostics
.
SelectAsArray
(
c
=>
Nullability
.
NotComputed
);
}
...
...
src/Compilers/Core/Portable/PublicAPI.Unshipped.txt
浏览文件 @
fd942988
...
...
@@ -10,7 +10,7 @@ Microsoft.CodeAnalysis.IMethodSymbol.ReturnNullability.get -> Microsoft.CodeAnal
Microsoft.CodeAnalysis.IMethodSymbol.TypeArgumentsNullabilities.get -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Nullability>
Microsoft.CodeAnalysis.INamedTypeSymbol.TypeArgumentsNullabilities.get -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Nullability>
Microsoft.CodeAnalysis.IParameterSymbol.Nullability.get -> Microsoft.CodeAnalysis.Nullability
Microsoft.CodeAnalysis.ITypeParameterSymbol.Constraint
s
Nullabilities.get -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Nullability>
Microsoft.CodeAnalysis.ITypeParameterSymbol.ConstraintNullabilities.get -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Nullability>
Microsoft.CodeAnalysis.ITypeParameterSymbol.ReferenceTypeConstraintNullability.get -> Microsoft.CodeAnalysis.Nullability
Microsoft.CodeAnalysis.ITypeSymbol.IsRefLikeType.get -> bool
Microsoft.CodeAnalysis.ITypeSymbol.ToDisplayParts(Microsoft.CodeAnalysis.Nullability topLevelNullability, Microsoft.CodeAnalysis.SymbolDisplayFormat format = null) -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
...
...
src/Compilers/Core/Portable/Symbols/ITypeParameterSymbol.cs
浏览文件 @
fd942988
...
...
@@ -68,7 +68,7 @@ public interface ITypeParameterSymbol : ITypeSymbol
ImmutableArray
<
ITypeSymbol
>
ConstraintTypes
{
get
;
}
// PROTOTYPE(nullable-api): Document
ImmutableArray
<
Nullability
>
Constraint
s
Nullabilities
{
get
;
}
ImmutableArray
<
Nullability
>
ConstraintNullabilities
{
get
;
}
/// <summary>
/// Get the original definition of this type symbol. If this symbol is derived from another
...
...
src/Compilers/VisualBasic/Portable/Symbols/TypeParameterSymbol.vb
浏览文件 @
fd942988
...
...
@@ -385,7 +385,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
End
Get
End
Property
Private
ReadOnly
Property
ITypeParameterSymbol_ConstraintsNullabilities
As
ImmutableArray
(
Of
Nullability
)
Implements
ITypeParameterSymbol
.
Constraint
s
Nullabilities
Private
ReadOnly
Property
ITypeParameterSymbol_ConstraintsNullabilities
As
ImmutableArray
(
Of
Nullability
)
Implements
ITypeParameterSymbol
.
ConstraintNullabilities
Get
Return
Me
.
ConstraintTypesNoUseSiteDiagnostics
.
SelectAsArray
(
Function
(
t
)
Nullability
.
NotComputed
)
End
Get
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录