Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
79c8f750
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,发现更多精彩内容 >>
提交
79c8f750
编写于
1月 04, 2017
作者:
T
Tomas Matousek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor tweaks based on PR feedback
上级
1ad4b581
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
14 deletion
+15
-14
src/Compilers/Core/Portable/Compilation/Compilation.cs
src/Compilers/Core/Portable/Compilation/Compilation.cs
+1
-1
src/Compilers/Core/Portable/Emit/EditAndContinue/DeltaMetadataWriter.cs
...Core/Portable/Emit/EditAndContinue/DeltaMetadataWriter.cs
+2
-1
src/Compilers/Core/Portable/PEWriter/MetadataWriter.cs
src/Compilers/Core/Portable/PEWriter/MetadataWriter.cs
+2
-1
src/Test/PdbUtilities/Pdb/PdbToXml.cs
src/Test/PdbUtilities/Pdb/PdbToXml.cs
+2
-2
src/Test/Utilities/Portable/Compilation/CompilationDifference.cs
...t/Utilities/Portable/Compilation/CompilationDifference.cs
+7
-7
src/Test/Utilities/Portable/Pdb/PdbValidation.cs
src/Test/Utilities/Portable/Pdb/PdbValidation.cs
+1
-2
未找到文件。
src/Compilers/Core/Portable/Compilation/Compilation.cs
浏览文件 @
79c8f750
...
...
@@ -2508,7 +2508,7 @@ internal void EnsureAnonymousTypeTemplates(CancellationToken cancellationToken)
metadataStream
,
ilStream
,
(
nativePdbWriterOpt
==
null
)
?
pdbStream
:
null
,
out
var
metadataSizes
);
out
MetadataSizes
metadataSizes
);
writer
.
GetMethodTokens
(
updatedMethods
);
...
...
src/Compilers/Core/Portable/Emit/EditAndContinue/DeltaMetadataWriter.cs
浏览文件 @
79c8f750
...
...
@@ -51,7 +51,7 @@ internal sealed class DeltaMetadataWriter : MetadataWriter
SymbolChanges
changes
,
CancellationToken
cancellationToken
)
:
base
(
metadata
:
MakeTablesBuilder
(
previousGeneration
),
debugMetadataOpt
:
(
context
.
Module
.
EmitOptions
.
DebugInformationFormat
!=
DebugInformationFormat
.
Pdb
)
?
new
MetadataBuilder
()
:
null
,
debugMetadataOpt
:
(
context
.
Module
.
EmitOptions
.
DebugInformationFormat
==
DebugInformationFormat
.
Portable
Pdb
)
?
new
MetadataBuilder
()
:
null
,
dynamicAnalysisDataWriterOpt
:
null
,
context
:
context
,
messageProvider
:
messageProvider
,
...
...
@@ -62,6 +62,7 @@ internal sealed class DeltaMetadataWriter : MetadataWriter
Debug
.
Assert
(
previousGeneration
!=
null
);
Debug
.
Assert
(
encId
!=
default
(
Guid
));
Debug
.
Assert
(
encId
!=
previousGeneration
.
EncId
);
Debug
.
Assert
(
context
.
Module
.
EmitOptions
.
DebugInformationFormat
!=
DebugInformationFormat
.
Embedded
);
_previousGeneration
=
previousGeneration
;
_encId
=
encId
;
...
...
src/Compilers/Core/Portable/PEWriter/MetadataWriter.cs
浏览文件 @
79c8f750
...
...
@@ -1809,7 +1809,8 @@ public void WriteMetadataAndIL(PdbWriter nativePdbWriterOpt, Stream metadataStre
public
void
PopulateEncTables
(
ImmutableArray
<
int
>
typeSystemRowCounts
)
{
Debug
.
Assert
(
typeSystemRowCounts
[(
int
)
TableIndex
.
EncLog
]
==
0
&&
typeSystemRowCounts
[(
int
)
TableIndex
.
EncMap
]
==
0
);
Debug
.
Assert
(
typeSystemRowCounts
[(
int
)
TableIndex
.
EncLog
]
==
0
);
Debug
.
Assert
(
typeSystemRowCounts
[(
int
)
TableIndex
.
EncMap
]
==
0
);
PopulateEncLogTableRows
(
typeSystemRowCounts
);
PopulateEncMapTableRows
(
typeSystemRowCounts
);
...
...
src/Test/PdbUtilities/Pdb/PdbToXml.cs
浏览文件 @
79c8f750
...
...
@@ -1270,8 +1270,8 @@ private void WriteSequencePoints(ImmutableArray<SymUnmanagedSequencePoint> seque
private
unsafe
ImmutableArray
<
MethodDefinitionHandle
>
BuildMethodTokenMap
()
{
if
(!(
_symReader
is
ISymUnmanagedReader
5
symReader5
)
||
symReader
5
.
GetPortableDebugMetadata
(
out
byte
*
metadata
,
out
int
size
)
!=
0
)
if
(!(
_symReader
is
ISymUnmanagedReader
4
symReader4
)
||
symReader
4
.
GetPortableDebugMetadata
(
out
byte
*
metadata
,
out
int
size
)
!=
0
)
{
return
ImmutableArray
<
MethodDefinitionHandle
>.
Empty
;
}
...
...
src/Test/Utilities/Portable/Compilation/CompilationDifference.cs
浏览文件 @
79c8f750
...
...
@@ -32,17 +32,17 @@ internal sealed class CompilationDifference
public
CompilationDifference
(
ImmutableArray
<
byte
>
metadata
,
ImmutableArray
<
byte
>
il
,
ImmutableArray
<
byte
>
pdb
Stream
,
ImmutableArray
<
byte
>
pdb
,
CompilationTestData
testData
,
EmitDifferenceResult
result
,
ImmutableArray
<
MethodDefinitionHandle
>
methodHandles
)
{
this
.
MetadataDelta
=
metadata
;
this
.
ILDelta
=
il
;
this
.
PdbDelta
=
pdbStream
;
this
.
TestData
=
testData
;
this
.
EmitResult
=
result
;
this
.
UpdatedMethods
=
methodHandles
;
MetadataDelta
=
metadata
;
ILDelta
=
il
;
PdbDelta
=
pdb
;
TestData
=
testData
;
EmitResult
=
result
;
UpdatedMethods
=
methodHandles
;
}
public
EmitBaseline
NextGeneration
...
...
src/Test/Utilities/Portable/Pdb/PdbValidation.cs
浏览文件 @
79c8f750
...
...
@@ -146,14 +146,13 @@ public static class PdbValidation
Assert
.
True
(
actualIsPortable
);
// SymWriter doesn't create empty scopes. When the C# compiler uses forwarding CDI instead of a NamespaceScope
// the scope is actually not empty - it logically contains the imports. Portable PDB does not use
d
forwarding and thus
// the scope is actually not empty - it logically contains the imports. Portable PDB does not use forwarding and thus
// creates the scope. When generating PDB XML for testing the Portable DiaSymReader returns empty namespaces.
RemoveEmptyScopes
(
actualPdb
);
// if the actual format is portable and the expected is not, remove native-only artifacts:
RemoveNonPortablePdb
(
expectedPdb
);
// TODO: remove
RemoveEmptySequencePoints
(
expectedPdb
);
// remove scopes that only contained non-portable elements (namespace scopes)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录