Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
7a809449
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,发现更多精彩内容 >>
未验证
提交
7a809449
编写于
10月 27, 2017
作者:
F
Fredric Silberberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Reverted IsImplicit to original code to be able to handle lowered bound trees in the future.
上级
b61a6712
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
3 addition
and
3 deletion
+3
-3
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
...lers/CSharp/Portable/Operations/CSharpOperationFactory.cs
+1
-1
src/Compilers/VisualBasic/Portable/Operations/VisualBasicOperationFactory.vb
...lBasic/Portable/Operations/VisualBasicOperationFactory.vb
+2
-2
未找到文件。
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
浏览文件 @
7a809449
...
...
@@ -796,7 +796,7 @@ private IConversionOperation CreateBoundAsOperatorOperation(BoundAsOperator boun
bool
isChecked
=
false
;
ITypeSymbol
type
=
boundAsOperator
.
Type
;
Optional
<
object
>
constantValue
=
ConvertToOptional
(
boundAsOperator
.
ConstantValue
);
bool
isImplicit
=
false
;
// as expressions can never be implicitly created
bool
isImplicit
=
boundAsOperator
.
WasCompilerGenerated
;
return
new
LazyCSharpConversionExpression
(
operand
,
conversion
,
isTryCast
,
isChecked
,
_semanticModel
,
syntax
,
type
,
constantValue
,
isImplicit
);
}
...
...
src/Compilers/VisualBasic/Portable/Operations/VisualBasicOperationFactory.vb
浏览文件 @
7a809449
...
...
@@ -517,7 +517,7 @@ Namespace Microsoft.CodeAnalysis.Operations
Private
Function
CreateBoundTryCastOperation
(
boundTryCast
As
BoundTryCast
)
As
IOperation
Dim
syntax
As
SyntaxNode
=
boundTryCast
.
Syntax
Dim
type
As
ITypeSymbol
=
boundTryCast
.
Type
Dim
isImplicit
As
Boolean
=
False
' Try Cast can never be an implicit operation
Dim
isImplicit
As
Boolean
=
boundTryCast
.
WasCompilerGenerated
Dim
constantValue
As
[
Optional
]
(
Of
Object
)
=
ConvertToOptional
(
boundTryCast
.
ConstantValueOpt
)
Dim
conversionInformation
=
CreateConversionOperand
(
boundTryCast
.
Operand
,
boundTryCast
.
ConversionKind
,
boundTryCast
.
Syntax
,
boundTryCast
.
Type
)
...
...
@@ -540,7 +540,7 @@ Namespace Microsoft.CodeAnalysis.Operations
Dim
syntax
As
SyntaxNode
=
boundDirectCast
.
Syntax
Dim
type
As
ITypeSymbol
=
boundDirectCast
.
Type
Dim
constantValue
As
[
Optional
]
(
Of
Object
)
=
ConvertToOptional
(
boundDirectCast
.
ConstantValueOpt
)
Dim
isImplicit
As
Boolean
=
False
' Direct Cast can never be an implicit operation
Dim
isImplicit
As
Boolean
=
boundDirectCast
.
WasCompilerGenerated
Dim
conversionInformation
=
CreateConversionOperand
(
boundDirectCast
.
Operand
,
boundDirectCast
.
ConversionKind
,
boundDirectCast
.
Syntax
,
boundDirectCast
.
Type
)
Dim
operand
As
Lazy
(
Of
IOperation
)
=
conversionInformation
.
Operation
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录