-Formatting

-Build
This commit is contained in:
James Newton-King
2015-12-04 23:54:38 +13:00
parent c96779dc10
commit eb0cbd6a75
334 changed files with 3952 additions and 514 deletions
+6 -2
View File
@@ -41,7 +41,7 @@ namespace Newtonsoft.Json
internal struct JsonPosition
{
private static readonly char[] SpecialCharacters = {'.', ' ', '[', ']', '(', ')'};
private static readonly char[] SpecialCharacters = { '.', ' ', '[', ']', '(', ')' };
internal JsonContainerType Type;
internal int Position;
@@ -145,7 +145,9 @@ namespace Newtonsoft.Json
message = message.Trim();
if (!message.EndsWith('.'))
{
message += ".";
}
message += " ";
}
@@ -153,11 +155,13 @@ namespace Newtonsoft.Json
message += "Path '{0}'".FormatWith(CultureInfo.InvariantCulture, path);
if (lineInfo != null && lineInfo.HasLineInfo())
{
message += ", line {0}, position {1}".FormatWith(CultureInfo.InvariantCulture, lineInfo.LineNumber, lineInfo.LinePosition);
}
message += ".";
return message;
}
}
}
}