提交 2ad06aa8 编写于 作者: V vsadov

PR feedback

上级 14e0ba00
......@@ -138,7 +138,7 @@ internal DiagnosticInfo GetInstanceWithSeverity(DiagnosticSeverity severity)
#region Serialization
bool IObjectWritable.ShouldReuseInSerialization => true;
bool IObjectWritable.ShouldReuseInSerialization => false;
void IObjectWritable.WriteTo(ObjectWriter writer)
{
......
......@@ -93,7 +93,7 @@ private LocalizableResourceString(ObjectReader reader)
}
}
bool IObjectWritable.ShouldReuseInSerialization => true;
bool IObjectWritable.ShouldReuseInSerialization => false;
void IObjectWritable.WriteTo(ObjectWriter writer)
{
......
......@@ -11,8 +11,8 @@ internal interface IObjectWritable
void WriteTo(ObjectWriter writer);
/// <summary>
/// Returns `true` when the same instance could be used more than once.
/// Instances that return "false" should not be tracked or the purpose
/// Returns 'true' when the same instance could be used more than once.
/// Instances that return 'false' should not be tracked for the purpose
/// of de-duplication while serializing/deserializing.
/// </summary>
bool ShouldReuseInSerialization { get; }
......
......@@ -6,7 +6,7 @@
namespace Roslyn.Utilities
{
internal struct ObjectBinderSnapshot
internal readonly struct ObjectBinderSnapshot
{
private readonly Dictionary<Type, int> _typeToIndex;
private readonly ImmutableArray<Type> _types;
......
......@@ -18,7 +18,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Private Sub New()
End Sub
Private ReadOnly Property IsReausable As Boolean Implements IObjectWritable.ShouldReuseInSerialization
Private ReadOnly Property IObjectWritable_ShouldReuseInSerialization As Boolean Implements IObjectWritable.ShouldReuseInSerialization
Get
Return True
End Get
......
......@@ -89,7 +89,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
Me._trailingTrivia = DirectCast(reader.ReadValue(), GreenNode)
End Sub
Private ReadOnly Property IsReausable As Boolean Implements IObjectWritable.ShouldReuseInSerialization
Private ReadOnly Property IObjectWritable_ShouldReuseInSerialization As Boolean Implements IObjectWritable.ShouldReuseInSerialization
Get
Return ShouldCacheTriviaInfo(_leadingTrivia, _trailingTrivia)
End Get
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册