Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
3876b964
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,发现更多精彩内容 >>
未验证
提交
3876b964
编写于
11月 27, 2018
作者:
S
Sam Harwell
提交者:
GitHub
11月 27, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #31404 from sharwell/unlink-hash
Remove the Code Style dependency on Hash.cs
上级
18806459
11b3de8d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
3 addition
and
5 deletion
+3
-5
src/CodeStyle/Core/Analyzers/Microsoft.CodeAnalysis.CodeStyle.csproj
...le/Core/Analyzers/Microsoft.CodeAnalysis.CodeStyle.csproj
+1
-1
src/Compilers/Core/Portable/InternalUtilities/Hash.cs
src/Compilers/Core/Portable/InternalUtilities/Hash.cs
+0
-2
src/Workspaces/Core/Portable/CodeStyle/CodeStyleOption.cs
src/Workspaces/Core/Portable/CodeStyle/CodeStyleOption.cs
+1
-1
src/Workspaces/Core/Portable/Options/OptionKey.cs
src/Workspaces/Core/Portable/Options/OptionKey.cs
+1
-1
未找到文件。
src/CodeStyle/Core/Analyzers/Microsoft.CodeAnalysis.CodeStyle.csproj
浏览文件 @
3876b964
...
...
@@ -32,7 +32,6 @@
<ItemGroup>
<Compile
Include=
"..\..\..\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs"
Link=
"Formatting\EnumerableExtensions.cs"
/>
<Compile
Include=
"..\..\..\Compilers\Core\Portable\InternalUtilities\ExceptionUtilities.cs"
Link=
"InternalUtilities\ExceptionUtilities.cs"
/>
<Compile
Include=
"..\..\..\Compilers\Core\Portable\InternalUtilities\Hash.cs"
Link=
"InternalUtilities\Hash.cs"
/>
<Compile
Include=
"..\..\..\Compilers\Core\Portable\InternalUtilities\IReadOnlySet.cs"
Link=
"InternalUtilities\IReadOnlySet.cs"
/>
<Compile
Include=
"..\..\..\Compilers\Core\Portable\InternalUtilities\KeyValuePairUtil.cs"
Link=
"InternalUtilities\KeyValuePairUtil.cs"
/>
<Compile
Include=
"..\..\..\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.cs"
Link=
"InternalUtilities\SpecializedCollections.cs"
/>
...
...
@@ -57,6 +56,7 @@
<Compile
Include=
"..\..\..\Workspaces\Core\Portable\CodeStyle\CodeStyleHelpers.cs"
Link=
"Options\CodeStyleHelpers.cs"
/>
<Compile
Include=
"..\..\..\Workspaces\Core\Portable\CodeStyle\CodeStyleOption.cs"
Link=
"Options\CodeStyleOption.cs"
/>
<Compile
Include=
"..\..\..\Workspaces\Core\Portable\CodeStyle\NotificationOption.cs"
Link=
"Options\NotificationOption.cs"
/>
<Compile
Include=
"..\..\..\Workspaces\Core\Portable\CodeStyle\UnusedValuePreference.cs"
Link=
"Options\UnusedValuePreference.cs"
/>
<Compile
Include=
"..\..\..\Workspaces\Core\Portable\Diagnostics\Extensions_SharedWithCodeStyle.cs"
Link=
"Options\Extensions_SharedWithCodeStyle.cs"
/>
<Compile
Include=
"..\..\..\Workspaces\Core\Portable\Extensions\NotificationOptionExtensions.cs"
Link=
"Options\NotificationOptionExtensions.cs"
/>
<Compile
Include=
"..\..\..\Workspaces\Core\Portable\Formatting\AbstractSyntaxFormattingService.cs"
Link=
"Formatting\AbstractSyntaxFormattingService.cs"
/>
...
...
src/Compilers/Core/Portable/InternalUtilities/Hash.cs
浏览文件 @
3876b964
...
...
@@ -171,7 +171,6 @@ internal static int GetFNVHashCode(byte[] data)
return
hashCode
;
}
#if !CODE_STYLE
/// <summary>
/// Compute the FNV-1a hash of a sequence of bytes and determines if the byte
/// sequence is valid ASCII and hence the hash code matches a char sequence
...
...
@@ -197,7 +196,6 @@ internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii)
isAscii
=
(
asciiMask
&
0x80
)
==
0
;
return
hashCode
;
}
#endif
/// <summary>
/// Compute the FNV-1a hash of a sequence of bytes
...
...
src/Workspaces/Core/Portable/CodeStyle/CodeStyleOption.cs
浏览文件 @
3876b964
...
...
@@ -189,6 +189,6 @@ public override bool Equals(object obj)
Equals
(
option
);
public
override
int
GetHashCode
()
=>
Hash
.
Combine
(
Value
.
GetHashCode
(),
Notification
.
GetHashCode
());
=>
unchecked
((
Notification
.
GetHashCode
()
*
(
int
)
0xA5555529
)
+
Value
.
GetHashCode
());
}
}
src/Workspaces/Core/Portable/Options/OptionKey.cs
浏览文件 @
3876b964
...
...
@@ -46,7 +46,7 @@ public override int GetHashCode()
if
(
Language
!=
null
)
{
hash
=
Hash
.
Combine
(
Language
.
GetHashCode
(),
hash
);
hash
=
unchecked
((
hash
*
(
int
)
0xA5555529
)
+
Language
.
GetHashCode
()
);
}
return
hash
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录