Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
7bdf1ac8
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,发现更多精彩内容 >>
提交
7bdf1ac8
编写于
8月 24, 2016
作者:
N
Neal Gafter
提交者:
GitHub
8月 24, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #13235 from gafter/master-13203
Turn on /features:strict for all projects
上级
2a25c0e9
dcd21abd
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
14 addition
and
4 deletion
+14
-4
build/Targets/Settings.targets
build/Targets/Settings.targets
+1
-0
src/Compilers/CSharp/Portable/Compilation/SyntaxAndDeclarationManager.cs
...Sharp/Portable/Compilation/SyntaxAndDeclarationManager.cs
+4
-0
src/Compilers/CSharp/Portable/Syntax/LookupPosition.cs
src/Compilers/CSharp/Portable/Syntax/LookupPosition.cs
+1
-1
src/Compilers/Core/Portable/ReferenceManager/CommonReferenceManager.Resolution.cs
...ble/ReferenceManager/CommonReferenceManager.Resolution.cs
+2
-0
src/Compilers/VisualBasic/Portable/Symbols/Source/OverrideHidingHelper.vb
...sualBasic/Portable/Symbols/Source/OverrideHidingHelper.vb
+3
-2
src/EditorFeatures/Core/Implementation/InlineRename/InlineRenameSession.OpenTextBufferManager.cs
...InlineRename/InlineRenameSession.OpenTextBufferManager.cs
+1
-1
src/ExpressionEvaluator/Core/Source/ExpressionCompiler/EvaluationContextBase.cs
...r/Core/Source/ExpressionCompiler/EvaluationContextBase.cs
+1
-0
src/Features/Core/Portable/Diagnostics/EngineV2/DiagnosticIncrementalAnalyzer.AnalysisData.cs
...cs/EngineV2/DiagnosticIncrementalAnalyzer.AnalysisData.cs
+1
-0
未找到文件。
build/Targets/Settings.targets
浏览文件 @
7bdf1ac8
...
...
@@ -212,6 +212,7 @@
<DeployToSamplesSubfolder Condition="'$(DeployToSamplesSubfolder)' == ''">false</DeployToSamplesSubfolder>
<FileAlignment>512</FileAlignment>
<HighEntropyVA>true</HighEntropyVA>
<Features>strict</Features>
</PropertyGroup>
<!--
...
...
src/Compilers/CSharp/Portable/Compilation/SyntaxAndDeclarationManager.cs
浏览文件 @
7bdf1ac8
...
...
@@ -364,6 +364,10 @@ public SyntaxAndDeclarationManager RemoveSyntaxTrees(HashSet<SyntaxTree> trees)
Debug
.
Assert
(!
oldLoadDirectives
.
IsEmpty
);
GetRemoveSetForLoadedTrees
(
oldLoadDirectives
,
loadDirectiveMap
,
loadedSyntaxTreeMap
,
removeSet
);
}
else
{
oldLoadDirectives
=
ImmutableArray
<
LoadDirective
>.
Empty
;
}
removeSet
.
Add
(
oldTree
);
totalReferencedTreeCount
=
removeSet
.
Count
;
...
...
src/Compilers/CSharp/Portable/Syntax/LookupPosition.cs
浏览文件 @
7bdf1ac8
...
...
@@ -405,7 +405,7 @@ private static SyntaxToken GetFirstExcludedToken(StatementSyntax statement)
LocalFunctionStatementSyntax
localFunctionStmt
=
(
LocalFunctionStatementSyntax
)
statement
;
if
(
localFunctionStmt
.
Body
!=
null
)
return
GetFirstExcludedToken
(
localFunctionStmt
.
Body
);
if
(
localFunctionStmt
.
SemicolonToken
!=
null
)
if
(
localFunctionStmt
.
SemicolonToken
!=
default
(
SyntaxToken
)
)
return
localFunctionStmt
.
SemicolonToken
;
return
localFunctionStmt
.
ParameterList
.
GetLastToken
();
default
:
...
...
src/Compilers/Core/Portable/ReferenceManager/CommonReferenceManager.Resolution.cs
浏览文件 @
7bdf1ac8
...
...
@@ -63,6 +63,8 @@ public ResolvedReference(int index, MetadataImageKind kind)
Debug
.
Assert
(
index
>=
0
);
_index
=
index
+
1
;
_kind
=
kind
;
_aliasesOpt
=
default
(
ImmutableArray
<
string
>);
_recursiveAliasesOpt
=
default
(
ImmutableArray
<
string
>);
}
// initialized aliases
...
...
src/Compilers/VisualBasic/Portable/Symbols/Source/OverrideHidingHelper.vb
浏览文件 @
7bdf1ac8
...
...
@@ -573,8 +573,9 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
Friend
Class
OverrideHidingHelper
(
Of
TSymbol
As
Symbol
)
Inherits
OverrideHidingHelper
' Comparer for comparing signatures of TSymbols in a runtime-equivalent way
Private
Shared
ReadOnly
s_runtimeSignatureComparer
As
IEqualityComparer
(
Of
TSymbol
)
' Comparer for comparing signatures of TSymbols in a runtime-equivalent way.
' It is not ReadOnly because it is initialized by a Shared Sub New of another instance of this class.
Private
Shared
s_runtimeSignatureComparer
As
IEqualityComparer
(
Of
TSymbol
)
' Initialize the various kinds of comparers.
Shared
Sub
New
()
...
...
src/EditorFeatures/Core/Implementation/InlineRename/InlineRenameSession.OpenTextBufferManager.cs
浏览文件 @
7bdf1ac8
...
...
@@ -587,7 +587,7 @@ public SelectionTracking(OpenTextBufferManager openTextBufferManager)
// GetSpanInView() can return an empty collection if the tracking span isn't mapped to anything
// in the current view, specifically a `@model SomeModelClass` directive in a Razor file.
var
ss
=
textView
.
GetSpanInView
(
kvp
.
Value
.
TrackingSpan
.
GetSpan
(
snapshot
)).
FirstOrDefault
();
if
(
ss
!=
null
&&
(
ss
.
IntersectsWith
(
selection
.
ActivePoint
.
Position
)
||
ss
.
IntersectsWith
(
selection
.
AnchorPoint
.
Position
)))
if
(
ss
!=
default
(
SnapshotSpan
)
&&
(
ss
.
IntersectsWith
(
selection
.
ActivePoint
.
Position
)
||
ss
.
IntersectsWith
(
selection
.
AnchorPoint
.
Position
)))
{
return
Tuple
.
Create
(
kvp
.
Key
,
ss
);
}
...
...
src/ExpressionEvaluator/Core/Source/ExpressionCompiler/EvaluationContextBase.cs
浏览文件 @
7bdf1ac8
...
...
@@ -49,6 +49,7 @@ internal abstract class EvaluationContextBase
internal
string
GetErrorMessageAndMissingAssemblyIdentities
(
DiagnosticBag
diagnostics
,
DiagnosticFormatter
formatter
,
CultureInfo
preferredUICulture
,
AssemblyIdentity
linqLibrary
,
out
bool
useReferencedModulesOnly
,
out
ImmutableArray
<
AssemblyIdentity
>
missingAssemblyIdentities
)
{
var
errors
=
diagnostics
.
AsEnumerable
().
Where
(
d
=>
d
.
Severity
==
DiagnosticSeverity
.
Error
);
missingAssemblyIdentities
=
default
(
ImmutableArray
<
AssemblyIdentity
>);
foreach
(
var
error
in
errors
)
{
missingAssemblyIdentities
=
this
.
GetMissingAssemblyIdentities
(
error
,
linqLibrary
);
...
...
src/Features/Core/Portable/Diagnostics/EngineV2/DiagnosticIncrementalAnalyzer.AnalysisData.cs
浏览文件 @
7bdf1ac8
...
...
@@ -37,6 +37,7 @@ public DocumentAnalysisData(VersionStamp version, ImmutableArray<DiagnosticData>
{
this
.
Version
=
version
;
this
.
Items
=
items
;
this
.
OldItems
=
default
(
ImmutableArray
<
DiagnosticData
>);
}
public
DocumentAnalysisData
(
VersionStamp
version
,
ImmutableArray
<
DiagnosticData
>
oldItems
,
ImmutableArray
<
DiagnosticData
>
newItems
)
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录