提交 4d104172 编写于 作者: C Cyrus Najmabadi

Fixes

上级 c387f4fd
......@@ -33,7 +33,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader)
using var propertyIsReadOnly = reader.ReadBooleanArray();
using var propertyLocations = reader.ReadLocationArray();
if (propertyTypes.IsDefault)
if (!propertyTypes.IsDefault)
{
try
{
......
......@@ -80,9 +80,7 @@ public int ReadInteger()
}
public int ReadFormatVersion()
{
return ReadIntegerRaw_DoNotCallDirectly();
}
=> ReadIntegerRaw_DoNotCallDirectly();
private int ReadIntegerRaw_DoNotCallDirectly()
{
......
......@@ -203,16 +203,17 @@ private void WriteSpace()
}
internal void WriteFormatVersion()
{
_stringBuilder.AppendFormat(FormatVersion.ToString(CultureInfo.InvariantCulture));
}
=> WriteIntegerRaw_DoNotCallDirectly(FormatVersion);
internal void WriteInteger(int value)
{
WriteSpace();
_stringBuilder.Append(value.ToString(CultureInfo.InvariantCulture));
WriteIntegerRaw_DoNotCallDirectly(value);
}
private void WriteIntegerRaw_DoNotCallDirectly(int value)
=> _stringBuilder.Append(value.ToString(CultureInfo.InvariantCulture));
internal void WriteBoolean(bool value)
{
WriteInteger(value ? 1 : 0);
......
......@@ -56,7 +56,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader)
using var elementNames = reader.ReadStringArray();
var elementLocations = ReadElementLocations(reader);
if (elementTypes.IsDefault)
if (!elementTypes.IsDefault)
{
try
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册