Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
a06b2245
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
a06b2245
编写于
12月 18, 2020
作者:
H
Huo Yaoyuan
提交者:
GitHub
12月 17, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use private protected setters in compilation options. (#49034)
上级
706a5301
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
17 deletion
+9
-17
src/Compilers/CSharp/Portable/CSharpCompilationOptions.cs
src/Compilers/CSharp/Portable/CSharpCompilationOptions.cs
+3
-3
src/Compilers/Core/Portable/Compilation/CompilationOptions.cs
...Compilers/Core/Portable/Compilation/CompilationOptions.cs
+3
-11
src/Compilers/VisualBasic/Portable/VisualBasicCompilationOptions.vb
...ers/VisualBasic/Portable/VisualBasicCompilationOptions.vb
+3
-3
未找到文件。
src/Compilers/CSharp/Portable/CSharpCompilationOptions.cs
浏览文件 @
a06b2245
...
...
@@ -522,7 +522,7 @@ internal CSharpCompilationOptions WithCurrentLocalTime(DateTime value)
return
this
;
}
return
new
CSharpCompilationOptions
(
this
)
{
CurrentLocalTime
_internal_protected_set
=
value
};
return
new
CSharpCompilationOptions
(
this
)
{
CurrentLocalTime
=
value
};
}
internal
CSharpCompilationOptions
WithDebugPlusMode
(
bool
debugPlusMode
)
...
...
@@ -532,7 +532,7 @@ internal CSharpCompilationOptions WithDebugPlusMode(bool debugPlusMode)
return
this
;
}
return
new
CSharpCompilationOptions
(
this
)
{
DebugPlusMode
_internal_protected_set
=
debugPlusMode
};
return
new
CSharpCompilationOptions
(
this
)
{
DebugPlusMode
=
debugPlusMode
};
}
public
new
CSharpCompilationOptions
WithMetadataImportOptions
(
MetadataImportOptions
value
)
...
...
@@ -552,7 +552,7 @@ internal CSharpCompilationOptions WithReferencesSupersedeLowerVersions(bool valu
return
this
;
}
return
new
CSharpCompilationOptions
(
this
)
{
ReferencesSupersedeLowerVersions
_internal_protected_set
=
value
};
return
new
CSharpCompilationOptions
(
this
)
{
ReferencesSupersedeLowerVersions
=
value
};
}
public
new
CSharpCompilationOptions
WithXmlReferenceResolver
(
XmlReferenceResolver
?
resolver
)
...
...
src/Compilers/Core/Portable/Compilation/CompilationOptions.cs
浏览文件 @
a06b2245
...
...
@@ -161,17 +161,12 @@ public abstract class CompilationOptions
/// Used for time-based version generation when <see cref="System.Reflection.AssemblyVersionAttribute"/> contains a wildcard.
/// If equal to default(<see cref="DateTime"/>) the actual current local time will be used.
/// </summary>
internal
DateTime
CurrentLocalTime
{
get
;
private
set
;
}
internal
DateTime
CurrentLocalTime_internal_protected_set
{
set
{
CurrentLocalTime
=
value
;
}
}
internal
DateTime
CurrentLocalTime
{
get
;
private
protected
set
;
}
/// <summary>
/// Emit mode that favors debuggability.
/// </summary>
internal
bool
DebugPlusMode
{
get
;
private
set
;
}
// TODO: change visibility of the DebugPlusMode setter to internal & protected
internal
bool
DebugPlusMode_internal_protected_set
{
set
{
DebugPlusMode
=
value
;
}
}
internal
bool
DebugPlusMode
{
get
;
private
protected
set
;
}
/// <summary>
/// Specifies whether to import members with accessibility other than public or protected by default.
...
...
@@ -185,10 +180,7 @@ public abstract class CompilationOptions
/// <summary>
/// Apply additional disambiguation rules during resolution of referenced assemblies.
/// </summary>
internal
bool
ReferencesSupersedeLowerVersions
{
get
;
private
set
;
}
// TODO: change visibility of the ReferencesSupersedeLowerVersions setter to internal & protected
internal
bool
ReferencesSupersedeLowerVersions_internal_protected_set
{
set
{
ReferencesSupersedeLowerVersions
=
value
;
}
}
internal
bool
ReferencesSupersedeLowerVersions
{
get
;
private
protected
set
;
}
/// <summary>
/// Modifies the incoming diagnostic, for example escalating its severity, or discarding it (returning null) based on the compilation options.
...
...
src/Compilers/VisualBasic/Portable/VisualBasicCompilationOptions.vb
浏览文件 @
a06b2245
...
...
@@ -672,7 +672,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Return
Me
End
If
Return
New
VisualBasicCompilationOptions
(
Me
)
With
{.
CurrentLocalTime
_internal_protected_set
=
value
}
Return
New
VisualBasicCompilationOptions
(
Me
)
With
{.
CurrentLocalTime
=
value
}
End
Function
''' <summary>
...
...
@@ -685,7 +685,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Return
Me
End
If
Return
New
VisualBasicCompilationOptions
(
Me
)
With
{.
DebugPlusMode
_internal_protected_set
=
debugPlusMode
}
Return
New
VisualBasicCompilationOptions
(
Me
)
With
{.
DebugPlusMode
=
debugPlusMode
}
End
Function
''' <summary>
...
...
@@ -910,7 +910,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Return
Me
End
If
Return
New
VisualBasicCompilationOptions
(
Me
)
With
{.
ReferencesSupersedeLowerVersions
_internal_protected_set
=
value
}
Return
New
VisualBasicCompilationOptions
(
Me
)
With
{.
ReferencesSupersedeLowerVersions
=
value
}
End
Function
''' <summary>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录