Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
37ccee67
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,发现更多精彩内容 >>
未验证
提交
37ccee67
编写于
1月 09, 2020
作者:
R
Rikki Gibson
提交者:
GitHub
1月 09, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #40833 from 333fred/annotate-binder
Annotate Binder.cs and BuckStopsHereBinder
上级
8b7bed34
1185a512
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
109 addition
and
81 deletion
+109
-81
src/Compilers/CSharp/Portable/Binder/Binder.cs
src/Compilers/CSharp/Portable/Binder/Binder.cs
+93
-65
src/Compilers/CSharp/Portable/Binder/Binder_Expressions.cs
src/Compilers/CSharp/Portable/Binder/Binder_Expressions.cs
+1
-1
src/Compilers/CSharp/Portable/Binder/Binder_Statements.cs
src/Compilers/CSharp/Portable/Binder/Binder_Statements.cs
+1
-1
src/Compilers/CSharp/Portable/Binder/BuckStopsHereBinder.cs
src/Compilers/CSharp/Portable/Binder/BuckStopsHereBinder.cs
+11
-11
src/Compilers/CSharp/Portable/Symbols/AliasSymbol.cs
src/Compilers/CSharp/Portable/Symbols/AliasSymbol.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Tuples/TupleTypeSymbol.cs
...mpilers/CSharp/Portable/Symbols/Tuples/TupleTypeSymbol.cs
+2
-2
未找到文件。
src/Compilers/CSharp/Portable/Binder/Binder.cs
浏览文件 @
37ccee67
此差异已折叠。
点击以展开。
src/Compilers/CSharp/Portable/Binder/Binder_Expressions.cs
浏览文件 @
37ccee67
...
...
@@ -90,7 +90,7 @@ protected bool InCrefButNotParameterOrReturnType
/// </summary>
protected
virtual
bool
IsUnboundTypeAllowed
(
GenericNameSyntax
syntax
)
{
return
_n
ext
.
IsUnboundTypeAllowed
(
syntax
);
return
N
ext
.
IsUnboundTypeAllowed
(
syntax
);
}
/// <summary>
...
...
src/Compilers/CSharp/Portable/Binder/Binder_Statements.cs
浏览文件 @
37ccee67
...
...
@@ -29,7 +29,7 @@ internal partial class Binder
/// </remarks>
internal
virtual
ImmutableHashSet
<
Symbol
>
LockedOrDisposedVariables
{
get
{
return
_n
ext
.
LockedOrDisposedVariables
;
}
get
{
return
N
ext
.
LockedOrDisposedVariables
;
}
}
/// <remarks>
...
...
src/Compilers/CSharp/Portable/Binder/BuckStopsHereBinder.cs
浏览文件 @
37ccee67
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#
nullable
enable
using
System.Collections.Generic
;
using
System.Collections.Immutable
;
using
System.Diagnostics
;
using
Microsoft.CodeAnalysis.CSharp.Symbols
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Roslyn.Utilities
;
...
...
@@ -12,14 +12,14 @@ namespace Microsoft.CodeAnalysis.CSharp
/// <summary>
/// A binder that knows no symbols and will not delegate further.
/// </summary>
internal
partial
class
BuckStopsHereBinder
:
Binder
internal
class
BuckStopsHereBinder
:
Binder
{
internal
BuckStopsHereBinder
(
CSharpCompilation
compilation
)
:
base
(
compilation
)
{
}
internal
override
ImportChain
ImportChain
internal
override
ImportChain
?
ImportChain
{
get
{
...
...
@@ -44,12 +44,12 @@ internal override Imports GetImports(ConsList<TypeSymbol> basesBeingResolved)
return
Imports
.
Empty
;
}
protected
override
SourceLocalSymbol
LookupLocal
(
SyntaxToken
nameToken
)
protected
override
SourceLocalSymbol
?
LookupLocal
(
SyntaxToken
nameToken
)
{
return
null
;
}
protected
override
LocalFunctionSymbol
LookupLocalFunction
(
SyntaxToken
nameToken
)
protected
override
LocalFunctionSymbol
?
LookupLocalFunction
(
SyntaxToken
nameToken
)
{
return
null
;
}
...
...
@@ -80,7 +80,7 @@ internal override ConsList<FieldSymbol> FieldsBeingBound
}
}
internal
override
LocalSymbol
LocalInProgress
internal
override
LocalSymbol
?
LocalInProgress
{
get
{
...
...
@@ -117,7 +117,7 @@ internal override bool IsIndirectlyInIterator
}
}
internal
override
GeneratedLabelSymbol
BreakLabel
internal
override
GeneratedLabelSymbol
?
BreakLabel
{
get
{
...
...
@@ -125,7 +125,7 @@ internal override GeneratedLabelSymbol BreakLabel
}
}
internal
override
GeneratedLabelSymbol
ContinueLabel
internal
override
GeneratedLabelSymbol
?
ContinueLabel
{
get
{
...
...
@@ -133,7 +133,7 @@ internal override GeneratedLabelSymbol ContinueLabel
}
}
internal
override
BoundExpression
ConditionalReceiverExpression
internal
override
BoundExpression
?
ConditionalReceiverExpression
{
get
{
...
...
@@ -149,7 +149,7 @@ internal override TypeWithAnnotations GetIteratorElementType()
throw
ExceptionUtilities
.
Unreachable
;
}
internal
override
Symbol
ContainingMemberOrLambda
internal
override
Symbol
?
ContainingMemberOrLambda
{
get
{
...
...
@@ -174,7 +174,7 @@ internal override bool AreNullableAnnotationsGloballyEnabled()
}
}
internal
override
Binder
GetBinder
(
SyntaxNode
node
)
internal
override
Binder
?
GetBinder
(
SyntaxNode
node
)
{
return
null
;
}
...
...
src/Compilers/CSharp/Portable/Symbols/AliasSymbol.cs
浏览文件 @
37ccee67
...
...
@@ -235,7 +235,7 @@ public override Accessibility DeclaredAccessibility
/// return that as the "containing" symbol, even though the alias isn't a member of the
/// namespace as such.
/// </summary>
public
override
Symbol
ContainingSymbol
public
override
Symbol
?
ContainingSymbol
{
get
{
...
...
src/Compilers/CSharp/Portable/Symbols/Tuples/TupleTypeSymbol.cs
浏览文件 @
37ccee67
...
...
@@ -250,7 +250,7 @@ private static NamedTypeSymbol ConstructTupleUnderlyingType(NamedTypeSymbol firs
return
currentSymbol
;
}
private
static
void
ReportUseSiteAndObsoleteDiagnostics
(
CSharpSyntaxNode
?
syntax
,
DiagnosticBag
?
diagnostics
,
NamedTypeSymbol
firstTupleType
)
private
static
void
ReportUseSiteAndObsoleteDiagnostics
(
CSharpSyntaxNode
?
syntax
,
DiagnosticBag
diagnostics
,
NamedTypeSymbol
firstTupleType
)
{
Binder
.
ReportUseSiteDiagnostics
(
firstTupleType
,
diagnostics
,
syntax
);
Binder
.
ReportDiagnosticsIfObsoleteInternal
(
diagnostics
,
firstTupleType
,
syntax
,
firstTupleType
.
ContainingType
,
BinderFlags
.
None
);
...
...
@@ -259,7 +259,7 @@ private static void ReportUseSiteAndObsoleteDiagnostics(CSharpSyntaxNode? syntax
/// <summary>
/// For tuples with no natural type, we still need to verify that an underlying type of proper arity exists, and report if otherwise.
/// </summary>
internal
static
void
VerifyTupleTypePresent
(
int
cardinality
,
CSharpSyntaxNode
?
syntax
,
CSharpCompilation
compilation
,
DiagnosticBag
?
diagnostics
)
internal
static
void
VerifyTupleTypePresent
(
int
cardinality
,
CSharpSyntaxNode
?
syntax
,
CSharpCompilation
compilation
,
DiagnosticBag
diagnostics
)
{
Debug
.
Assert
(
diagnostics
is
object
&&
syntax
is
object
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录